Package top.girlkisser.lazuli.api.menu
Class SlotOutputOnly
java.lang.Object
net.minecraft.world.inventory.Slot
top.girlkisser.lazuli.api.menu.SlotOutputOnly
public class SlotOutputOnly
extends net.minecraft.world.inventory.Slot
A slot that allows extracts but not inserts.
-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
ConstructorsConstructorDescriptionSlotOutputOnly(net.minecraft.world.Container container, int slot, int x, int y) A slot that allows extracts but not inserts. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowModification(net.minecraft.world.entity.player.Player player) booleanmayPlace(net.minecraft.world.item.ItemStack stack) net.minecraft.world.item.ItemStacksafeInsert(net.minecraft.world.item.ItemStack stack) net.minecraft.world.item.ItemStacksafeInsert(net.minecraft.world.item.ItemStack stack, int increment) Methods inherited from class net.minecraft.world.inventory.Slot
checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeTake, set, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove
-
Constructor Details
-
SlotOutputOnly
public SlotOutputOnly(net.minecraft.world.Container container, int slot, int x, int y) A slot that allows extracts but not inserts.- Parameters:
container- The container.slot- The slot index.x- The X position.y- The Y position.
-
-
Method Details
-
safeInsert
public net.minecraft.world.item.ItemStack safeInsert(net.minecraft.world.item.ItemStack stack) - Overrides:
safeInsertin classnet.minecraft.world.inventory.Slot
-
safeInsert
public net.minecraft.world.item.ItemStack safeInsert(net.minecraft.world.item.ItemStack stack, int increment) - Overrides:
safeInsertin classnet.minecraft.world.inventory.Slot
-
allowModification
public boolean allowModification(net.minecraft.world.entity.player.Player player) - Overrides:
allowModificationin classnet.minecraft.world.inventory.Slot
-
mayPlace
public boolean mayPlace(net.minecraft.world.item.ItemStack stack) - Overrides:
mayPlacein classnet.minecraft.world.inventory.Slot
-