类 ModCraftResultSlot
java.lang.Object
net.minecraft.world.inventory.Slot
committee.nova.mods.avaritia.common.container.slot.ModCraftResultSlot
public class ModCraftResultSlot
extends net.minecraft.world.inventory.Slot
Description:
ResultSlot-
字段概要
从类继承的字段 net.minecraft.world.inventory.Slot
index, x, y -
构造器概要
构造器构造器说明ModCraftResultSlot(net.minecraft.world.entity.player.Player pPlayer, net.minecraft.world.inventory.AbstractContainerMenu menu, net.minecraft.world.inventory.CraftingContainer craftSlots, net.minecraft.world.Container container, int index, int xPosition, int yPosition) -
方法概要
修饰符和类型方法说明protected voidcheckTakeAchievements(@NotNull net.minecraft.world.item.ItemStack pStack) booleanmayPlace(@NotNull net.minecraft.world.item.ItemStack stack) protected voidonQuickCraft(@NotNull net.minecraft.world.item.ItemStack pStack, int pAmount) protected voidonSwapCraft(int pNumItemsCrafted) voidonTake(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.item.ItemStack stack) @NotNull net.minecraft.world.item.ItemStackremove(int pAmount) 从类继承的方法 net.minecraft.world.inventory.Slot
allowModification, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isHighlightable, isSameInventory, mayPickup, onQuickCraft, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setChanged, tryRemove
-
构造器详细资料
-
ModCraftResultSlot
public ModCraftResultSlot(net.minecraft.world.entity.player.Player pPlayer, net.minecraft.world.inventory.AbstractContainerMenu menu, net.minecraft.world.inventory.CraftingContainer craftSlots, net.minecraft.world.Container container, int index, int xPosition, int yPosition)
-
-
方法详细资料
-
mayPlace
public boolean mayPlace(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - 覆盖:
mayPlace在类中net.minecraft.world.inventory.Slot
-
remove
@NotNull public @NotNull net.minecraft.world.item.ItemStack remove(int pAmount) - 覆盖:
remove在类中net.minecraft.world.inventory.Slot
-
onQuickCraft
protected void onQuickCraft(@NotNull @NotNull net.minecraft.world.item.ItemStack pStack, int pAmount) - 覆盖:
onQuickCraft在类中net.minecraft.world.inventory.Slot
-
onSwapCraft
protected void onSwapCraft(int pNumItemsCrafted) - 覆盖:
onSwapCraft在类中net.minecraft.world.inventory.Slot
-
onTake
public void onTake(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.item.ItemStack stack) - 覆盖:
onTake在类中net.minecraft.world.inventory.Slot
-
checkTakeAchievements
protected void checkTakeAchievements(@NotNull @NotNull net.minecraft.world.item.ItemStack pStack) - 覆盖:
checkTakeAchievements在类中net.minecraft.world.inventory.Slot
-