Package net.minecraft
Record Class class_9421.class_9422
java.lang.Object
java.lang.Record
net.minecraft.class_9421.class_9422
- Record Components:
player
-startPosition
-distance
-cause
-
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
class_9421
public static record class_9421.class_9422(Optional<LootContextPredicate> player, Optional<LocationPredicate> startPosition, Optional<DistancePredicate> distance, Optional<LootContextPredicate> cause)
extends Record
implements AbstractCriterion.Conditions
- Mappings:
Namespace Name official bv$a
intermediary net/minecraft/class_9421$class_9422
named net/minecraft/class_9421$class_9422
official b
intermediary comp_2029
named player
official c
intermediary comp_2488
named startPosition
official d
intermediary comp_2489
named distance
official e
intermediary comp_2490
named cause
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional
<LootContextPredicate> The field for thecause
record component.private final Optional
<DistancePredicate> The field for thedistance
record component.static final com.mojang.serialization.Codec
<class_9421.class_9422> private final Optional
<LootContextPredicate> The field for theplayer
record component.private final Optional
<LocationPredicate> The field for thestartPosition
record component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9422
(Optional<LootContextPredicate> optional, Optional<LocationPredicate> optional2, Optional<DistancePredicate> optional3, Optional<LootContextPredicate> optional4) -
Method Summary
Modifier and TypeMethodDescriptioncause()
Returns the value of thecause
record component.distance()
Returns the value of thedistance
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
method_58360
(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, @Nullable LootContext lootContext) method_58361
(DistancePredicate distancePredicate, EntityPredicate.Builder builder) player()
Returns the value of thestartPosition
record component.final String
toString()
Returns a string representation of this record class.void
validate
(LootContextPredicateValidator validator)
-
Field Details
-
player
The field for theplayer
record component. -
startPosition
The field for thestartPosition
record component. -
distance
The field for thedistance
record component. -
cause
The field for thecause
record component. -
field_49978
- Mappings:
Namespace Name Mixin selector official a
Lbv$a;a:Lcom/mojang/serialization/Codec;
intermediary field_49978
Lnet/minecraft/class_9421$class_9422;field_49978:Lcom/mojang/serialization/Codec;
named field_49978
Lnet/minecraft/class_9421$class_9422;field_49978:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_9422
public class_9422(Optional<LootContextPredicate> optional, Optional<LocationPredicate> optional2, Optional<DistancePredicate> optional3, Optional<LootContextPredicate> optional4)
-
-
Method Details
-
method_58361
public static AdvancementCriterion<class_9421.class_9422> method_58361(DistancePredicate distancePredicate, EntityPredicate.Builder builder) - Mappings:
Namespace Name Mixin selector official a
Lbv$a;a(Lbi;Lbr$a;)Lan;
intermediary method_58361
Lnet/minecraft/class_9421$class_9422;method_58361(Lnet/minecraft/class_2025;Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;
named method_58361
Lnet/minecraft/class_9421$class_9422;method_58361(Lnet/minecraft/predicate/entity/DistancePredicate;Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
-
validate
- Specified by:
validate
in interfaceAbstractCriterion.Conditions
- Specified by:
validate
in interfaceCriterionConditions
- Mappings:
Namespace Name Mixin selector official a
Laq;a(Lbd;)V
intermediary method_54938
Lnet/minecraft/class_184;method_54938(Lnet/minecraft/class_8944;)V
named validate
Lnet/minecraft/advancement/criterion/CriterionConditions;validate(Lnet/minecraft/predicate/entity/LootContextPredicateValidator;)V
-
method_58360
public boolean method_58360(ServerWorld serverWorld, Vec3d vec3d, Vec3d vec3d2, @Nullable @Nullable LootContext lootContext) - Mappings:
Namespace Name Mixin selector official a
Lbv$a;a(Laqh;Letp;Letp;Leol;)Z
intermediary method_58360
Lnet/minecraft/class_9421$class_9422;method_58360(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_47;)Z
named method_58360
Lnet/minecraft/class_9421$class_9422;method_58360(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/loot/context/LootContext;)Z
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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)
. -
player
- Specified by:
player
in interfaceAbstractCriterion.Conditions
- Mappings:
Namespace Name Mixin selector official a
Lde$a;a()Ljava/util/Optional;
intermediary comp_2029
Lnet/minecraft/class_4558$class_8788;comp_2029()Ljava/util/Optional;
named player
Lnet/minecraft/advancement/criterion/AbstractCriterion$Conditions;player()Ljava/util/Optional;
-
startPosition
Returns the value of thestartPosition
record component.- Returns:
- the value of the
startPosition
record component
-
distance
Returns the value of thedistance
record component.- Returns:
- the value of the
distance
record component
-
cause
Returns the value of thecause
record component.- Returns:
- the value of the
cause
record component
-