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
  • 构造器概要

    构造器
    构造器
    说明
    FakeSlot(net.minecraft.world.Container pContainer, int pSlot, int pX, int pY)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    onQuickCraft(@NotNull net.minecraft.world.item.ItemStack pOldStack, @NotNull net.minecraft.world.item.ItemStack pNewStack)
     
    void
    onTake(@NotNull net.minecraft.world.entity.player.Player pPlayer, @NotNull net.minecraft.world.item.ItemStack pStack)
     
    @NotNull net.minecraft.world.item.ItemStack
    remove(int pAmount)
     
    @NotNull net.minecraft.world.item.ItemStack
    safeInsert(@NotNull net.minecraft.world.item.ItemStack pStack, int pIncrement)
     
    @NotNull net.minecraft.world.item.ItemStack
    safeTake(int pCount, int pDecrement, @NotNull net.minecraft.world.entity.player.Player pPlayer)
     
    void
    set(@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

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

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

    • 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