Class LightningBoltPredicate

java.lang.Object
net.minecraft.predicate.entity.LightningBoltPredicate
All Implemented Interfaces:
TypeSpecificPredicate

public class LightningBoltPredicate extends Object implements TypeSpecificPredicate
Mappings:
Namespace Name
official cf
intermediary net/minecraft/class_6404
named net/minecraft/predicate/entity/LightningBoltPredicate
  • Field Details

    • BLOCKS_SET_ON_FIRE_KEY

      private static final String BLOCKS_SET_ON_FIRE_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcf;b:Ljava/lang/String;
      intermediary field_33921 Lnet/minecraft/class_6404;field_33921:Ljava/lang/String;
      named BLOCKS_SET_ON_FIRE_KEY Lnet/minecraft/predicate/entity/LightningBoltPredicate;BLOCKS_SET_ON_FIRE_KEY:Ljava/lang/String;
    • ENTITY_STRUCK_KEY

      private static final String ENTITY_STRUCK_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lcf;c:Ljava/lang/String;
      intermediary field_33922 Lnet/minecraft/class_6404;field_33922:Ljava/lang/String;
      named ENTITY_STRUCK_KEY Lnet/minecraft/predicate/entity/LightningBoltPredicate;ENTITY_STRUCK_KEY:Ljava/lang/String;
    • blocksSetOnFire

      private final NumberRange.IntRange blocksSetOnFire
      Mappings:
      Namespace Name Mixin selector
      official d Lcf;d:Lcj$d;
      intermediary field_33923 Lnet/minecraft/class_6404;field_33923:Lnet/minecraft/class_2096$class_2100;
      named blocksSetOnFire Lnet/minecraft/predicate/entity/LightningBoltPredicate;blocksSetOnFire:Lnet/minecraft/predicate/NumberRange$IntRange;
    • entityStruck

      private final EntityPredicate entityStruck
      Mappings:
      Namespace Name Mixin selector
      official e Lcf;e:Lbo;
      intermediary field_33924 Lnet/minecraft/class_6404;field_33924:Lnet/minecraft/class_2048;
      named entityStruck Lnet/minecraft/predicate/entity/LightningBoltPredicate;entityStruck:Lnet/minecraft/predicate/entity/EntityPredicate;
  • Constructor Details

    • LightningBoltPredicate

      private LightningBoltPredicate(NumberRange.IntRange blocksSetOnFire, EntityPredicate entityStruck)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcf;<init>(Lcj$d;Lbo;)V
      intermediary <init> Lnet/minecraft/class_6404;<init>(Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2048;)V
      named <init> Lnet/minecraft/predicate/entity/LightningBoltPredicate;<init>(Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/entity/EntityPredicate;)V
  • Method Details

    • of

      public static LightningBoltPredicate of(NumberRange.IntRange blocksSetOnFire)
      Mappings:
      Namespace Name Mixin selector
      official a Lcf;a(Lcj$d;)Lcf;
      intermediary method_37237 Lnet/minecraft/class_6404;method_37237(Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_6404;
      named of Lnet/minecraft/predicate/entity/LightningBoltPredicate;of(Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/predicate/entity/LightningBoltPredicate;
    • fromJson

      public static LightningBoltPredicate fromJson(JsonObject jsonObject)
      Mappings:
      Namespace Name Mixin selector
      official a Lcf;a(Lcom/google/gson/JsonObject;)Lcf;
      intermediary method_37238 Lnet/minecraft/class_6404;method_37238(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_6404;
      named fromJson Lnet/minecraft/predicate/entity/LightningBoltPredicate;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/predicate/entity/LightningBoltPredicate;
    • typeSpecificToJson

      public JsonObject typeSpecificToJson()
      Specified by:
      typeSpecificToJson in interface TypeSpecificPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a()Lcom/google/gson/JsonObject;
      intermediary method_22494 Lnet/minecraft/class_7376;method_22494()Lcom/google/gson/JsonObject;
      named typeSpecificToJson Lnet/minecraft/predicate/entity/TypeSpecificPredicate;typeSpecificToJson()Lcom/google/gson/JsonObject;
    • getDeserializer

      public TypeSpecificPredicate.Deserializer getDeserializer()
      Specified by:
      getDeserializer in interface TypeSpecificPredicate
      Mappings:
      Namespace Name Mixin selector
      official c Lbp;c()Lbp$a;
      intermediary method_43099 Lnet/minecraft/class_7376;method_43099()Lnet/minecraft/class_7376$class_7377;
      named getDeserializer Lnet/minecraft/predicate/entity/TypeSpecificPredicate;getDeserializer()Lnet/minecraft/predicate/entity/TypeSpecificPredicate$Deserializer;
    • test

      public boolean test(Entity entity, ServerWorld world, @Nullable @Nullable Vec3d pos)
      Specified by:
      test in interface TypeSpecificPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a(Lbaq;Lafo;Ldvt;)Z
      intermediary method_22497 Lnet/minecraft/class_7376;method_22497(Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Z
      named test Lnet/minecraft/predicate/entity/TypeSpecificPredicate;test(Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Z