Package net.minecraft.screen
Class BrewingStandScreenHandler.PotionSlot
java.lang.Object
net.minecraft.screen.slot.Slot
net.minecraft.screen.BrewingStandScreenHandler.PotionSlot
- Enclosing class:
- BrewingStandScreenHandler
static class BrewingStandScreenHandler.PotionSlot extends Slot
- Mappings:
Namespace Name official bjw$cintermediary net/minecraft/class_1708$class_1711named net/minecraft/screen/BrewingStandScreenHandler$PotionSlot
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PotionSlot(Inventory inventory, int index, int x, int y) -
Method Summary
Modifier and Type Method Description booleancanInsert(ItemStack stack)intgetMaxItemCount()static booleanmatches(ItemStack stack)ItemStackonTakeItem(PlayerEntity player, ItemStack stack)Methods inherited from class net.minecraft.screen.slot.Slot
canTakeItems, doDrawHoveringEffect, getBackgroundSprite, getMaxItemCount, getStack, hasStack, markDirty, method_32753, method_32754, method_32755, method_32756, onCrafted, onCrafted, onStackChanged, onTake, setStack, takeStack
-
Constructor Details
-
PotionSlot
- Mappings:
Namespace Name Mixin selector official <init>Lblh;<init>(Lapj;III)Vintermediary <init>Lnet/minecraft/class_1735;<init>(Lnet/minecraft/class_1263;III)Vnamed <init>Lnet/minecraft/screen/slot/Slot;<init>(Lnet/minecraft/inventory/Inventory;III)V
-
-
Method Details
-
canInsert
-
getMaxItemCount
public int getMaxItemCount()- Overrides:
getMaxItemCountin classSlot- Mappings:
Namespace Name Mixin selector official aLblh;a()Iintermediary method_7675Lnet/minecraft/class_1735;method_7675()Inamed getMaxItemCountLnet/minecraft/screen/slot/Slot;getMaxItemCount()I
-
onTakeItem
- Overrides:
onTakeItemin classSlot- Mappings:
Namespace Name Mixin selector official aLblh;a(Lbhl;Lbnv;)Lbnv;intermediary method_7667Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;named onTakeItemLnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
matches
- Mappings:
Namespace Name Mixin selector official b_Lbjw$c;b_(Lbnv;)Zintermediary method_7631Lnet/minecraft/class_1708$class_1711;method_7631(Lnet/minecraft/class_1799;)Znamed matchesLnet/minecraft/screen/BrewingStandScreenHandler$PotionSlot;matches(Lnet/minecraft/item/ItemStack;)Z
-