mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
Added ItemCustomizable abstract class which both scripted and linked items extend from. Common behavior between the classes should move there.
This commit is contained in:
1 parent
44e5c8b4c5
commit
d9e6372acb
3 files changed
+11
-8
No files matched your search
@@ -26,7 +26,7 @@ import noppes.npcs.scripted.event.ItemEvent;
|
||||
import noppes.npcs.scripted.item.ScriptCustomItem;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
public class ItemScripted extends Item implements ItemRenderInterface {
|
||||
public class ItemScripted extends ItemCustomizable {
|
||||
public ItemScripted() {
|
||||
maxStackSize = 1;
|
||||
setCreativeTab(CustomItems.tab);
|
||||
@@ -156,9 +156,6 @@ public class ItemScripted extends Item implements ItemRenderInterface {
|
||||
return super.getItemUseAction(stack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderSpecial() {}
|
||||
|
||||
public void renderOffset(ScriptCustomItem scriptCustomItem) {
|
||||
GL11.glTranslatef(0.135F * scriptCustomItem.itemDisplay.scaleX, 0.2F * scriptCustomItem.itemDisplay.scaleY, 0.07F * scriptCustomItem.itemDisplay.scaleZ);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user