Class SlotWorking<T extends BlockEntityWorking<T,?>>

java.lang.Object
net.minecraft.world.inventory.Slot
org.cyclops.evilcraft.core.inventory.slot.SlotWorking<T>
Type Parameters:
T - The tile type.
Direct Known Subclasses:
SlotWorkingRemoveOnly

public class SlotWorking<T extends BlockEntityWorking<T,?>> extends net.minecraft.world.inventory.Slot
Slot that is used for only accepting workable items.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class net.minecraft.world.inventory.Slot

    index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlotWorking(int index, int x, int y, ContainerTileWorking<T> container, net.minecraft.world.level.Level world)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    mayPlace(net.minecraft.world.item.ItemStack itemStack)
     
    void
    onTake(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack)
     
    void
     

    Methods inherited from class net.minecraft.world.inventory.Slot

    allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, initialize, isActive, isSameInventory, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, remove, safeInsert, safeInsert, safeTake, set, setBackground, tryRemove

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SlotWorking

      public SlotWorking(int index, int x, int y, ContainerTileWorking<T> container, net.minecraft.world.level.Level world)
  • Method Details

    • mayPlace

      public boolean mayPlace(net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      mayPlace in class net.minecraft.world.inventory.Slot
    • onTake

      public void onTake(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      onTake in class net.minecraft.world.inventory.Slot
    • setChanged

      public void setChanged()
      Overrides:
      setChanged in class net.minecraft.world.inventory.Slot