public class CreativeScreen extends DisplayEffectsScreen<CreativeScreen.CreativeContainer>
Modifier and Type | Class and Description |
---|---|
static class |
CreativeScreen.CreativeContainer |
(package private) static class |
CreativeScreen.CreativeSlot |
(package private) static class |
CreativeScreen.LockedSlot |
Modifier and Type | Field and Description |
---|---|
private static ResourceLocation |
CREATIVE_INVENTORY_TABS |
private float |
currentScroll |
private Slot |
destroyItemSlot |
private boolean |
field_195377_F |
private boolean |
field_199506_G |
private boolean |
isScrolling |
private CreativeCraftingListener |
listener |
private int |
maxPages |
private java.util.List<Slot> |
originalSlots |
private TextFieldWidget |
searchField |
private static int |
selectedTabIndex |
private static int |
tabPage |
private java.util.Map<ResourceLocation,Tag<Item>> |
tagSearchResults |
private static Inventory |
TMP_INVENTORY |
hasActivePotionEffects
container, dragSplitting, dragSplittingSlots, guiLeft, guiTop, hoveredSlot, INVENTORY_BACKGROUND, playerInventory, slotColor, xSize, ySize
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
BACKGROUND_LOCATION, 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 mouseX,
double mouseY,
int guiLeftIn,
int guiTopIn,
int mouseButton) |
private boolean |
hasTmpInventory(Slot slotIn) |
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_) |
private boolean |
needsScrollBars() |
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_) |
private void |
searchTags(java.lang.String search) |
private void |
setCurrentCreativeTab(ItemGroup tab) |
void |
tick() |
protected void |
updateActivePotionEffects() |
private void |
updateCreativeSearch() |
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, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, func_212932_b, getEventListenerForPos, setFocusedDefault
mouseMoved
private static final ResourceLocation CREATIVE_INVENTORY_TABS
private static final Inventory TMP_INVENTORY
private static int selectedTabIndex
private float currentScroll
private boolean isScrolling
private TextFieldWidget searchField
@Nullable private java.util.List<Slot> originalSlots
@Nullable private Slot destroyItemSlot
private CreativeCraftingListener listener
private boolean field_195377_F
private boolean field_199506_G
private final java.util.Map<ResourceLocation,Tag<Item>> tagSearchResults
private static int tabPage
private int maxPages
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>
private boolean hasTmpInventory(@Nullable Slot slotIn)
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 keyCode, int scanCode, int modifiers)
private void updateCreativeSearch()
private void searchTags(java.lang.String search)
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>
private boolean needsScrollBars()
private void setCurrentCreativeTab(ItemGroup tab)
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
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)