类 TradeOffers.SellMapFactory

  • 所有已实现的接口:
    TradeOffers.Factory
    封闭类:
    TradeOffers

    static class TradeOffers.SellMapFactory
    extends Object
    implements TradeOffers.Factory
    Mappings:
    Namespace Name
    official biw$k
    intermediary net/minecraft/class_3853$class_1654
    named net/minecraft/village/TradeOffers$SellMapFactory
    • 字段详细资料

      • price

        private final int price
        Mappings:
        Namespace Name Mixin selector
        official a Lbiw$k;a:I
        intermediary field_18589 Lnet/minecraft/class_3853$class_1654;field_18589:I
        named price Lnet/minecraft/village/TradeOffers$SellMapFactory;price:I
      • structure

        private final StructureFeature<?> structure
        Mappings:
        Namespace Name Mixin selector
        official b Lbiw$k;b:Lcsx;
        intermediary field_7474 Lnet/minecraft/class_3853$class_1654;field_7474:Lnet/minecraft/class_3195;
        named structure Lnet/minecraft/village/TradeOffers$SellMapFactory;structure:Lnet/minecraft/world/gen/feature/StructureFeature;
      • iconType

        private final MapIcon.Type iconType
        Mappings:
        Namespace Name Mixin selector
        official c Lbiw$k;c:Ldgp$a;
        intermediary field_7473 Lnet/minecraft/class_3853$class_1654;field_7473:Lnet/minecraft/class_20$class_21;
        named iconType Lnet/minecraft/village/TradeOffers$SellMapFactory;iconType:Lnet/minecraft/item/map/MapIcon$Type;
      • maxUses

        private final int maxUses
        Mappings:
        Namespace Name Mixin selector
        official d Lbiw$k;d:I
        intermediary field_18590 Lnet/minecraft/class_3853$class_1654;field_18590:I
        named maxUses Lnet/minecraft/village/TradeOffers$SellMapFactory;maxUses:I
      • experience

        private final int experience
        Mappings:
        Namespace Name Mixin selector
        official e Lbiw$k;e:I
        intermediary field_18591 Lnet/minecraft/class_3853$class_1654;field_18591:I
        named experience Lnet/minecraft/village/TradeOffers$SellMapFactory;experience:I
    • 构造器详细资料

      • SellMapFactory

        public SellMapFactory​(int price,
                              StructureFeature<?> feature,
                              MapIcon.Type iconType,
                              int maxUses,
                              int experience)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbiw$k;<init>(ILcsx;Ldgp$a;II)V
        intermediary <init> Lnet/minecraft/class_3853$class_1654;<init>(ILnet/minecraft/class_3195;Lnet/minecraft/class_20$class_21;II)V
        named <init> Lnet/minecraft/village/TradeOffers$SellMapFactory;<init>(ILnet/minecraft/world/gen/feature/StructureFeature;Lnet/minecraft/item/map/MapIcon$Type;II)V
    • 方法详细资料

      • create

        @Nullable
        public @Nullable TradeOffer create​(Entity entity,
                                           Random random)
        Creates a trade offer.
        指定者:
        create 在接口中 TradeOffers.Factory
        返回:
        a new trade offer, or null if none should be created
        Mappings:
        Namespace Name Mixin selector
        official a Lbiw$f;a(Lasl;Ljava/util/Random;)Lbuo;
        intermediary method_7246 Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Ljava/util/Random;)Lnet/minecraft/class_1914;
        named create Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Ljava/util/Random;)Lnet/minecraft/village/TradeOffer;