public class ItemGui extends ConfigurableItem implements IGuiContainerProvider
eConfig| Modifier | Constructor and Description |
|---|---|
protected |
ItemGui(ExtendedConfig eConfig)
Make a new item instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends net.minecraft.inventory.Container> |
getContainer()
Get the container for this block.
|
java.lang.Class<? extends net.minecraft.client.gui.GuiScreen> |
getGUI()
Get the GUI for this block.
|
int |
getGuiID()
Get the unique ID for the GUI this block has.
|
java.lang.String |
getGuiTexture()
Get the texture path of the GUI.
|
java.lang.String |
getGuiTexture(java.lang.String suffix)
Get the texture path of the GUI.
|
protected boolean |
isClientSideOnlyGui() |
boolean |
onDroppedByPlayer(net.minecraft.item.ItemStack itemstack,
net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
onItemRightClick(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player) |
void |
openGuiForItemIndex(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
int itemIndex)
Open the gui for a certain item index in the player inventory.
|
void |
setContainer(java.lang.Class<? extends net.minecraft.inventory.Container> container)
Set the container.
|
void |
setGUI(java.lang.Class<? extends net.minecraft.client.gui.GuiScreen> gui)
Set the gui.
|
addInformation, getConfig, getIconString, registerIconscanHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, doesSneakBypassUse, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getAttributeModifiers, getChestGenBase, getColorFromItemStack, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamage, getIconFromDamageForRenderPass, getIconIndex, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getRenderPasses, getShareTag, getSmeltingExperience, getSpriteNumber, getSubItems, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onEaten, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItems, renderHelmetOverlay, requiresMultipleRenderPasses, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, setUnlocalizedName, shouldRotateAroundWhenRendering, showDurabilityBarprotected ItemGui(ExtendedConfig eConfig)
eConfig - Config for this block.public int getGuiID()
IGuiContainerProvidergetGuiID in interface IGuiContainerProviderpublic void setGUI(java.lang.Class<? extends net.minecraft.client.gui.GuiScreen> gui)
IGuiContainerProvidersetGUI in interface IGuiContainerProvidergui - The gui.public void setContainer(java.lang.Class<? extends net.minecraft.inventory.Container> container)
IGuiContainerProvidersetContainer in interface IGuiContainerProvidercontainer - The container.public java.lang.Class<? extends net.minecraft.inventory.Container> getContainer()
IGuiContainerProvidergetContainer in interface IGuiContainerProviderpublic java.lang.Class<? extends net.minecraft.client.gui.GuiScreen> getGUI()
IGuiContainerProvidergetGUI in interface IGuiContainerProviderpublic boolean onDroppedByPlayer(net.minecraft.item.ItemStack itemstack,
net.minecraft.entity.player.EntityPlayer player)
onDroppedByPlayer in class net.minecraft.item.Itempublic java.lang.String getGuiTexture()
IGuiContainerProvidergetGuiTexture in interface IGuiContainerProviderpublic java.lang.String getGuiTexture(java.lang.String suffix)
IGuiContainerProvidergetGuiTexture in interface IGuiContainerProvidersuffix - Suffix to add to the path.public void openGuiForItemIndex(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
int itemIndex)
world - The world.player - The player.itemIndex - The item index in the player inventory.protected boolean isClientSideOnlyGui()
public net.minecraft.item.ItemStack onItemRightClick(net.minecraft.item.ItemStack itemStack,
net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player)
onItemRightClick in class net.minecraft.item.Item