Class SlotWorkbenchItem
java.lang.Object
net.minecraft.world.inventory.Slot
com.binaris.wizardry.content.menu.slot.SlotWorkbenchItem
public class SlotWorkbenchItem
extends net.minecraft.world.inventory.Slot
Arcane Workbench slot that only accepts items implementing
IWorkbenchItem.
Notifies the menu when its contents change.-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
ConstructorsConstructorDescriptionSlotWorkbenchItem(net.minecraft.world.Container container, int slot, int x, int y, ArcaneWorkbenchMenu menu) -
Method Summary
Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getNoItemIcon, hasItem, isActive, isHighlightable, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, remove, safeInsert, safeInsert, safeTake, setByPlayer, setChanged, tryRemove
-
Constructor Details
-
Method Details
-
set
public void set(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
setin classnet.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) - Overrides:
onTakein classnet.minecraft.world.inventory.Slot
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSizein classnet.minecraft.world.inventory.Slot
-
mayPlace
public boolean mayPlace(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
mayPlacein classnet.minecraft.world.inventory.Slot
-