Class SlotMixin
java.lang.Object
de.luckymcdev.foundryengine.mixin.slot.SlotMixin
- All Implemented Interfaces:
EngineInterface<net.minecraft.world.inventory.Slot>, EngineSlot
Implements
EngineSlot on Slot to support custom tooltips and disabled override.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this slot is overridden as disabled.List<net.minecraft.network.chat.Component> Returns the custom tooltip text for this slot.voidengine$setDisabledOverride(boolean disabled) Overrides the disabled state of this slot.voidengine$setSlotTooltipText(List<net.minecraft.network.chat.Component> newSlotTooltipTextList) Sets the custom tooltip text for this slot.voidengine$setX(int x) Sets the X position of this slot.voidengine$setY(int y) Sets the Y position of this slot.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EngineInterface
engine$selfMethods inherited from interface EngineSlot
getTooltip, isLocked, lock, setTooltip, unlock
-
Field Details
-
x
public int x -
y
public int y
-
-
Constructor Details
-
SlotMixin
public SlotMixin()
-
-
Method Details
-
engine$setX
public void engine$setX(int x) Sets the X position of this slot.- Specified by:
engine$setXin interfaceEngineSlot
-
engine$setY
public void engine$setY(int y) Sets the Y position of this slot.- Specified by:
engine$setYin interfaceEngineSlot
-
engine$setDisabledOverride
public void engine$setDisabledOverride(boolean disabled) Overrides the disabled state of this slot.- Specified by:
engine$setDisabledOverridein interfaceEngineSlot
-
engine$getDisabledOverride
public boolean engine$getDisabledOverride()Returns whether this slot is overridden as disabled.- Specified by:
engine$getDisabledOverridein interfaceEngineSlot
-
engine$setSlotTooltipText
public void engine$setSlotTooltipText(List<net.minecraft.network.chat.Component> newSlotTooltipTextList) Sets the custom tooltip text for this slot.- Specified by:
engine$setSlotTooltipTextin interfaceEngineSlot
-
engine$getSlotTooltipText
Returns the custom tooltip text for this slot.- Specified by:
engine$getSlotTooltipTextin interfaceEngineSlot
-