mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-20 03:59:41 +00:00
Rebuilt gui framework
This commit is contained in:
1 parent
11d6c296d7
commit
b8a51edbdf
52 files changed
+771
-3662
No files matched your search
@@ -14,7 +14,7 @@ import net.minecraft.world.World;
|
||||
public class JecaItem extends Item {
|
||||
public static JecaItem INSTANCE = new JecaItem();
|
||||
|
||||
public static final String NAME = "item_calculator";
|
||||
public static final String NAME = "itemCalculator";
|
||||
|
||||
public JecaItem() {
|
||||
setHasSubtypes(true);
|
||||
@@ -26,9 +26,7 @@ public class JecaItem extends Item {
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn) {
|
||||
playerIn.openGui(JustEnoughCalculation.instance, GuiHandler.GuiId.CALCULATOR, worldIn, 0, 0, 0);
|
||||
ItemStack stack = playerIn.inventory.getStackInSlot(0);
|
||||
//JustEnoughCalculation.log.info(stack==null ? "" : stack.getItem().getUnlocalizedName() + "-" + stack.getItemDamage());
|
||||
playerIn.openGui(JustEnoughCalculation.INSTANCE, GuiHandler.GuiId.EDITOR, worldIn, 0, 0, 0);
|
||||
return itemStackIn;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user