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.
|
protected void |
addSubItems(net.minecraft.creativetab.CreativeTabs tab,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> subItems)
Identical to
ItemBC_Neptune.getSubItems(CreativeTabs, NonNullList) in every way, EXCEPT that this is only called if
this is actually in the given creative tab. |
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) |
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.
|
getSubItems, idaddInformation, addPropertyOverride, canApplyAtEnchantingTable, canDestroyBlockInCreative, canDisableShield, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getCreatorModId, getDamage, getDefaultInstance, getDestroySpeed, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getHarvestLevel, getHasSubtypes, getHighlightTip, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemBurnTime, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMetadata, getNBTShareTag, getPropertyGetter, getRarity, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hasEffect, hitEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isEnchantable, isFull3D, isInCreativeTab, isMap, isRepairable, isShield, 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, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddVariant, init, registerVariantspublic 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)
IItemPluggableonPlace in interface IItemPluggablestack - 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.Itempublic net.minecraft.client.gui.FontRenderer getFontRenderer(net.minecraft.item.ItemStack stack)
getFontRenderer in class net.minecraft.item.Itemprotected void addSubItems(net.minecraft.creativetab.CreativeTabs tab,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> subItems)
ItemBC_NeptuneItemBC_Neptune.getSubItems(CreativeTabs, NonNullList) in every way, EXCEPT that this is only called if
this is actually in the given creative tab.addSubItems in class ItemBC_Neptunetab - The CreativeTabs to display the items in. This is provided just in case an item has multiple
subtypes, split across different tabspublic void addModelVariants(gnu.trove.map.hash.TIntObjectHashMap<net.minecraft.client.renderer.block.model.ModelResourceLocation> variants)
IItemBuildCraftIItemBuildCraft.addVariant(TIntObjectHashMap, int, String) to help get
everything correct.addModelVariants in interface IItemBuildCraft