public class CreativeScreen extends DisplayEffectsScreen<CreativeScreen.CreativeContainer>
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
CreativeScreen.CreativeContainer |
hasActivePotionEffectscontainer, dragSplitting, dragSplittingSlots, guiLeft, guiTop, hoveredSlot, INVENTORY_BACKGROUND, playerInventory, slotColor, xSize, ySizebuttons, children, font, height, itemRenderer, minecraft, passEvents, title, widthBACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION| コンストラクタと説明 |
|---|
CreativeScreen(PlayerEntity player) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
charTyped(char p_charTyped_1_,
int p_charTyped_2_) |
protected void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY)
Draws the background layer of this container (behind the items).
|
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY)
Draw the foreground layer for the GuiContainer (everything in front of the items)
|
protected void |
drawTab(ItemGroup tab)
Draws the given tab and its background, deciding whether to highlight the tab or not based off of the selected
index.
|
protected boolean |
func_195376_a(double p_195376_1_,
double p_195376_3_) |
int |
getSelectedTabIndex()
Returns the index of the currently selected tab.
|
static void |
handleHotbarSnapshots(Minecraft client,
int index,
boolean load,
boolean save) |
protected void |
handleMouseClick(Slot slotIn,
int slotId,
int mouseButton,
ClickType type)
Called when the mouse is clicked over a slot or outside the gui.
|
protected boolean |
hasClickedOutside(double mouseX,
double mouseY,
int guiLeftIn,
int guiTopIn,
int mouseButton) |
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 keyCode,
int scanCode,
int modifiers) |
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)
Renders the creative inventory hovering text if mouse is over it.
|
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, shouldCloseOnEscaddButton, 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, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, func_212932_b, getEventListenerForPos, setFocusedDefaultmouseMovedpublic CreativeScreen(PlayerEntity player)
public void tick()
tick クラス内 ContainerScreen<CreativeScreen.CreativeContainer>protected void handleMouseClick(@Nullable
Slot slotIn,
int slotId,
int mouseButton,
ClickType type)
handleMouseClick クラス内 ContainerScreen<CreativeScreen.CreativeContainer>protected void updateActivePotionEffects()
protected void init()
init クラス内 DisplayEffectsScreen<CreativeScreen.CreativeContainer>public void resize(Minecraft p_resize_1_, int p_resize_2_, int p_resize_3_)
public void removed()
removed クラス内 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 インタフェース内 IGuiEventListenerkeyPressed インタフェース内 INestedGuiEventHandlerkeyPressed クラス内 ContainerScreen<CreativeScreen.CreativeContainer>public boolean keyReleased(int keyCode,
int scanCode,
int modifiers)
protected void drawGuiContainerForegroundLayer(int mouseX,
int mouseY)
public boolean mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_)
mouseClicked インタフェース内 IGuiEventListenermouseClicked インタフェース内 INestedGuiEventHandlermouseClicked クラス内 ContainerScreen<CreativeScreen.CreativeContainer>public boolean mouseReleased(double p_mouseReleased_1_,
double p_mouseReleased_3_,
int p_mouseReleased_5_)
mouseReleased インタフェース内 IGuiEventListenermouseReleased インタフェース内 INestedGuiEventHandlermouseReleased クラス内 ContainerScreen<CreativeScreen.CreativeContainer>public boolean mouseScrolled(double p_mouseScrolled_1_,
double p_mouseScrolled_3_,
double p_mouseScrolled_5_)
protected boolean hasClickedOutside(double mouseX,
double mouseY,
int guiLeftIn,
int guiTopIn,
int mouseButton)
hasClickedOutside クラス内 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 インタフェース内 IGuiEventListenermouseDragged インタフェース内 INestedGuiEventHandlermouseDragged クラス内 ContainerScreen<CreativeScreen.CreativeContainer>public void render(int p_render_1_,
int p_render_2_,
float p_render_3_)
render インタフェース内 IRenderablerender クラス内 DisplayEffectsScreen<CreativeScreen.CreativeContainer>protected void renderTooltip(ItemStack p_renderTooltip_1_, int p_renderTooltip_2_, int p_renderTooltip_3_)
renderTooltip クラス内 Screenprotected void drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY)
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)