类 FakeSlot
java.lang.Object
net.minecraft.world.inventory.Slot
committee.nova.mods.avaritia.api.common.slot.FakeSlot
public class FakeSlot
extends net.minecraft.world.inventory.Slot
-
字段概要
从类继承的字段 net.minecraft.world.inventory.Slot
container, index, x, y -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidonQuickCraft(@NotNull net.minecraft.world.item.ItemStack pOldStack, @NotNull net.minecraft.world.item.ItemStack pNewStack) voidonTake(@NotNull net.minecraft.world.entity.player.Player pPlayer, @NotNull net.minecraft.world.item.ItemStack pStack) @NotNull net.minecraft.world.item.ItemStackremove(int pAmount) @NotNull net.minecraft.world.item.ItemStacksafeInsert(@NotNull net.minecraft.world.item.ItemStack pStack, int pIncrement) @NotNull net.minecraft.world.item.ItemStacksafeTake(int pCount, int pDecrement, @NotNull net.minecraft.world.entity.player.Player pPlayer) voidset(@NotNull net.minecraft.world.item.ItemStack pStack) void@NotNull Optional<net.minecraft.world.item.ItemStack>tryRemove(int pCount, int pDecrement, @NotNull net.minecraft.world.entity.player.Player pPlayer) 从类继承的方法 net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isHighlightable, isSameInventory, mayPickup, mayPlace, onQuickCraft, onSwapCraft, safeInsert, setBackground, setByPlayer
-
构造器详细资料
-
FakeSlot
public FakeSlot(net.minecraft.world.Container pContainer, int pSlot, int pX, int pY)
-
-
方法详细资料
-
set
public void set(@NotNull @NotNull net.minecraft.world.item.ItemStack pStack) - 覆盖:
set在类中net.minecraft.world.inventory.Slot
-
onTake
public void onTake(@NotNull @NotNull net.minecraft.world.entity.player.Player pPlayer, @NotNull @NotNull net.minecraft.world.item.ItemStack pStack) - 覆盖:
onTake在类中net.minecraft.world.inventory.Slot
-
remove
@NotNull public @NotNull net.minecraft.world.item.ItemStack remove(int pAmount) - 覆盖:
remove在类中net.minecraft.world.inventory.Slot
-
tryRemove
@NotNull public @NotNull Optional<net.minecraft.world.item.ItemStack> tryRemove(int pCount, int pDecrement, @NotNull @NotNull net.minecraft.world.entity.player.Player pPlayer) - 覆盖:
tryRemove在类中net.minecraft.world.inventory.Slot
-
safeInsert
@NotNull public @NotNull net.minecraft.world.item.ItemStack safeInsert(@NotNull @NotNull net.minecraft.world.item.ItemStack pStack, int pIncrement) - 覆盖:
safeInsert在类中net.minecraft.world.inventory.Slot
-
safeTake
@NotNull public @NotNull net.minecraft.world.item.ItemStack safeTake(int pCount, int pDecrement, @NotNull @NotNull net.minecraft.world.entity.player.Player pPlayer) - 覆盖:
safeTake在类中net.minecraft.world.inventory.Slot
-
onQuickCraft
public void onQuickCraft(@NotNull @NotNull net.minecraft.world.item.ItemStack pOldStack, @NotNull @NotNull net.minecraft.world.item.ItemStack pNewStack) - 覆盖:
onQuickCraft在类中net.minecraft.world.inventory.Slot
-
setChanged
public void setChanged()- 覆盖:
setChanged在类中net.minecraft.world.inventory.Slot
-