public class GuiContainerCreative extends InventoryEffectRenderer
| Modifier and Type | Class and Description |
|---|---|
static class |
GuiContainerCreative.ContainerCreative |
(package private) class |
GuiContainerCreative.CreativeSlot |
(package private) static class |
GuiContainerCreative.LockedSlot |
| Modifier and Type | Field and Description |
|---|---|
private static InventoryBasic |
basicInventory |
private boolean |
clearSearch |
private static ResourceLocation |
CREATIVE_INVENTORY_TABS |
private float |
currentScroll |
private Slot |
destroyItemSlot |
private boolean |
isScrolling |
private CreativeCrafting |
listener |
private int |
maxPages |
private java.util.List<Slot> |
originalSlots |
private GuiTextField |
searchField |
private static int |
selectedTabIndex |
private static int |
tabPage |
private boolean |
wasClicking |
hasActivePotionEffectsdragSplitting, dragSplittingSlots, guiLeft, guiTop, INVENTORY_BACKGROUND, inventorySlots, xSize, ySizeallowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, widthICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiContainerCreative(EntityPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(GuiButton button) |
protected void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY) |
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
protected void |
drawTab(CreativeTabs tab) |
int |
getSelectedTabIndex() |
static void |
handleHotbarSnapshots(Minecraft p_192044_0_,
int p_192044_1_,
boolean p_192044_2_,
boolean p_192044_3_) |
protected void |
handleMouseClick(Slot slotIn,
int slotId,
int mouseButton,
ClickType type) |
void |
handleMouseInput() |
void |
initGui() |
protected boolean |
isMouseOverTab(CreativeTabs tab,
int mouseX,
int mouseY) |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
protected void |
mouseReleased(int mouseX,
int mouseY,
int state) |
private boolean |
needsScrollBars() |
void |
onGuiClosed() |
protected boolean |
renderCreativeInventoryHoveringText(CreativeTabs tab,
int mouseX,
int mouseY) |
protected void |
renderToolTip(ItemStack stack,
int x,
int y) |
private void |
setCurrentCreativeTab(CreativeTabs tab) |
protected void |
updateActivePotionEffects() |
private void |
updateCreativeSearch() |
void |
updateScreen() |
checkHotbarKeys, doesGuiPauseGame, getGuiLeft, getGuiTop, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isPointInRegion, mouseClickMove, renderHoveredToolTipaddButton, confirmClicked, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineprivate static final ResourceLocation CREATIVE_INVENTORY_TABS
private static final InventoryBasic basicInventory
private static int selectedTabIndex
private float currentScroll
private boolean isScrolling
private boolean wasClicking
private GuiTextField searchField
private java.util.List<Slot> originalSlots
private Slot destroyItemSlot
private boolean clearSearch
private CreativeCrafting listener
private static int tabPage
private int maxPages
public GuiContainerCreative(EntityPlayer player)
public void updateScreen()
updateScreen in class GuiContainerprotected void handleMouseClick(@Nullable
Slot slotIn,
int slotId,
int mouseButton,
ClickType type)
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 tab)
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 isMouseOverTab(CreativeTabs tab, int mouseX, int mouseY)
protected boolean renderCreativeInventoryHoveringText(CreativeTabs tab, int mouseX, int mouseY)
protected void drawTab(CreativeTabs tab)
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed in class GuiScreenjava.io.IOExceptionpublic int getSelectedTabIndex()
public static void handleHotbarSnapshots(Minecraft p_192044_0_, int p_192044_1_, boolean p_192044_2_, boolean p_192044_3_)