Record Class Registry.DimensionTypeEntry

java.lang.Object
java.lang.Record
net.minestom.server.registry.Registry.DimensionTypeEntry
All Implemented Interfaces:
Registry.Entry
Enclosing class:
Registry

public static record Registry.DimensionTypeEntry(NamespaceID namespace, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasSkylight, boolean hasCeiling, float ambientLight, Long fixedTime, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int minY, int height, String infiniburn, String effects, Registry.Properties custom) extends Record implements Registry.Entry
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DimensionTypeEntry(NamespaceID namespace, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasSkylight, boolean hasCeiling, float ambientLight, Long fixedTime, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int minY, int height, String infiniburn, String effects, Registry.Properties custom)
    Creates an instance of a DimensionTypeEntry record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the ambientLight record component.
    boolean
    Returns the value of the bedWorks record component.
    double
    Returns the value of the coordinateScale record component.
    Returns the value of the custom record component.
    Returns the value of the effects record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the fixedTime record component.
    boolean
    Returns the value of the hasCeiling record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the hasRaids record component.
    boolean
    Returns the value of the hasSkylight record component.
    int
    Returns the value of the height record component.
    Returns the value of the infiniburn record component.
    int
    Returns the value of the logicalHeight record component.
    int
    Returns the value of the minY record component.
    Returns the value of the namespace record component.
    boolean
    Returns the value of the natural record component.
    boolean
    Returns the value of the piglinSafe record component.
    boolean
    Returns the value of the respawnAnchorWorks record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the ultrawarm record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DimensionTypeEntry

      public DimensionTypeEntry(String namespace, Registry.Properties main, Registry.Properties custom)
    • DimensionTypeEntry

      public DimensionTypeEntry(NamespaceID namespace, boolean ultrawarm, boolean natural, double coordinateScale, boolean hasSkylight, boolean hasCeiling, float ambientLight, Long fixedTime, boolean piglinSafe, boolean bedWorks, boolean respawnAnchorWorks, boolean hasRaids, int logicalHeight, int minY, int height, String infiniburn, String effects, Registry.Properties custom)
      Creates an instance of a DimensionTypeEntry record class.
      Parameters:
      namespace - the value for the namespace record component
      ultrawarm - the value for the ultrawarm record component
      natural - the value for the natural record component
      coordinateScale - the value for the coordinateScale record component
      hasSkylight - the value for the hasSkylight record component
      hasCeiling - the value for the hasCeiling record component
      ambientLight - the value for the ambientLight record component
      fixedTime - the value for the fixedTime record component
      piglinSafe - the value for the piglinSafe record component
      bedWorks - the value for the bedWorks record component
      respawnAnchorWorks - the value for the respawnAnchorWorks record component
      hasRaids - the value for the hasRaids record component
      logicalHeight - the value for the logicalHeight record component
      minY - the value for the minY record component
      height - the value for the height record component
      infiniburn - the value for the infiniburn record component
      effects - the value for the effects record component
      custom - the value for the custom record component
  • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • namespace

      public NamespaceID namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • ultrawarm

      public boolean ultrawarm()
      Returns the value of the ultrawarm record component.
      Returns:
      the value of the ultrawarm record component
    • natural

      public boolean natural()
      Returns the value of the natural record component.
      Returns:
      the value of the natural record component
    • coordinateScale

      public double coordinateScale()
      Returns the value of the coordinateScale record component.
      Returns:
      the value of the coordinateScale record component
    • hasSkylight

      public boolean hasSkylight()
      Returns the value of the hasSkylight record component.
      Returns:
      the value of the hasSkylight record component
    • hasCeiling

      public boolean hasCeiling()
      Returns the value of the hasCeiling record component.
      Returns:
      the value of the hasCeiling record component
    • ambientLight

      public float ambientLight()
      Returns the value of the ambientLight record component.
      Returns:
      the value of the ambientLight record component
    • fixedTime

      public Long fixedTime()
      Returns the value of the fixedTime record component.
      Returns:
      the value of the fixedTime record component
    • piglinSafe

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

      public boolean bedWorks()
      Returns the value of the bedWorks record component.
      Returns:
      the value of the bedWorks record component
    • respawnAnchorWorks

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

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

      public int logicalHeight()
      Returns the value of the logicalHeight record component.
      Returns:
      the value of the logicalHeight record component
    • minY

      public int minY()
      Returns the value of the minY record component.
      Returns:
      the value of the minY record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • infiniburn

      public String infiniburn()
      Returns the value of the infiniburn record component.
      Returns:
      the value of the infiniburn record component
    • effects

      public String effects()
      Returns the value of the effects record component.
      Returns:
      the value of the effects record component
    • custom

      public Registry.Properties custom()
      Returns the value of the custom record component.
      Specified by:
      custom in interface Registry.Entry
      Returns:
      the value of the custom record component