Package net.minecraft.world
Record Class MobSpawnerEntry.CustomSpawnRules
java.lang.Object
java.lang.Record
net.minecraft.world.MobSpawnerEntry.CustomSpawnRules
- Record Components:
blockLightLimit
-skyLightLimit
-
- Enclosing class:
- MobSpawnerEntry
public static record MobSpawnerEntry.CustomSpawnRules(Range<Integer> blockLightLimit, Range<Integer> skyLightLimit)
extends Record
- Mappings:
Namespace Name official cat$a
intermediary net/minecraft/class_1952$class_6542
named net/minecraft/world/MobSpawnerEntry$CustomSpawnRules
official b
intermediary comp_66
named blockLightLimit
official c
intermediary comp_67
named skyLightLimit
-
Field Summary
Modifier and TypeFieldDescriptionThe field for theblockLightLimit
record component.static final com.mojang.serialization.Codec<MobSpawnerEntry.CustomSpawnRules>
The field for theskyLightLimit
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockLightLimit
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.Returns the value of theskyLightLimit
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
blockLightLimit
The field for theblockLightLimit
record component. -
skyLightLimit
The field for theskyLightLimit
record component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector official d
Lcat$a;d:Lais;
intermediary field_34463
Lnet/minecraft/class_1952$class_6542;field_34463:Lnet/minecraft/class_6497;
named DEFAULT
Lnet/minecraft/world/MobSpawnerEntry$CustomSpawnRules;DEFAULT:Lnet/minecraft/util/dynamic/Range;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcat$a;a:Lcom/mojang/serialization/Codec;
intermediary field_34462
Lnet/minecraft/class_1952$class_6542;field_34462:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/MobSpawnerEntry$CustomSpawnRules;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
CustomSpawnRules
-
-
Method Details
-
validate
private static com.mojang.serialization.DataResult<Range<Integer>> validate(Range<Integer> provider) - Mappings:
Namespace Name Mixin selector official a
Lcat$a;a(Lais;)Lcom/mojang/serialization/DataResult;
intermediary method_38099
Lnet/minecraft/class_1952$class_6542;method_38099(Lnet/minecraft/class_6497;)Lcom/mojang/serialization/DataResult;
named validate
Lnet/minecraft/world/MobSpawnerEntry$CustomSpawnRules;validate(Lnet/minecraft/util/dynamic/Range;)Lcom/mojang/serialization/DataResult;
-
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)
. -
blockLightLimit
Returns the value of theblockLightLimit
record component.- Returns:
- the value of the
blockLightLimit
record component
-
skyLightLimit
Returns the value of theskyLightLimit
record component.- Returns:
- the value of the
skyLightLimit
record component
-