类 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 void
    checkTakeAchievements(@NotNull net.minecraft.world.item.ItemStack pStack)
     
    boolean
    mayPlace(@NotNull net.minecraft.world.item.ItemStack stack)
     
    protected void
    onQuickCraft(@NotNull net.minecraft.world.item.ItemStack pStack, int pAmount)
     
    protected void
    onSwapCraft(int pNumItemsCrafted)
     
    void
    onTake(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.item.ItemStack stack)
     
    @NotNull net.minecraft.world.item.ItemStack
    remove(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

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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