Class HandledScreenContext
java.lang.Object
com.render.api.HandledScreenContext
- Direct Known Subclasses:
MenuHostContext
Snapshot of a handled screen host.
-
Constructor Summary
ConstructorsConstructorDescriptionHandledScreenContext(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?> screen, net.minecraft.world.inventory.AbstractContainerMenu handler, net.minecraft.world.inventory.MenuType<?> handlerType, int syncId, int revision, net.minecraft.network.chat.Component title, String plainTitle, ScreenBounds hostBounds, ScreenBounds handledBounds, net.minecraft.world.inventory.Slot focusedSlot, net.minecraft.world.item.ItemStack cursorStack, List<net.minecraft.world.inventory.Slot> slots) -
Method Summary
Modifier and TypeMethodDescriptionintintnet.minecraft.client.Minecraftclient()net.minecraft.world.item.ItemStacknet.minecraft.world.inventory.SlotfindFirstSlot(Predicate<net.minecraft.world.item.ItemStack> predicate) List<net.minecraft.world.inventory.Slot> net.minecraft.world.inventory.Slotnet.minecraft.world.inventory.AbstractContainerMenuhandler()net.minecraft.world.inventory.MenuType<?> booleanhasItem(int slotId) protected net.minecraft.world.entity.player.InventoryList<net.minecraft.world.inventory.Slot> intrevision()net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?> screen()net.minecraft.world.inventory.Slotslot(int slotId) slotBounds(int slotId) List<net.minecraft.world.inventory.Slot> slots()net.minecraft.world.item.ItemStackstack(int slotId) intstackCount(int slotId) intsyncId()net.minecraft.network.chat.Componenttitle()List<net.minecraft.world.inventory.Slot> intx()inty()
-
Constructor Details
-
HandledScreenContext
public HandledScreenContext(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?> screen, net.minecraft.world.inventory.AbstractContainerMenu handler, net.minecraft.world.inventory.MenuType<?> handlerType, int syncId, int revision, net.minecraft.network.chat.Component title, String plainTitle, ScreenBounds hostBounds, ScreenBounds handledBounds, net.minecraft.world.inventory.Slot focusedSlot, net.minecraft.world.item.ItemStack cursorStack, List<net.minecraft.world.inventory.Slot> slots)
-
-
Method Details
-
client
public net.minecraft.client.Minecraft client() -
screen
public net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?> screen() -
handler
public net.minecraft.world.inventory.AbstractContainerMenu handler() -
handlerType
public net.minecraft.world.inventory.MenuType<?> handlerType() -
syncId
public int syncId() -
revision
public int revision() -
title
public net.minecraft.network.chat.Component title() -
plainTitle
-
hostBounds
-
handledBounds
-
x
public int x() -
y
public int y() -
backgroundWidth
public int backgroundWidth() -
backgroundHeight
public int backgroundHeight() -
focusedSlot
public net.minecraft.world.inventory.Slot focusedSlot() -
cursorStack
public net.minecraft.world.item.ItemStack cursorStack() -
slots
-
slot
public net.minecraft.world.inventory.Slot slot(int slotId) -
slotBounds
-
stack
public net.minecraft.world.item.ItemStack stack(int slotId) -
stackCount
public int stackCount(int slotId) -
hasItem
public boolean hasItem(int slotId) -
findSlots
-
findFirstSlot
public net.minecraft.world.inventory.Slot findFirstSlot(Predicate<net.minecraft.world.item.ItemStack> predicate) -
visibleChestSlots
-
playerInventorySlots
-
playerInventory
protected net.minecraft.world.entity.player.Inventory playerInventory()
-