public class ItemPluggableLens extends ItemBC_Neptune implements IItemPluggable
Modifier and Type | Class and Description |
---|---|
static class |
ItemPluggableLens.LensData |
id
Constructor and Description |
---|
ItemPluggableLens(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
addModelVariants(gnu.trove.map.hash.TIntObjectHashMap<net.minecraft.client.renderer.block.model.ModelResourceLocation> variants)
Sets up all of the model information for this item.
|
static ItemPluggableLens.LensData |
getData(net.minecraft.item.ItemStack stack) |
net.minecraft.client.gui.FontRenderer |
getFontRenderer(net.minecraft.item.ItemStack stack) |
java.lang.String |
getItemStackDisplayName(net.minecraft.item.ItemStack stack) |
net.minecraft.item.ItemStack |
getStack(net.minecraft.item.EnumDyeColor colour,
boolean isFilter) |
net.minecraft.item.ItemStack |
getStack(ItemPluggableLens.LensData variant) |
void |
getSubItems(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> subItems) |
PipePluggable |
onPlace(net.minecraft.item.ItemStack stack,
IPipeHolder holder,
net.minecraft.util.EnumFacing side,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand)
Called when this item is placed onto a pipe holder.
|
id
addInformation, addPropertyOverride, canApplyAtEnchantingTable, canDestroyBlockInCreative, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDefaultInstance, getDurabilityForDisplay, getEntityLifespan, getHarvestLevel, getHasSubtypes, getHighlightTip, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMetadata, getNBTShareTag, getPropertyGetter, getRarity, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getStrVsBlock, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hasEffect, hitEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isEnchantable, isFull3D, isMap, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemRightClick, onItemUse, onItemUseFinish, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, rayTrace, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setUnlocalizedName, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addVariant, init, postRegisterClient
public static ItemPluggableLens.LensData getData(net.minecraft.item.ItemStack stack)
@Nonnull public net.minecraft.item.ItemStack getStack(net.minecraft.item.EnumDyeColor colour, boolean isFilter)
@Nonnull public net.minecraft.item.ItemStack getStack(ItemPluggableLens.LensData variant)
public PipePluggable onPlace(@Nonnull net.minecraft.item.ItemStack stack, IPipeHolder holder, net.minecraft.util.EnumFacing side, net.minecraft.entity.player.EntityPlayer player, net.minecraft.util.EnumHand hand)
IItemPluggable
onPlace
in interface IItemPluggable
stack
- The stack that holds this itemholder
- The pipe holderside
- The side that the pluggable should be placed onpublic java.lang.String getItemStackDisplayName(net.minecraft.item.ItemStack stack)
getItemStackDisplayName
in class net.minecraft.item.Item
public net.minecraft.client.gui.FontRenderer getFontRenderer(net.minecraft.item.ItemStack stack)
getFontRenderer
in class net.minecraft.item.Item
public void getSubItems(net.minecraft.item.Item item, net.minecraft.creativetab.CreativeTabs tab, net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> subItems)
getSubItems
in class net.minecraft.item.Item
public void addModelVariants(gnu.trove.map.hash.TIntObjectHashMap<net.minecraft.client.renderer.block.model.ModelResourceLocation> variants)
IItemBuildCraft
IItemBuildCraft.addVariant(TIntObjectHashMap, int, String)
to help get
everything correct.addModelVariants
in interface IItemBuildCraft