public class GuiContainerCreative extends InventoryEffectRenderer
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
GuiContainerCreative.ContainerCreative |
(package private) class |
GuiContainerCreative.CreativeSlot |
| Modifier and Type | Field and Description |
|---|---|
private static ResourceLocation |
creativeInventoryTabs
The location of the creative inventory tabs texture
|
private float |
currentScroll
Amount scrolled in Creative mode inventory (0 = top, 1 = bottom)
|
private boolean |
field_147057_D |
private CreativeCrafting |
field_147059_E |
private static InventoryBasic |
field_147060_v |
private java.util.List<Slot> |
field_147063_B |
private Slot |
field_147064_C |
private boolean |
isScrolling
True if the scrollbar is being dragged
|
private GuiTextField |
searchField |
private static int |
selectedTabIndex
Currently selected creative inventory tab index.
|
private boolean |
wasClicking
True if the left mouse button was held down last time drawScreen was called.
|
dragSplitting, dragSplittingSlots, guiLeft, guiTop, inventoryBackground, inventorySlots, xSize, ySizeallowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, widthicons, optionsBackground, statIcons, zLevel| Constructor and Description |
|---|
GuiContainerCreative(EntityPlayer p_i1088_1_) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
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.
|
protected boolean |
func_147049_a(CreativeTabs p_147049_1_,
int p_147049_2_,
int p_147049_3_) |
protected void |
func_147051_a(CreativeTabs p_147051_1_) |
int |
getSelectedTabIndex() |
protected void |
handleMouseClick(Slot slotIn,
int slotId,
int clickedButton,
int clickType)
Called when the mouse is clicked over a slot or outside the gui.
|
void |
handleMouseInput()
Handles mouse input.
|
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
protected void |
keyTyped(char typedChar,
int keyCode)
Fired when a key is typed (except F11 which toggles full screen).
|
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton)
Called when the mouse is clicked.
|
protected void |
mouseReleased(int mouseX,
int mouseY,
int state)
Called when a mouse button is released.
|
private boolean |
needsScrollBars()
returns (if you are not on the inventoryTab) and (the flag isn't set) and (you have more than 1 page of items)
|
void |
onGuiClosed()
Called when the screen is unloaded.
|
protected boolean |
renderCreativeInventoryHoveringText(CreativeTabs p_147052_1_,
int p_147052_2_,
int p_147052_3_)
Renders the creative inventory hovering text if mouse is over it.
|
protected void |
renderToolTip(ItemStack stack,
int x,
int y) |
private void |
setCurrentCreativeTab(CreativeTabs p_147050_1_) |
protected void |
updateActivePotionEffects() |
private void |
updateCreativeSearch() |
void |
updateScreen()
Called from the main game loop to update the screen.
|
checkHotbarKeys, doesGuiPauseGame, isPointInRegion, mouseClickMoveconfirmClicked, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineprivate static final ResourceLocation creativeInventoryTabs
private static InventoryBasic field_147060_v
private static int selectedTabIndex
private float currentScroll
private boolean isScrolling
private boolean wasClicking
private GuiTextField searchField
private java.util.List<Slot> field_147063_B
private Slot field_147064_C
private boolean field_147057_D
private CreativeCrafting field_147059_E
public GuiContainerCreative(EntityPlayer p_i1088_1_)
public void updateScreen()
updateScreen in class GuiContainerprotected void handleMouseClick(Slot slotIn, int slotId, int clickedButton, int clickType)
handleMouseClick in class GuiContainerprotected void updateActivePotionEffects()
updateActivePotionEffects in class InventoryEffectRendererpublic void initGui()
initGui in class InventoryEffectRendererpublic void onGuiClosed()
onGuiClosed in class GuiContainerprotected void keyTyped(char typedChar,
int keyCode)
throws java.io.IOException
keyTyped in class GuiContainerjava.io.IOExceptionprivate void updateCreativeSearch()
protected void drawGuiContainerForegroundLayer(int mouseX,
int mouseY)
drawGuiContainerForegroundLayer in class GuiContainerprotected void mouseClicked(int mouseX,
int mouseY,
int mouseButton)
throws java.io.IOException
mouseClicked in class GuiContainerjava.io.IOExceptionprotected void mouseReleased(int mouseX,
int mouseY,
int state)
mouseReleased in class GuiContainerprivate boolean needsScrollBars()
private void setCurrentCreativeTab(CreativeTabs p_147050_1_)
public void handleMouseInput()
throws java.io.IOException
handleMouseInput in class GuiScreenjava.io.IOExceptionpublic void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class InventoryEffectRendererprotected void renderToolTip(ItemStack stack, int x, int y)
renderToolTip in class GuiScreenprotected void drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY)
drawGuiContainerBackgroundLayer in class GuiContainerprotected boolean func_147049_a(CreativeTabs p_147049_1_, int p_147049_2_, int p_147049_3_)
protected boolean renderCreativeInventoryHoveringText(CreativeTabs p_147052_1_, int p_147052_2_, int p_147052_3_)
protected void func_147051_a(CreativeTabs p_147051_1_)
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed in class GuiScreenjava.io.IOExceptionpublic int getSelectedTabIndex()