Package net.minecraft.block.spawner
Record Class MobSpawnerEntry.CustomSpawnRules
java.lang.Object
java.lang.Record
net.minecraft.block.spawner.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 named net/minecraft/block/spawner/MobSpawnerEntry$CustomSpawnRulesintermediary net/minecraft/class_1952$class_6542official ddo$anamed blockLightLimitintermediary comp_66official bnamed skyLightLimitintermediary comp_67official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theblockLightLimitrecord component.static final com.mojang.serialization.Codec<MobSpawnerEntry.CustomSpawnRules> The field for theskyLightLimitrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockLightLimitrecord component.booleancanSpawn(BlockPos pos, ServerWorld world) createLightLimitCodec(String name) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theskyLightLimitrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockLightLimit
The field for theblockLightLimitrecord component. -
skyLightLimit
The field for theskyLightLimitrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/block/spawner/MobSpawnerEntry$CustomSpawnRules;DEFAULT:Lnet/minecraft/util/dynamic/Range;intermediary field_34463Lnet/minecraft/class_1952$class_6542;field_34463:Lnet/minecraft/class_6497;official dLddo$a;d:Layg;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/spawner/MobSpawnerEntry$CustomSpawnRules;CODEC:Lcom/mojang/serialization/Codec;intermediary field_34462Lnet/minecraft/class_1952$class_6542;field_34462:Lcom/mojang/serialization/Codec;official aLddo$a;a: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 named validateLnet/minecraft/block/spawner/MobSpawnerEntry$CustomSpawnRules;validate(Lnet/minecraft/util/dynamic/Range;)Lcom/mojang/serialization/DataResult;intermediary method_38099Lnet/minecraft/class_1952$class_6542;method_38099(Lnet/minecraft/class_6497;)Lcom/mojang/serialization/DataResult;official aLddo$a;a(Layg;)Lcom/mojang/serialization/DataResult;
-
createLightLimitCodec
- Mappings:
Namespace Name Mixin selector named createLightLimitCodecLnet/minecraft/block/spawner/MobSpawnerEntry$CustomSpawnRules;createLightLimitCodec(Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;intermediary method_51719Lnet/minecraft/class_1952$class_6542;method_51719(Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;official aLddo$a;a(Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
-
canSpawn
- Mappings:
Namespace Name Mixin selector named canSpawnLnet/minecraft/block/spawner/MobSpawnerEntry$CustomSpawnRules;canSpawn(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Zintermediary method_56563Lnet/minecraft/class_1952$class_6542;method_56563(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Zofficial aLddo$a;a(Ljd;Laqu;)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). -
blockLightLimit
Returns the value of theblockLightLimitrecord component.- Returns:
- the value of the
blockLightLimitrecord component
-
skyLightLimit
Returns the value of theskyLightLimitrecord component.- Returns:
- the value of the
skyLightLimitrecord component
-