类 TradeOutputSlot


  • public class TradeOutputSlot
    extends Slot
    Mappings:
    Namespace Name
    official bms
    intermediary net/minecraft/class_1727
    named net/minecraft/screen/slot/TradeOutputSlot
    • 字段详细资料

      • merchantInventory

        private final MerchantInventory merchantInventory
        Mappings:
        Namespace Name Mixin selector
        official a Lbms;a:Lbmq;
        intermediary field_7860 Lnet/minecraft/class_1727;field_7860:Lnet/minecraft/class_1725;
        named merchantInventory Lnet/minecraft/screen/slot/TradeOutputSlot;merchantInventory:Lnet/minecraft/village/MerchantInventory;
      • player

        private final PlayerEntity player
        Mappings:
        Namespace Name Mixin selector
        official b Lbms;b:Lbjf;
        intermediary field_7857 Lnet/minecraft/class_1727;field_7857:Lnet/minecraft/class_1657;
        named player Lnet/minecraft/screen/slot/TradeOutputSlot;player:Lnet/minecraft/entity/player/PlayerEntity;
      • amount

        private int amount
        Mappings:
        Namespace Name Mixin selector
        official g Lbms;g:I
        intermediary field_7859 Lnet/minecraft/class_1727;field_7859:I
        named amount Lnet/minecraft/screen/slot/TradeOutputSlot;amount:I
      • merchant

        private final Merchant merchant
        Mappings:
        Namespace Name Mixin selector
        official h Lbms;h:Lbun;
        intermediary field_7858 Lnet/minecraft/class_1727;field_7858:Lnet/minecraft/class_1915;
        named merchant Lnet/minecraft/screen/slot/TradeOutputSlot;merchant:Lnet/minecraft/village/Merchant;
    • 构造器详细资料

      • TradeOutputSlot

        public TradeOutputSlot​(PlayerEntity player,
                               Merchant merchant,
                               MerchantInventory merchantInventory,
                               int index,
                               int x,
                               int y)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbms;<init>(Lbjf;Lbun;Lbmq;III)V
        intermediary <init> Lnet/minecraft/class_1727;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_1915;Lnet/minecraft/class_1725;III)V
        named <init> Lnet/minecraft/screen/slot/TradeOutputSlot;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/village/Merchant;Lnet/minecraft/village/MerchantInventory;III)V
    • 方法详细资料

      • canInsert

        public boolean canInsert​(ItemStack stack)
        覆盖:
        canInsert 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official a Lbnc;a(Lbpr;)Z
        intermediary method_7680 Lnet/minecraft/class_1735;method_7680(Lnet/minecraft/class_1799;)Z
        named canInsert Lnet/minecraft/screen/slot/Slot;canInsert(Lnet/minecraft/item/ItemStack;)Z
      • takeStack

        public ItemStack takeStack​(int amount)
        覆盖:
        takeStack 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official a Lbnc;a(I)Lbpr;
        intermediary method_7671 Lnet/minecraft/class_1735;method_7671(I)Lnet/minecraft/class_1799;
        named takeStack Lnet/minecraft/screen/slot/Slot;takeStack(I)Lnet/minecraft/item/ItemStack;
      • onCrafted

        protected void onCrafted​(ItemStack stack,
                                 int amount)
        覆盖:
        onCrafted 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official a Lbnc;a(Lbpr;I)V
        intermediary method_7678 Lnet/minecraft/class_1735;method_7678(Lnet/minecraft/class_1799;I)V
        named onCrafted Lnet/minecraft/screen/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;I)V
      • onCrafted

        protected void onCrafted​(ItemStack stack)
        覆盖:
        onCrafted 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official c Lbnc;c(Lbpr;)V
        intermediary method_7669 Lnet/minecraft/class_1735;method_7669(Lnet/minecraft/class_1799;)V
        named onCrafted Lnet/minecraft/screen/slot/Slot;onCrafted(Lnet/minecraft/item/ItemStack;)V
      • onTakeItem

        public void onTakeItem​(PlayerEntity player,
                               ItemStack stack)
        覆盖:
        onTakeItem 在类中 Slot
        Mappings:
        Namespace Name Mixin selector
        official a Lbnc;a(Lbjf;Lbpr;)V
        intermediary method_7667 Lnet/minecraft/class_1735;method_7667(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V
        named onTakeItem Lnet/minecraft/screen/slot/Slot;onTakeItem(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V