Class CreativeInventoryScreen.CreativeSlot
java.lang.Object
net.minecraft.screen.slot.Slot
net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen.CreativeSlot
- Enclosing class:
- CreativeInventoryScreen
@Environment(CLIENT) static class CreativeInventoryScreen.CreativeSlot extends Slot
- Mappings:
Namespace Name official dwn$c
intermediary net/minecraft/class_481$class_484
named net/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CreativeSlot(Slot slot, int invSlot, int x, int y)
-
Method Summary
Modifier and Type Method Description boolean
canInsert(ItemStack stack)
boolean
canTakeItems(PlayerEntity playerEntity)
boolean
doDrawHoveringEffect()
com.mojang.datafixers.util.Pair<Identifier,Identifier>
getBackgroundSprite()
int
getMaxItemCount()
int
getMaxItemCount(ItemStack stack)
ItemStack
getStack()
boolean
hasStack()
void
markDirty()
ItemStack
onTakeItem(PlayerEntity player, ItemStack stack)
void
setStack(ItemStack stack)
ItemStack
takeStack(int amount)
Methods inherited from class net.minecraft.screen.slot.Slot
method_32753, method_32754, method_32755, method_32756, onCrafted, onCrafted, onStackChanged, onTake
-
Field Details
-
slot
- Mappings:
Namespace Name Mixin selector official a
Ldwn$c;a:Lblh;
intermediary field_2898
Lnet/minecraft/class_481$class_484;field_2898:Lnet/minecraft/class_1735;
named slot
Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;slot:Lnet/minecraft/screen/slot/Slot;
-
-
Constructor Details
-
CreativeSlot
- Mappings:
Namespace Name Mixin selector official <init>
Ldwn$c;<init>(Lblh;III)V
intermediary <init>
Lnet/minecraft/class_481$class_484;<init>(Lnet/minecraft/class_1735;III)V
named <init>
Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;<init>(Lnet/minecraft/screen/slot/Slot;III)V
-
-
Method Details
-
onTakeItem
- Overrides:
onTakeItem
in classSlot
- Mappings:
Namespace Name Mixin selector official a
Lblh;a(Lbhl;Lbnv;)Lbnv;
intermediary method_7667
Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
named onTakeItem
Lnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
canInsert
-
getStack
-
hasStack
public boolean hasStack() -
setStack
-
markDirty
public void markDirty() -
getMaxItemCount
public int getMaxItemCount()- Overrides:
getMaxItemCount
in classSlot
- Mappings:
Namespace Name Mixin selector official a
Lblh;a()I
intermediary method_7675
Lnet/minecraft/class_1735;method_7675()I
named getMaxItemCount
Lnet/minecraft/screen/slot/Slot;getMaxItemCount()I
-
getMaxItemCount
- Overrides:
getMaxItemCount
in classSlot
- Mappings:
Namespace Name Mixin selector official b
Lblh;b(Lbnv;)I
intermediary method_7676
Lnet/minecraft/class_1735;method_7676(Lnet/minecraft/class_1799;)I
named getMaxItemCount
Lnet/minecraft/screen/slot/Slot;getMaxItemCount(Lnet/minecraft/item/ItemStack;)I
-
getBackgroundSprite
- Overrides:
getBackgroundSprite
in classSlot
- Mappings:
Namespace Name Mixin selector official c
Lblh;c()Lcom/mojang/datafixers/util/Pair;
intermediary method_7679
Lnet/minecraft/class_1735;method_7679()Lcom/mojang/datafixers/util/Pair;
named getBackgroundSprite
Lnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lcom/mojang/datafixers/util/Pair;
-
takeStack
-
doDrawHoveringEffect
public boolean doDrawHoveringEffect()- Overrides:
doDrawHoveringEffect
in classSlot
- Mappings:
Namespace Name Mixin selector official b
Lblh;b()Z
intermediary method_7682
Lnet/minecraft/class_1735;method_7682()Z
named doDrawHoveringEffect
Lnet/minecraft/screen/slot/Slot;doDrawHoveringEffect()Z
-
canTakeItems
- Overrides:
canTakeItems
in classSlot
- Mappings:
Namespace Name Mixin selector official a
Lblh;a(Lbhl;)Z
intermediary method_7674
Lnet/minecraft/class_1735;method_7674(Lnet/minecraft/class_1657;)Z
named canTakeItems
Lnet/minecraft/screen/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Z
-