Update JEI compat
This commit is contained in:
parent
994d12a850
commit
44f2588b4e
23 changed files with 157 additions and 87 deletions
45
src/main/java/techreborn/items/ItemDestructopack.java
Normal file
45
src/main/java/techreborn/items/ItemDestructopack.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package techreborn.items;
|
||||
|
||||
import me.modmuss50.jsonDestroyer.api.ITexturedItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ActionResult;
|
||||
import net.minecraft.util.EnumActionResult;
|
||||
import net.minecraft.util.EnumHand;
|
||||
import net.minecraft.world.World;
|
||||
import reborncore.RebornCore;
|
||||
import techreborn.Core;
|
||||
import techreborn.client.GuiHandler;
|
||||
import techreborn.client.TechRebornCreativeTabMisc;
|
||||
|
||||
public class ItemDestructopack extends ItemTextureBase implements ITexturedItem
|
||||
{
|
||||
|
||||
public ItemDestructopack()
|
||||
{
|
||||
setUnlocalizedName("techreborn.destructopack");
|
||||
setCreativeTab(TechRebornCreativeTabMisc.instance);
|
||||
RebornCore.jsonDestroyer.registerObject(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult<ItemStack> onItemRightClick(ItemStack itemStack, World world, EntityPlayer player,
|
||||
EnumHand hand)
|
||||
{
|
||||
player.openGui(Core.INSTANCE, GuiHandler.destructoPackID, world, (int) player.posX, (int) player.posY,
|
||||
(int) player.posY);
|
||||
return new ActionResult<>(EnumActionResult.SUCCESS, itemStack);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxMeta()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureName(int arg0)
|
||||
{
|
||||
return "techreborn:items/misc/destructopack";
|
||||
}
|
||||
}
|
|
@ -14,8 +14,8 @@ public class ItemIngots extends ItemTextureBase
|
|||
{
|
||||
public static final String[] types = new String[] { "aluminum", "brass", "bronze", "chrome", "copper", "electrum",
|
||||
"invar", "iridium", "lead", "nickel", "platinum", "silver", "steel", "tin", "titanium", "tungsten",
|
||||
"hotTungstensteel", "tungstensteel", "zinc", "refinedIron", "advancedAlloy", "mixedmetalingot",
|
||||
"iridiumAlloyIngot" };
|
||||
"hotTungstensteel", "tungstensteel", "zinc", "refinedIron", "advancedAlloy", "mixedMetal",
|
||||
"iridiumAlloy" };
|
||||
|
||||
public ItemIngots()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue