public class GuiEnchantment extends GuiContainer
Modifier and Type | Field and Description |
---|---|
private ContainerEnchantment |
container |
private static ResourceLocation |
ENCHANTMENT_TABLE_BOOK_TEXTURE
The ResourceLocation containing the texture for the Book rendered above the enchantment table
|
private static ResourceLocation |
ENCHANTMENT_TABLE_GUI_TEXTURE
The ResourceLocation containing the Enchantment GUI texture location
|
float |
field_147069_w |
float |
field_147071_v |
int |
field_147073_u |
float |
field_147076_A |
(package private) ItemStack |
field_147077_B |
float |
field_147080_z |
float |
field_147081_y |
float |
field_147082_x |
private IWorldNameable |
field_175380_I |
private static ModelBook |
MODEL_BOOK
The ModelBook instance used for rendering the book on the Enchantment table
|
private InventoryPlayer |
playerInventory
The player inventory currently bound to this GuiEnchantment instance.
|
private java.util.Random |
random
A Random instance for use with the enchantment gui
|
dragSplitting, dragSplittingSlots, guiLeft, guiTop, inventoryBackground, inventorySlots, xSize, ySize
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, width
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiEnchantment(InventoryPlayer inventory,
World worldIn,
IWorldNameable p_i45502_3_) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY)
Args : renderPartialTicks, mouseX, mouseY
|
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY)
Draw the foreground layer for the GuiContainer (everything in front of the items).
|
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
void |
func_147068_g() |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton)
Called when the mouse is clicked.
|
void |
updateScreen()
Called from the main game loop to update the screen.
|
checkHotbarKeys, doesGuiPauseGame, handleMouseClick, initGui, isPointInRegion, keyTyped, mouseClickMove, mouseReleased, onGuiClosed
actionPerformed, confirmClicked, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final ResourceLocation ENCHANTMENT_TABLE_GUI_TEXTURE
private static final ResourceLocation ENCHANTMENT_TABLE_BOOK_TEXTURE
private static final ModelBook MODEL_BOOK
private final InventoryPlayer playerInventory
private java.util.Random random
private ContainerEnchantment container
public int field_147073_u
public float field_147071_v
public float field_147069_w
public float field_147082_x
public float field_147081_y
public float field_147080_z
public float field_147076_A
ItemStack field_147077_B
private final IWorldNameable field_175380_I
public GuiEnchantment(InventoryPlayer inventory, World worldIn, IWorldNameable p_i45502_3_)
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
drawGuiContainerForegroundLayer
in class GuiContainer
public void updateScreen()
updateScreen
in class GuiContainer
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiContainer
java.io.IOException
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class GuiContainer
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiContainer
public void func_147068_g()