Class CreativeModeInventoryScreenSlotWrapperMixin
java.lang.Object
net.minecraft.world.inventory.Slot
de.luckymcdev.foundryengine.mixin.screen.CreativeModeInventoryScreenSlotWrapperMixin
- All Implemented Interfaces:
EngineInterface<net.minecraft.world.inventory.Slot>, EngineSlot
public abstract class CreativeModeInventoryScreenSlotWrapperMixin
extends net.minecraft.world.inventory.Slot
implements EngineSlot
Implements
EngineSlot on the creative inventory slot wrapper.-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y -
Constructor Summary
ConstructorsConstructorDescriptionCreativeModeInventoryScreenSlotWrapperMixin(net.minecraft.world.Container container, int slot, int x, int y) -
Method Summary
Modifier and TypeMethodDescriptionvoidCreativeModeInventoryScreen$SlotWrapper(net.minecraft.world.inventory.Slot target, int index, int x, int y, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Copies tooltip and disabled state from the wrapped slot.booleanReturns 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) Sets the disabled override for this slot.voidengine$setSlotTooltipText(List<net.minecraft.network.chat.Component> newSlotTooltipTextList) Sets the custom tooltip text for this slot.Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, mayPickup, mayPlace, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeClone, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setByPlayer, setChanged, tryRemoveMethods 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
engine$setX, engine$setY, getTooltip, isLocked, lock, setTooltip, unlock
-
Constructor Details
-
CreativeModeInventoryScreenSlotWrapperMixin
public CreativeModeInventoryScreenSlotWrapperMixin(net.minecraft.world.Container container, int slot, int x, int y)
-
-
Method Details
-
CreativeModeInventoryScreen$SlotWrapper
public void CreativeModeInventoryScreen$SlotWrapper(net.minecraft.world.inventory.Slot target, int index, int x, int y, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci) Copies tooltip and disabled state from the wrapped slot. -
engine$setDisabledOverride
public void engine$setDisabledOverride(boolean disabled) Sets the disabled override for 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
-