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$CreativeSlotintermediary net/minecraft/class_481$class_484official gbi$c
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanTakeItems(PlayerEntity playerEntity) intintgetMaxItemCount(ItemStack stack) getStack()booleanhasStack()booleanvoidvoidonTakeItem(PlayerEntity player, ItemStack stack) voidSets the slot's stack tostackand marks the slot as dirty.voidsetStackNoCallbacks(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 slotLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen$CreativeSlot;slot:Lnet/minecraft/screen/slot/Slot;intermediary field_2898Lnet/minecraft/class_481$class_484;field_2898:Lnet/minecraft/class_1735;official aLgbi$c;a:Lcxn;
-
-
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)Vintermediary <init>Lnet/minecraft/class_481$class_484;<init>(Lnet/minecraft/class_1735;III)Vofficial <init>Lgbi$c;<init>(Lcxn;III)V
-
-
Method Details
-
onTakeItem
- Overrides:
onTakeItemin classSlot- Mappings:
Namespace Name Mixin selector named onTakeItemLnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Vintermediary method_7667Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vofficial aLcxn;a(Lcrx;Lczy;)V
-
canInsert
-
getStack
-
hasStack
public boolean hasStack() -
setStack
Sets the slot's stack tostackand marks the slot as dirty. Subclasses may override this method to perform additional operations.- Overrides:
setStackin classSlot- Mappings:
Namespace Name Mixin selector named setStackLnet/minecraft/screen/slot/Slot;setStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Vintermediary method_48931Lnet/minecraft/class_1735;method_48931(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Vofficial aLcxn;a(Lczy;Lczy;)V
-
setStackNoCallbacks
- Overrides:
setStackNoCallbacksin classSlot- Mappings:
Namespace Name Mixin selector named setStackNoCallbacksLnet/minecraft/screen/slot/Slot;setStackNoCallbacks(Lnet/minecraft/item/ItemStack;)Vintermediary method_7673Lnet/minecraft/class_1735;method_7673(Lnet/minecraft/class_1799;)Vofficial fLcxn;f(Lczy;)V
-
markDirty
public void markDirty() -
getMaxItemCount
public int getMaxItemCount()- Overrides:
getMaxItemCountin classSlot- Mappings:
Namespace Name Mixin selector named getMaxItemCountLnet/minecraft/screen/slot/Slot;getMaxItemCount()Iintermediary method_7675Lnet/minecraft/class_1735;method_7675()Iofficial aLcxn;a()I
-
getMaxItemCount
- Overrides:
getMaxItemCountin classSlot- Mappings:
Namespace Name Mixin selector named getMaxItemCountLnet/minecraft/screen/slot/Slot;getMaxItemCount(Lnet/minecraft/item/ItemStack;)Iintermediary method_7676Lnet/minecraft/class_1735;method_7676(Lnet/minecraft/class_1799;)Iofficial b_Lcxn;b_(Lczy;)I
-
getBackgroundSprite
- Overrides:
getBackgroundSpritein classSlot- Mappings:
Namespace Name Mixin selector named getBackgroundSpriteLnet/minecraft/screen/slot/Slot;getBackgroundSprite()Lnet/minecraft/util/Identifier;intermediary method_7679Lnet/minecraft/class_1735;method_7679()Lnet/minecraft/class_2960;official cLcxn;c()Lali;
-
takeStack
-
isEnabled
public boolean isEnabled() -
canTakeItems
- Overrides:
canTakeItemsin classSlot- Mappings:
Namespace Name Mixin selector named canTakeItemsLnet/minecraft/screen/slot/Slot;canTakeItems(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_7674Lnet/minecraft/class_1735;method_7674(Lnet/minecraft/class_1657;)Zofficial aLcxn;a(Lcrx;)Z
-