Class PlayerPredicate.Builder

java.lang.Object
net.minecraft.predicate.entity.PlayerPredicate.Builder
Enclosing class:
PlayerPredicate

public static class PlayerPredicate.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/predicate/entity/PlayerPredicate$Builder
intermediary net/minecraft/class_4553$class_4557
official dp$d
  • Field Details

    • experienceLevel

      private NumberRange.IntRange experienceLevel
      Mappings:
      Namespace Name Mixin selector
      named experienceLevel Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;experienceLevel:Lnet/minecraft/predicate/NumberRange$IntRange;
      intermediary field_20730 Lnet/minecraft/class_4553$class_4557;field_20730:Lnet/minecraft/class_2096$class_2100;
      official a Ldp$d;a:Ldh$d;
    • gameMode

      private class_9789 gameMode
      Mappings:
      Namespace Name Mixin selector
      named gameMode Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;gameMode:Lnet/minecraft/class_9789;
      intermediary field_20731 Lnet/minecraft/class_4553$class_4557;field_20731:Lnet/minecraft/class_9789;
      official b Ldp$d;b:Lce;
    • stats

      Mappings:
      Namespace Name Mixin selector
      named stats Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;stats:Lcom/google/common/collect/ImmutableList$Builder;
      intermediary field_20732 Lnet/minecraft/class_4553$class_4557;field_20732:Lcom/google/common/collect/ImmutableList$Builder;
      official c Ldp$d;c:Lcom/google/common/collect/ImmutableList$Builder;
    • recipes

      private final Object2BooleanMap<Identifier> recipes
      Mappings:
      Namespace Name Mixin selector
      named recipes Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;recipes:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
      intermediary field_20733 Lnet/minecraft/class_4553$class_4557;field_20733:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
      official d Ldp$d;d:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
    • advancements

      Mappings:
      Namespace Name Mixin selector
      named advancements Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;advancements:Ljava/util/Map;
      intermediary field_20734 Lnet/minecraft/class_4553$class_4557;field_20734:Ljava/util/Map;
      official e Ldp$d;e:Ljava/util/Map;
    • lookingAt

      private Optional<EntityPredicate> lookingAt
      Mappings:
      Namespace Name Mixin selector
      named lookingAt Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;lookingAt:Ljava/util/Optional;
      intermediary field_33930 Lnet/minecraft/class_4553$class_4557;field_33930:Ljava/util/Optional;
      official f Ldp$d;f:Ljava/util/Optional;
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • create

      public static PlayerPredicate.Builder create()
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;create()Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;
      intermediary method_35310 Lnet/minecraft/class_4553$class_4557;method_35310()Lnet/minecraft/class_4553$class_4557;
      official a Ldp$d;a()Ldp$d;
    • experienceLevel

      public PlayerPredicate.Builder experienceLevel(NumberRange.IntRange experienceLevel)
      Mappings:
      Namespace Name Mixin selector
      named experienceLevel Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;experienceLevel(Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;
      intermediary method_35313 Lnet/minecraft/class_4553$class_4557;method_35313(Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_4553$class_4557;
      official a Ldp$d;a(Ldh$d;)Ldp$d;
    • stat

      public <T> PlayerPredicate.Builder stat(StatType<T> statType, RegistryEntry.Reference<T> value, NumberRange.IntRange range)
      Mappings:
      Namespace Name Mixin selector
      named stat Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;stat(Lnet/minecraft/stat/StatType;Lnet/minecraft/registry/entry/RegistryEntry$Reference;Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;
      intermediary method_35311 Lnet/minecraft/class_4553$class_4557;method_35311(Lnet/minecraft/class_3448;Lnet/minecraft/class_6880$class_6883;Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_4553$class_4557;
      official a Ldp$d;a(Lavx;Ljm$c;Ldh$d;)Ldp$d;
    • recipe

      public PlayerPredicate.Builder recipe(Identifier id, boolean unlocked)
      Mappings:
      Namespace Name Mixin selector
      named recipe Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;recipe(Lnet/minecraft/util/Identifier;Z)Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;
      intermediary method_35315 Lnet/minecraft/class_4553$class_4557;method_35315(Lnet/minecraft/class_2960;Z)Lnet/minecraft/class_4553$class_4557;
      official a Ldp$d;a(Lakq;Z)Ldp$d;
    • gameMode

      public PlayerPredicate.Builder gameMode(class_9789 class_9789)
      Mappings:
      Namespace Name Mixin selector
      named gameMode Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;gameMode(Lnet/minecraft/class_9789;)Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;
      intermediary method_35312 Lnet/minecraft/class_4553$class_4557;method_35312(Lnet/minecraft/class_9789;)Lnet/minecraft/class_4553$class_4557;
      official a Ldp$d;a(Lce;)Ldp$d;
    • lookingAt

      public PlayerPredicate.Builder lookingAt(EntityPredicate.Builder lookingAt)
      Mappings:
      Namespace Name Mixin selector
      named lookingAt Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;lookingAt(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;
      intermediary method_37251 Lnet/minecraft/class_4553$class_4557;method_37251(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_4553$class_4557;
      official a Ldp$d;a(Lbv$a;)Ldp$d;
    • advancement

      public PlayerPredicate.Builder advancement(Identifier id, boolean done)
      Mappings:
      Namespace Name Mixin selector
      named advancement Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;advancement(Lnet/minecraft/util/Identifier;Z)Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;
      intermediary method_35316 Lnet/minecraft/class_4553$class_4557;method_35316(Lnet/minecraft/class_2960;Z)Lnet/minecraft/class_4553$class_4557;
      official b Ldp$d;b(Lakq;Z)Ldp$d;
    • advancement

      public PlayerPredicate.Builder advancement(Identifier id, Map<String,Boolean> criteria)
      Mappings:
      Namespace Name Mixin selector
      named advancement Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;advancement(Lnet/minecraft/util/Identifier;Ljava/util/Map;)Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;
      intermediary method_35314 Lnet/minecraft/class_4553$class_4557;method_35314(Lnet/minecraft/class_2960;Ljava/util/Map;)Lnet/minecraft/class_4553$class_4557;
      official a Ldp$d;a(Lakq;Ljava/util/Map;)Ldp$d;
    • build

      public PlayerPredicate build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/predicate/entity/PlayerPredicate$Builder;build()Lnet/minecraft/predicate/entity/PlayerPredicate;
      intermediary method_22507 Lnet/minecraft/class_4553$class_4557;method_22507()Lnet/minecraft/class_4553;
      official b Ldp$d;b()Ldp;