Package net.minecraft.screen
Class BrewingScreenHandler.PotionSlot
java.lang.Object
net.minecraft.inventory.slot.Slot
net.minecraft.screen.BrewingScreenHandler.PotionSlot
- Enclosing class:
- BrewingScreenHandler
static class BrewingScreenHandler.PotionSlot extends Slot
- Mappings:
Namespace Name official xm$bintermediary net/minecraft/class_1988$class_1990named net/minecraft/screen/BrewingScreenHandler$PotionSlot
-
Field Summary
Fields Modifier and Type Field Description private PlayerEntityplayer -
Constructor Summary
Constructors Constructor Description PotionSlot(PlayerEntity player, Inventory inventory, int invSlot, int xPosition, int yPosition) -
Method Summary
Modifier and Type Method Description booleancanInsert(ItemStack stack)intgetMaxStackAmount()static booleanmatches(ItemStack stack)voidonTakeItem(PlayerEntity player, ItemStack stack)Methods inherited from class net.minecraft.inventory.slot.Slot
canTakeItems, doDrawHoveringEffect, getMaxStackAmount, getStack, hasStack, markDirty, method_8155, method_8163, onCrafted, onCrafted, onStackChanged, setStack, takeStack
-
Field Details
-
player
- Mappings:
Namespace Name Mixin selector official aLxm$b;a:Lwn;intermediary field_8467Lnet/minecraft/class_1988$class_1990;field_8467:Lnet/minecraft/class_1963;named playerLnet/minecraft/screen/BrewingScreenHandler$PotionSlot;player:Lnet/minecraft/entity/player/PlayerEntity;
-
-
Constructor Details
-
PotionSlot
public PotionSlot(PlayerEntity player, Inventory inventory, int invSlot, int xPosition, int yPosition)- Mappings:
Namespace Name Mixin selector official <init>Lxm$b;<init>(Lwn;Log;III)Vintermediary <init>Lnet/minecraft/class_1988$class_1990;<init>(Lnet/minecraft/class_1963;Lnet/minecraft/class_1718;III)Vnamed <init>Lnet/minecraft/screen/BrewingScreenHandler$PotionSlot;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/inventory/Inventory;III)V
-
-
Method Details
-
canInsert
-
getMaxStackAmount
public int getMaxStackAmount()- Overrides:
getMaxStackAmountin classSlot- Mappings:
Namespace Name Mixin selector official aLyg;a()Iintermediary method_8153Lnet/minecraft/class_2010;method_8153()Inamed getMaxStackAmountLnet/minecraft/inventory/slot/Slot;getMaxStackAmount()I
-
onTakeItem
- Overrides:
onTakeItemin classSlot- Mappings:
Namespace Name Mixin selector official aLyg;a(Lwn;Lzx;)Vintermediary method_8157Lnet/minecraft/class_2010;method_8157(Lnet/minecraft/class_1963;Lnet/minecraft/class_2056;)Vnamed onTakeItemLnet/minecraft/inventory/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
-
matches
- Mappings:
Namespace Name Mixin selector official b_Lxm$b;b_(Lzx;)Zintermediary method_8130Lnet/minecraft/class_1988$class_1990;method_8130(Lnet/minecraft/class_2056;)Znamed matchesLnet/minecraft/screen/BrewingScreenHandler$PotionSlot;matches(Lnet/minecraft/item/ItemStack;)Z
-