Class CreativeInventoryScreen.CreativeSlot
java.lang.Object
net.minecraft.screen.slot.Slot
net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen.CreativeSlot
- Enclosing class:
CreativeInventoryScreen
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot
intermediary net/minecraft/class_481$class_484
official fpi$c
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canTakeItems
(PlayerEntity playerEntity) @Nullable com.mojang.datafixers.util.Pair
<Identifier, Identifier> int
int
getMaxItemCount
(ItemStack stack) getStack()
boolean
hasStack()
boolean
void
void
onTakeItem
(PlayerEntity player, ItemStack stack) void
Sets the slot's stack tostack
and marks the slot as dirty.void
setStackNoCallbacks
(ItemStack stack) takeStack
(int amount) Methods inherited from class net.minecraft.screen.slot.Slot
canBeHighlighted, canTakePartial, disablesDynamicDisplay, getIndex, insertStack, insertStack, onCrafted, onCrafted, onQuickTransfer, onTake, setStack, takeStackRange, tryTakeStackRange
-
Field Details
-
slot
- Mappings:
Namespace Name Mixin selector named slot
Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;slot:Lnet/minecraft/screen/slot/Slot;
intermediary field_2898
Lnet/minecraft/class_481$class_484;field_2898:Lnet/minecraft/class_1735;
official a
Lfpi$c;a:Lcrq;
-
-
Constructor Details
-
CreativeSlot
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;<init>(Lnet/minecraft/screen/slot/Slot;III)V
intermediary <init>
Lnet/minecraft/class_481$class_484;<init>(Lnet/minecraft/class_1735;III)V
official <init>
Lfpi$c;<init>(Lcrq;III)V
-
-
Method Details
-
onTakeItem
- Overrides:
onTakeItem
in classSlot
- Mappings:
Namespace Name Mixin selector named onTakeItem
Lnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
intermediary method_7667
Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
official a
Lcrq;a(Lcmx;Lcuq;)V
-
canInsert
-
getStack
-
hasStack
public boolean hasStack() -
setStack
Sets the slot's stack tostack
and marks the slot as dirty. Subclasses may override this method to perform additional operations.- Overrides:
setStack
in classSlot
- Mappings:
Namespace Name Mixin selector named setStack
Lnet/minecraft/screen/slot/Slot;setStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)V
intermediary method_48931
Lnet/minecraft/class_1735;method_48931(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)V
official a
Lcrq;a(Lcuq;Lcuq;)V
-
setStackNoCallbacks
- Overrides:
setStackNoCallbacks
in classSlot
- Mappings:
Namespace Name Mixin selector named setStackNoCallbacks
Lnet/minecraft/screen/slot/Slot;setStackNoCallbacks(Lnet/minecraft/item/ItemStack;)V
intermediary method_7673
Lnet/minecraft/class_1735;method_7673(Lnet/minecraft/class_1799;)V
official f
Lcrq;f(Lcuq;)V
-
markDirty
public void markDirty() -
getMaxItemCount
public int getMaxItemCount()- Overrides:
getMaxItemCount
in classSlot
- Mappings:
Namespace Name Mixin selector named getMaxItemCount
Lnet/minecraft/screen/slot/Slot;getMaxItemCount()I
intermediary method_7675
Lnet/minecraft/class_1735;method_7675()I
official a
Lcrq;a()I
-
getMaxItemCount
- Overrides:
getMaxItemCount
in classSlot
- Mappings:
Namespace Name Mixin selector named getMaxItemCount
Lnet/minecraft/screen/slot/Slot;getMaxItemCount(Lnet/minecraft/item/ItemStack;)I
intermediary method_7676
Lnet/minecraft/class_1735;method_7676(Lnet/minecraft/class_1799;)I
official a_
Lcrq;a_(Lcuq;)I
-
getBackgroundSprite
@Nullable public @Nullable com.mojang.datafixers.util.Pair<Identifier,Identifier> getBackgroundSprite()- Overrides:
getBackgroundSprite
in classSlot
- Mappings:
Namespace Name Mixin selector named getBackgroundSprite
Lnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lcom/mojang/datafixers/util/Pair;
intermediary method_7679
Lnet/minecraft/class_1735;method_7679()Lcom/mojang/datafixers/util/Pair;
official b
Lcrq;b()Lcom/mojang/datafixers/util/Pair;
-
takeStack
-
isEnabled
public boolean isEnabled() -
canTakeItems
- Overrides:
canTakeItems
in classSlot
- Mappings:
Namespace Name Mixin selector named canTakeItems
Lnet/minecraft/screen/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Z
intermediary method_7674
Lnet/minecraft/class_1735;method_7674(Lnet/minecraft/class_1657;)Z
official a
Lcrq;a(Lcmx;)Z
-