package speedytools.common.items; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import speedytools.SpeedyToolsMod; import java.util.List; public class ItemSpeedySceptre extends ItemSpeedyTool { public static final String NAME = "simplesceptre"; public ItemSpeedySceptre() { super(PlacementCountModes.BOTH); setMaxStackSize(64); setUnlocalizedName(NAME); setFull3D(); // setting this flag causes the sceptre to render vertically in 3rd person view, like a pickaxe } @Override public String getVariantModelResLoc(String itemName, int metadata) { switch (metadata) { case INFINITE_MODE_DAMAGE:{ return SpeedyToolsMod.prependModID(itemName + "_infinite"); } default: { return SpeedyToolsMod.prependModID(itemName); } } } /** * allows items to add custom lines of information to the mouseover description */ @Override public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List textList, boolean useAdvancedItemTooltips) { textList.add("Right click: place blocks"); textList.add("Left click: undo last place"); textList.add("Control: hold down to allow diagonal"); textList.add("Control + mouse wheel: change count"); } }