Package net.minecraft.predicate.entity
Record Class LightningBoltPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.LightningBoltPredicate
- Record Components:
- blocksSetOnFire-
- entityStruck-
- All Implemented Interfaces:
- EntitySubPredicate
public record LightningBoltPredicate(NumberRange.IntRange blocksSetOnFire, Optional<EntityPredicate> entityStruck)
extends Record
implements EntitySubPredicate
- Mappings:
- Namespace - Name - named - net/minecraft/predicate/entity/LightningBoltPredicate- intermediary - net/minecraft/class_6404- official - dg- named - blocksSetOnFire- intermediary - comp_1792- official - c- named - entityStruck- intermediary - comp_1793- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final NumberRange.IntRangeThe field for theblocksSetOnFirerecord component.static final com.mojang.serialization.MapCodec<LightningBoltPredicate> private final Optional<EntityPredicate> The field for theentityStruckrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionLightningBoltPredicate(NumberRange.IntRange blocksSetOnFire, Optional<EntityPredicate> optional) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theblocksSetOnFirerecord component.Returns the value of theentityStruckrecord component.final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<LightningBoltPredicate> getCodec()final inthashCode()Returns a hash code value for this object.static LightningBoltPredicateof(NumberRange.IntRange blocksSetOnFire) booleantest(Entity entity, ServerWorld world, @Nullable Vec3d pos) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
blocksSetOnFireThe field for theblocksSetOnFirerecord component.
- 
entityStruckThe field for theentityStruckrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/predicate/entity/LightningBoltPredicate;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_45759- Lnet/minecraft/class_6404;field_45759:Lcom/mojang/serialization/MapCodec;- official - b- Ldg;b:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
LightningBoltPredicatepublic LightningBoltPredicate(NumberRange.IntRange blocksSetOnFire, Optional<EntityPredicate> optional) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/predicate/entity/LightningBoltPredicate;<init>(Lnet/minecraft/predicate/NumberRange$IntRange;Ljava/util/Optional;)V- intermediary - <init>- Lnet/minecraft/class_6404;<init>(Lnet/minecraft/class_2096$class_2100;Ljava/util/Optional;)V- official - <init>- Ldg;<init>(Ldk$d;Ljava/util/Optional;)V
 
 
- 
- 
Method Details- 
of- Mappings:
- Namespace - Name - Mixin selector - named - of- Lnet/minecraft/predicate/entity/LightningBoltPredicate;of(Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/predicate/entity/LightningBoltPredicate;- intermediary - method_37237- Lnet/minecraft/class_6404;method_37237(Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_6404;- official - a- Ldg;a(Ldk$d;)Ldg;
 
- 
getCodec- Specified by:
- getCodecin interface- EntitySubPredicate
- Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/predicate/entity/EntitySubPredicate;getCodec()Lcom/mojang/serialization/MapCodec;- intermediary - method_58152- Lnet/minecraft/class_7376;method_58152()Lcom/mojang/serialization/MapCodec;- official - a- Lby;a()Lcom/mojang/serialization/MapCodec;
 
- 
test- Specified by:
- testin interface- EntitySubPredicate
- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/entity/EntitySubPredicate;test(Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Z- intermediary - method_22497- Lnet/minecraft/class_7376;method_22497(Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Z- official - a- Lby;a(Lbum;Lard;Lfbb;)Z
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
blocksSetOnFireReturns the value of theblocksSetOnFirerecord component.- Returns:
- the value of the blocksSetOnFirerecord component
 
- 
entityStruckReturns the value of theentityStruckrecord component.- Returns:
- the value of the entityStruckrecord component
 
 
-