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 |
hasActivePotionEffects
dragSplitting, dragSplittingSlots, guiLeft, guiTop, INVENTORY_BACKGROUND, inventorySlots, xSize, ySize
allowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, width
ICONS, 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, renderHoveredToolTip
addButton, 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, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private 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 GuiContainer
protected void handleMouseClick(@Nullable Slot slotIn, int slotId, int mouseButton, ClickType type)
handleMouseClick
in class GuiContainer
protected void updateActivePotionEffects()
updateActivePotionEffects
in class InventoryEffectRenderer
public void initGui()
initGui
in class InventoryEffectRenderer
public void onGuiClosed()
onGuiClosed
in class GuiContainer
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
keyTyped
in class GuiContainer
java.io.IOException
private void updateCreativeSearch()
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
drawGuiContainerForegroundLayer
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 mouseReleased(int mouseX, int mouseY, int state)
mouseReleased
in class GuiContainer
private boolean needsScrollBars()
private void setCurrentCreativeTab(CreativeTabs tab)
public void handleMouseInput() throws java.io.IOException
handleMouseInput
in class GuiScreen
java.io.IOException
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class InventoryEffectRenderer
protected void renderToolTip(ItemStack stack, int x, int y)
renderToolTip
in class GuiScreen
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class GuiContainer
protected 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 GuiScreen
java.io.IOException
public int getSelectedTabIndex()
public static void handleHotbarSnapshots(Minecraft p_192044_0_, int p_192044_1_, boolean p_192044_2_, boolean p_192044_3_)