Package net.minecraft.predicate
Record Class LightPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.LightPredicate
- Record Components:
range-
- Mappings:
Namespace Name official ceintermediary net/minecraft/class_4552named net/minecraft/predicate/LightPredicateofficial bintermediary comp_1791named range
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LightPredicate>private final NumberRange.IntRangeThe field for therangerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aLightPredicaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.(package private) static Optional<LightPredicate>method_53171(NumberRange.IntRange intRange) range()Returns the value of therangerecord component.booleantest(ServerWorld world, BlockPos pos) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
range
The field for therangerecord component. -
field_45757
- Mappings:
Namespace Name Mixin selector official aLce;a:Lcom/mojang/serialization/Codec;intermediary field_45757Lnet/minecraft/class_4552;field_45757:Lcom/mojang/serialization/Codec;named field_45757Lnet/minecraft/predicate/LightPredicate;field_45757:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
LightPredicate
Creates an instance of aLightPredicaterecord class.- Parameters:
range- the value for therangerecord component
-
-
Method Details
-
method_53171
- Mappings:
Namespace Name Mixin selector official aLce;a(Lcj$d;)Ljava/util/Optional;intermediary method_53171Lnet/minecraft/class_4552;method_53171(Lnet/minecraft/class_2096$class_2100;)Ljava/util/Optional;named method_53171Lnet/minecraft/predicate/LightPredicate;method_53171(Lnet/minecraft/predicate/NumberRange$IntRange;)Ljava/util/Optional;
-
test
- Mappings:
Namespace Name Mixin selector official aLce;a(Lakk;Lgu;)Zintermediary method_22483Lnet/minecraft/class_4552;method_22483(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Znamed testLnet/minecraft/predicate/LightPredicate;test(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)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). -
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-