Package net.minecraft.world.dimension
Record Class DimensionType.MonsterSettings
java.lang.Object
java.lang.Record
net.minecraft.world.dimension.DimensionType.MonsterSettings
- Record Components:
monsterSpawnLightTest-monsterSpawnBlockLightLimit-
- Enclosing class:
DimensionType
public static record DimensionType.MonsterSettings(IntProvider monsterSpawnLightTest, int monsterSpawnBlockLightLimit)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/dimension/DimensionType$MonsterSettingsintermediary net/minecraft/class_2874$class_7512official eqi$anamed monsterSpawnLightTestintermediary comp_850official bnamed monsterSpawnBlockLightLimitintermediary comp_851official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<DimensionType.MonsterSettings> private final intThe field for themonsterSpawnBlockLightLimitrecord component.private final IntProviderThe field for themonsterSpawnLightTestrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMonsterSettings(IntProvider monsterSpawnLightTest, int monsterSpawnBlockLightLimit) Creates an instance of aMonsterSettingsrecord 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.intReturns the value of themonsterSpawnBlockLightLimitrecord component.Returns the value of themonsterSpawnLightTestrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
monsterSpawnLightTest
The field for themonsterSpawnLightTestrecord component. -
monsterSpawnBlockLightLimit
private final int monsterSpawnBlockLightLimitThe field for themonsterSpawnBlockLightLimitrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/dimension/DimensionType$MonsterSettings;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_39414Lnet/minecraft/class_2874$class_7512;field_39414:Lcom/mojang/serialization/MapCodec;official aLeqi$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
MonsterSettings
Creates an instance of aMonsterSettingsrecord class.- Parameters:
monsterSpawnLightTest- the value for themonsterSpawnLightTestrecord componentmonsterSpawnBlockLightLimit- the value for themonsterSpawnBlockLightLimitrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
monsterSpawnLightTest
Returns the value of themonsterSpawnLightTestrecord component.- Returns:
- the value of the
monsterSpawnLightTestrecord component
-
monsterSpawnBlockLightLimit
public int monsterSpawnBlockLightLimit()Returns the value of themonsterSpawnBlockLightLimitrecord component.- Returns:
- the value of the
monsterSpawnBlockLightLimitrecord component
-