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 dcb$a
intermediary net/minecraft/class_2874$class_7512
named net/minecraft/world/dimension/DimensionType$MonsterSettings
official b
intermediary comp_848
named piglinSafe
official c
intermediary comp_849
named hasRaids
official d
intermediary comp_850
named monsterSpawnLightTest
official e
intermediary comp_851
named monsterSpawnBlockLightLimit
  • Field Details

    • piglinSafe

      private final boolean piglinSafe
      The field for the piglinSafe record component.
    • hasRaids

      private final boolean hasRaids
      The field for the hasRaids record component.
    • monsterSpawnLightTest

      private final IntProvider monsterSpawnLightTest
      The field for the monsterSpawnLightTest record component.
    • monsterSpawnBlockLightLimit

      private final int monsterSpawnBlockLightLimit
      The field for the monsterSpawnBlockLightLimit record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<DimensionType.MonsterSettings> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldcb$a;a:Lcom/mojang/serialization/MapCodec;
      intermediary field_39414 Lnet/minecraft/class_2874$class_7512;field_39414:Lcom/mojang/serialization/MapCodec;
      named CODEC Lnet/minecraft/world/dimension/DimensionType$MonsterSettings;CODEC:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • MonsterSettings

      public MonsterSettings(boolean bool, boolean bool2, IntProvider intProvider, int int2)
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • piglinSafe

      public boolean piglinSafe()
      Returns the value of the piglinSafe record component.
      Returns:
      the value of the piglinSafe record component
    • hasRaids

      public boolean hasRaids()
      Returns the value of the hasRaids record component.
      Returns:
      the value of the hasRaids record component
    • monsterSpawnLightTest

      public IntProvider monsterSpawnLightTest()
      Returns the value of the monsterSpawnLightTest record component.
      Returns:
      the value of the monsterSpawnLightTest record component
    • monsterSpawnBlockLightLimit

      public int monsterSpawnBlockLightLimit()
      Returns the value of the monsterSpawnBlockLightLimit record component.
      Returns:
      the value of the monsterSpawnBlockLightLimit record component