Package net.minecraft.world.dimension
Record Class DimensionType.MonsterSettings
java.lang.Object
java.lang.Record
net.minecraft.world.dimension.DimensionType.MonsterSettings
- Record Components:
piglinSafe-hasRaids-monsterSpawnLightTest-monsterSpawnBlockLightLimit-
- Enclosing class:
DimensionType
public static record DimensionType.MonsterSettings(boolean piglinSafe, boolean hasRaids, IntProvider monsterSpawnLightTest, int monsterSpawnBlockLightLimit)
extends Record
- Mappings:
Namespace Name official dmq$aintermediary net/minecraft/class_2874$class_7512named net/minecraft/world/dimension/DimensionType$MonsterSettingsofficial bintermediary comp_848named piglinSafeofficial cintermediary comp_849named hasRaidsofficial dintermediary comp_850named monsterSpawnLightTestofficial eintermediary comp_851named monsterSpawnBlockLightLimit
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<DimensionType.MonsterSettings>private final booleanThe field for thehasRaidsrecord component.private final intThe field for themonsterSpawnBlockLightLimitrecord component.private final IntProviderThe field for themonsterSpawnLightTestrecord component.private final booleanThe field for thepiglinSaferecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMonsterSettings(boolean bool, boolean bool2, IntProvider intProvider, int int2) -
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.booleanhasRaids()Returns the value of thehasRaidsrecord component.intReturns the value of themonsterSpawnBlockLightLimitrecord component.Returns the value of themonsterSpawnLightTestrecord component.booleanReturns the value of thepiglinSaferecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
piglinSafe
private final boolean piglinSafeThe field for thepiglinSaferecord component. -
hasRaids
private final boolean hasRaidsThe field for thehasRaidsrecord component. -
monsterSpawnLightTest
The field for themonsterSpawnLightTestrecord component. -
monsterSpawnBlockLightLimit
private final int monsterSpawnBlockLightLimitThe field for themonsterSpawnBlockLightLimitrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLdmq$a;a:Lcom/mojang/serialization/MapCodec;intermediary field_39414Lnet/minecraft/class_2874$class_7512;field_39414:Lcom/mojang/serialization/MapCodec;named CODECLnet/minecraft/world/dimension/DimensionType$MonsterSettings;CODEC:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
MonsterSettings
-
-
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 '=='. -
piglinSafe
public boolean piglinSafe()Returns the value of thepiglinSaferecord component.- Returns:
- the value of the
piglinSaferecord component
-
hasRaids
public boolean hasRaids()Returns the value of thehasRaidsrecord component.- Returns:
- the value of the
hasRaidsrecord component
-
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
-