Package net.minecraft.predicate
Record Class LightPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.LightPredicate
- Record Components:
- range-
- Mappings:
- Namespace - Name - named - net/minecraft/predicate/LightPredicate- intermediary - net/minecraft/class_4552- official - df- named - range- intermediary - comp_1791- official - b
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LightPredicate> private final NumberRange.IntRangeThe field for therangerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aLightPredicaterecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.range()Returns the value of therangerecord component.booleantest(ServerWorld world, BlockPos pos) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
rangeThe field for therangerecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/predicate/LightPredicate;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45757- Lnet/minecraft/class_4552;field_45757:Lcom/mojang/serialization/Codec;- official - a- Ldf;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
LightPredicateCreates an instance of aLightPredicaterecord class.- Parameters:
- range- the value for the- rangerecord component
 
 
- 
- 
Method Details- 
test- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/LightPredicate;test(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_22483- Lnet/minecraft/class_4552;method_22483(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z- official - a- Ldf;a(Lard;Lji;)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).
- 
rangeReturns the value of therangerecord component.- Returns:
- the value of the rangerecord component
 
 
-