Class DamageSourcePredicate.Builder

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

public static class DamageSourcePredicate.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/predicate/entity/DamageSourcePredicate$Builder
intermediary net/minecraft/class_2022$class_2023
official bj$a
  • Field Details

    • tagPredicates

      private final ImmutableList.Builder<TagPredicate<DamageType>> tagPredicates
      Mappings:
      Namespace Name Mixin selector
      named tagPredicates Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;tagPredicates:Lcom/google/common/collect/ImmutableList$Builder;
      intermediary field_42273 Lnet/minecraft/class_2022$class_2023;field_42273:Lcom/google/common/collect/ImmutableList$Builder;
      official a Lbj$a;a:Lcom/google/common/collect/ImmutableList$Builder;
    • directEntity

      private Optional<EntityPredicate> directEntity
      Mappings:
      Namespace Name Mixin selector
      named directEntity Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;directEntity:Ljava/util/Optional;
      intermediary field_9544 Lnet/minecraft/class_2022$class_2023;field_9544:Ljava/util/Optional;
      official b Lbj$a;b:Ljava/util/Optional;
    • sourceEntity

      private Optional<EntityPredicate> sourceEntity
      Mappings:
      Namespace Name Mixin selector
      named sourceEntity Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;sourceEntity:Ljava/util/Optional;
      intermediary field_9545 Lnet/minecraft/class_2022$class_2023;field_9545:Ljava/util/Optional;
      official c Lbj$a;c:Ljava/util/Optional;
    • isDirect

      private Optional<Boolean> isDirect
      Mappings:
      Namespace Name Mixin selector
      named isDirect Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;isDirect:Ljava/util/Optional;
      intermediary field_51883 Lnet/minecraft/class_2022$class_2023;field_51883:Ljava/util/Optional;
      official d Lbj$a;d:Ljava/util/Optional;
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • create

      public static DamageSourcePredicate.Builder create()
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;create()Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;
      intermediary method_8855 Lnet/minecraft/class_2022$class_2023;method_8855()Lnet/minecraft/class_2022$class_2023;
      official a Lbj$a;a()Lbj$a;
    • tag

      Mappings:
      Namespace Name Mixin selector
      named tag Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;tag(Lnet/minecraft/predicate/TagPredicate;)Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;
      intermediary method_48785 Lnet/minecraft/class_2022$class_2023;method_48785(Lnet/minecraft/class_8129;)Lnet/minecraft/class_2022$class_2023;
      official a Lbj$a;a(Lea;)Lbj$a;
    • directEntity

      Mappings:
      Namespace Name Mixin selector
      named directEntity Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;directEntity(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;
      intermediary method_8854 Lnet/minecraft/class_2022$class_2023;method_8854(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_2022$class_2023;
      official a Lbj$a;a(Lbu$a;)Lbj$a;
    • sourceEntity

      Mappings:
      Namespace Name Mixin selector
      named sourceEntity Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;sourceEntity(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;
      intermediary method_35131 Lnet/minecraft/class_2022$class_2023;method_35131(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_2022$class_2023;
      official b Lbj$a;b(Lbu$a;)Lbj$a;
    • isDirect

      public DamageSourcePredicate.Builder isDirect(boolean direct)
      Mappings:
      Namespace Name Mixin selector
      named isDirect Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;isDirect(Z)Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;
      intermediary method_60488 Lnet/minecraft/class_2022$class_2023;method_60488(Z)Lnet/minecraft/class_2022$class_2023;
      official a Lbj$a;a(Z)Lbj$a;
    • build

      public DamageSourcePredicate build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;build()Lnet/minecraft/predicate/entity/DamageSourcePredicate;
      intermediary method_8851 Lnet/minecraft/class_2022$class_2023;method_8851()Lnet/minecraft/class_2022;
      official b Lbj$a;b()Lbj;