public class CreativeScreen extends DisplayEffectsScreen<CreativeScreen.CreativeContainer>
Modifier and Type | Class and Description |
---|---|
static class |
CreativeScreen.CreativeContainer |
hasActivePotionEffects
container, dragSplitting, dragSplittingSlots, guiLeft, guiTop, hoveredSlot, INVENTORY_BACKGROUND, playerInventory, slotColor, xSize, ySize
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
BACKGROUND_LOCATION, blitOffset, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
CreativeScreen(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
boolean |
charTyped(char p_charTyped_1_,
int p_charTyped_2_) |
protected void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY) |
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY) |
protected void |
drawTab(ItemGroup tab) |
protected boolean |
func_195376_a(double p_195376_1_,
double p_195376_3_) |
int |
getSelectedTabIndex() |
static void |
handleHotbarSnapshots(Minecraft client,
int index,
boolean load,
boolean save) |
protected void |
handleMouseClick(Slot slotIn,
int slotId,
int mouseButton,
ClickType type) |
protected boolean |
hasClickedOutside(double p_195361_1_,
double p_195361_3_,
int p_195361_5_,
int p_195361_6_,
int p_195361_7_) |
protected void |
init() |
protected boolean |
isMouseOverGroup(ItemGroup p_195375_1_,
double p_195375_2_,
double p_195375_4_) |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
boolean |
keyReleased(int p_223281_1_,
int p_223281_2_,
int p_223281_3_) |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
boolean |
mouseDragged(double p_mouseDragged_1_,
double p_mouseDragged_3_,
int p_mouseDragged_5_,
double p_mouseDragged_6_,
double p_mouseDragged_8_) |
boolean |
mouseReleased(double p_mouseReleased_1_,
double p_mouseReleased_3_,
int p_mouseReleased_5_) |
boolean |
mouseScrolled(double p_mouseScrolled_1_,
double p_mouseScrolled_3_,
double p_mouseScrolled_5_) |
void |
removed() |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
protected boolean |
renderCreativeInventoryHoveringText(ItemGroup tab,
int mouseX,
int mouseY) |
protected void |
renderTooltip(ItemStack p_renderTooltip_1_,
int p_renderTooltip_2_,
int p_renderTooltip_3_) |
void |
resize(Minecraft p_resize_1_,
int p_resize_2_,
int p_resize_3_) |
void |
tick() |
protected void |
updateActivePotionEffects() |
func_195363_d, getContainer, getGuiLeft, getGuiTop, getSlotColor, getSlotUnderMouse, getXSize, getYSize, isPauseScreen, isPointInRegion, renderHoveredToolTip, shouldCloseOnEsc
addButton, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, setSize, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fillGradient, hLine, innerBlit, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, func_212928_a, func_212930_a, func_212932_b
mouseMoved
public CreativeScreen(PlayerEntity player)
public void tick()
tick
in class ContainerScreen<CreativeScreen.CreativeContainer>
protected void handleMouseClick(@Nullable Slot slotIn, int slotId, int mouseButton, ClickType type)
handleMouseClick
in class ContainerScreen<CreativeScreen.CreativeContainer>
protected void updateActivePotionEffects()
updateActivePotionEffects
in class DisplayEffectsScreen<CreativeScreen.CreativeContainer>
protected void init()
init
in class DisplayEffectsScreen<CreativeScreen.CreativeContainer>
public void resize(Minecraft p_resize_1_, int p_resize_2_, int p_resize_3_)
public void removed()
removed
in class ContainerScreen<CreativeScreen.CreativeContainer>
public boolean charTyped(char p_charTyped_1_, int p_charTyped_2_)
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
keyPressed
in interface IGuiEventListener
keyPressed
in interface INestedGuiEventHandler
keyPressed
in class ContainerScreen<CreativeScreen.CreativeContainer>
public boolean keyReleased(int p_223281_1_, int p_223281_2_, int p_223281_3_)
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
drawGuiContainerForegroundLayer
in class ContainerScreen<CreativeScreen.CreativeContainer>
public boolean mouseClicked(double p_mouseClicked_1_, double p_mouseClicked_3_, int p_mouseClicked_5_)
mouseClicked
in interface IGuiEventListener
mouseClicked
in interface INestedGuiEventHandler
mouseClicked
in class ContainerScreen<CreativeScreen.CreativeContainer>
public boolean mouseReleased(double p_mouseReleased_1_, double p_mouseReleased_3_, int p_mouseReleased_5_)
mouseReleased
in interface IGuiEventListener
mouseReleased
in interface INestedGuiEventHandler
mouseReleased
in class ContainerScreen<CreativeScreen.CreativeContainer>
public boolean mouseScrolled(double p_mouseScrolled_1_, double p_mouseScrolled_3_, double p_mouseScrolled_5_)
protected boolean hasClickedOutside(double p_195361_1_, double p_195361_3_, int p_195361_5_, int p_195361_6_, int p_195361_7_)
hasClickedOutside
in class ContainerScreen<CreativeScreen.CreativeContainer>
protected boolean func_195376_a(double p_195376_1_, double p_195376_3_)
public boolean mouseDragged(double p_mouseDragged_1_, double p_mouseDragged_3_, int p_mouseDragged_5_, double p_mouseDragged_6_, double p_mouseDragged_8_)
mouseDragged
in interface IGuiEventListener
mouseDragged
in interface INestedGuiEventHandler
mouseDragged
in class ContainerScreen<CreativeScreen.CreativeContainer>
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
render
in class DisplayEffectsScreen<CreativeScreen.CreativeContainer>
protected void renderTooltip(ItemStack p_renderTooltip_1_, int p_renderTooltip_2_, int p_renderTooltip_3_)
renderTooltip
in class Screen
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class ContainerScreen<CreativeScreen.CreativeContainer>
protected boolean isMouseOverGroup(ItemGroup p_195375_1_, double p_195375_2_, double p_195375_4_)
protected boolean renderCreativeInventoryHoveringText(ItemGroup tab, int mouseX, int mouseY)
protected void drawTab(ItemGroup tab)
public int getSelectedTabIndex()
public static void handleHotbarSnapshots(Minecraft client, int index, boolean load, boolean save)