类 ModCraftContainer
java.lang.Object
net.minecraft.world.inventory.TransientCraftingContainer
committee.nova.mods.avaritia.common.container.ModCraftContainer
- 所有已实现的接口:
net.minecraft.world.Clearable,net.minecraft.world.Container,net.minecraft.world.inventory.CraftingContainer,net.minecraft.world.inventory.StackedContentsCompatible
public class ModCraftContainer
extends net.minecraft.world.inventory.TransientCraftingContainer
Description:
-
字段概要
从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE -
构造器概要
构造器构造器说明ModCraftContainer(net.minecraft.world.inventory.AbstractContainerMenu menu, ItemStackWrapper inventory, int size) ModCraftContainer(net.minecraft.world.inventory.AbstractContainerMenu menu, ItemStackWrapper inventory, int size, boolean autoTable) -
方法概要
修饰符和类型方法说明voidint@NotNull net.minecraft.world.item.ItemStackgetItem(int slot) booleanisEmpty()@NotNull net.minecraft.world.item.ItemStackremoveItem(int slot, int amount) @NotNull net.minecraft.world.item.ItemStackremoveItemNoUpdate(int slot) voidvoidsetItem(int slot, @NotNull net.minecraft.world.item.ItemStack stack) booleanstillValid(@NotNull net.minecraft.world.entity.player.Player player) 从类继承的方法 net.minecraft.world.inventory.TransientCraftingContainer
fillStackedContents, getHeight, getItems, getWidth从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
-
构造器详细资料
-
ModCraftContainer
public ModCraftContainer(net.minecraft.world.inventory.AbstractContainerMenu menu, ItemStackWrapper inventory, int size) -
ModCraftContainer
public ModCraftContainer(net.minecraft.world.inventory.AbstractContainerMenu menu, ItemStackWrapper inventory, int size, boolean autoTable)
-
-
方法详细资料
-
getContainerSize
public int getContainerSize()- 指定者:
getContainerSize在接口中net.minecraft.world.Container- 覆盖:
getContainerSize在类中net.minecraft.world.inventory.TransientCraftingContainer
-
isEmpty
public boolean isEmpty()- 指定者:
isEmpty在接口中net.minecraft.world.Container- 覆盖:
isEmpty在类中net.minecraft.world.inventory.TransientCraftingContainer
-
getItem
@NotNull public @NotNull net.minecraft.world.item.ItemStack getItem(int slot) - 指定者:
getItem在接口中net.minecraft.world.Container- 覆盖:
getItem在类中net.minecraft.world.inventory.TransientCraftingContainer
-
removeItem
@NotNull public @NotNull net.minecraft.world.item.ItemStack removeItem(int slot, int amount) - 指定者:
removeItem在接口中net.minecraft.world.Container- 覆盖:
removeItem在类中net.minecraft.world.inventory.TransientCraftingContainer
-
removeItemNoUpdate
@NotNull public @NotNull net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot) - 指定者:
removeItemNoUpdate在接口中net.minecraft.world.Container- 覆盖:
removeItemNoUpdate在类中net.minecraft.world.inventory.TransientCraftingContainer
-
setItem
public void setItem(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack) - 指定者:
setItem在接口中net.minecraft.world.Container- 覆盖:
setItem在类中net.minecraft.world.inventory.TransientCraftingContainer
-
setChanged
public void setChanged()- 指定者:
setChanged在接口中net.minecraft.world.Container- 覆盖:
setChanged在类中net.minecraft.world.inventory.TransientCraftingContainer
-
stillValid
public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - 指定者:
stillValid在接口中net.minecraft.world.Container- 覆盖:
stillValid在类中net.minecraft.world.inventory.TransientCraftingContainer
-
clearContent
public void clearContent()- 指定者:
clearContent在接口中net.minecraft.world.Clearable- 覆盖:
clearContent在类中net.minecraft.world.inventory.TransientCraftingContainer
-