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 dyh$cintermediary net/minecraft/class_481$class_484named 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 booleancanInsert(ItemStack stack)booleancanTakeItems(PlayerEntity playerEntity)booleandoDrawHoveringEffect()@Nullable com.mojang.datafixers.util.Pair<Identifier,Identifier>getBackgroundSprite()intgetMaxItemCount()intgetMaxItemCount(ItemStack stack)ItemStackgetStack()booleanhasStack()voidmarkDirty()voidonTakeItem(PlayerEntity player, ItemStack stack)voidsetStack(ItemStack stack)ItemStacktakeStack(int amount)Methods inherited from class net.minecraft.screen.slot.Slot
method_32753, method_32754, method_32755, method_32756, method_34264, method_34266, onCrafted, onCrafted, onStackChanged, onTake
-
Field Details
-
slot
- Mappings:
Namespace Name Mixin selector official aLdyh$c;a:Lbmc;intermediary field_2898Lnet/minecraft/class_481$class_484;field_2898:Lnet/minecraft/class_1735;named slotLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;slot:Lnet/minecraft/screen/slot/Slot;
-
-
Constructor Details
-
CreativeSlot
- Mappings:
Namespace Name Mixin selector official <init>Ldyh$c;<init>(Lbmc;III)Vintermediary <init>Lnet/minecraft/class_481$class_484;<init>(Lnet/minecraft/class_1735;III)Vnamed <init>Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;<init>(Lnet/minecraft/screen/slot/Slot;III)V
-
-
Method Details
-
onTakeItem
- Overrides:
onTakeItemin classSlot- Mappings:
Namespace Name Mixin selector official aLbmc;a(Lbif;Lboq;)Vintermediary method_7667Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vnamed onTakeItemLnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
-
canInsert
-
getStack
-
hasStack
public boolean hasStack() -
setStack
-
markDirty
public void markDirty() -
getMaxItemCount
public int getMaxItemCount()- Overrides:
getMaxItemCountin classSlot- Mappings:
Namespace Name Mixin selector official aLbmc;a()Iintermediary method_7675Lnet/minecraft/class_1735;method_7675()Inamed getMaxItemCountLnet/minecraft/screen/slot/Slot;getMaxItemCount()I
-
getMaxItemCount
- Overrides:
getMaxItemCountin classSlot- Mappings:
Namespace Name Mixin selector official bLbmc;b(Lboq;)Iintermediary method_7676Lnet/minecraft/class_1735;method_7676(Lnet/minecraft/class_1799;)Inamed getMaxItemCountLnet/minecraft/screen/slot/Slot;getMaxItemCount(Lnet/minecraft/item/ItemStack;)I
-
getBackgroundSprite
@Nullable public @Nullable com.mojang.datafixers.util.Pair<Identifier,Identifier> getBackgroundSprite()- Overrides:
getBackgroundSpritein classSlot- Mappings:
Namespace Name Mixin selector official cLbmc;c()Lcom/mojang/datafixers/util/Pair;intermediary method_7679Lnet/minecraft/class_1735;method_7679()Lcom/mojang/datafixers/util/Pair;named getBackgroundSpriteLnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lcom/mojang/datafixers/util/Pair;
-
takeStack
-
doDrawHoveringEffect
public boolean doDrawHoveringEffect()- Overrides:
doDrawHoveringEffectin classSlot- Mappings:
Namespace Name Mixin selector official bLbmc;b()Zintermediary method_7682Lnet/minecraft/class_1735;method_7682()Znamed doDrawHoveringEffectLnet/minecraft/screen/slot/Slot;doDrawHoveringEffect()Z
-
canTakeItems
- Overrides:
canTakeItemsin classSlot- Mappings:
Namespace Name Mixin selector official aLbmc;a(Lbif;)Zintermediary method_7674Lnet/minecraft/class_1735;method_7674(Lnet/minecraft/class_1657;)Znamed canTakeItemsLnet/minecraft/screen/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Z
-