Class SlotVariable
java.lang.Object
net.minecraft.world.inventory.Slot
org.cyclops.cyclopscore.inventory.slot.SlotExtended
org.cyclops.cyclopscore.inventory.slot.SlotSingleItem
org.cyclops.integrateddynamics.core.inventory.container.slot.SlotVariable
public class SlotVariable
extends org.cyclops.cyclopscore.inventory.slot.SlotSingleItem
Slot for a variable item.
-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y
-
Constructor Summary
ConstructorDescriptionSlotVariable
(net.minecraft.world.Container inventory, int index, int x, int y) Make a new instance. -
Method Summary
Methods inherited from class org.cyclops.cyclopscore.inventory.slot.SlotSingleItem
getItemAllowed, mayPlace
Methods inherited from class org.cyclops.cyclopscore.inventory.slot.SlotExtended
isAdjustable, isEnabled, isPhantom, mayPickup, setAdjustable, setEnabled, setPhantom
Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove
-
Field Details
-
VARIABLE_EMPTY
public static net.minecraft.resources.ResourceLocation VARIABLE_EMPTY
-
-
Constructor Details
-
SlotVariable
public SlotVariable(net.minecraft.world.Container inventory, int index, int x, int y) Make a new instance.- Parameters:
inventory
- The inventory this slot will be in.index
- The index of this slot.x
- X coordinate.y
- Y coordinate.
-