Record Class RuinedPortalPiece.Properties

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.structure.structures.RuinedPortalPiece.Properties
Enclosing class:
RuinedPortalPiece

public static record RuinedPortalPiece.Properties(boolean cold, float mossiness, boolean airPocket, boolean overgrown, boolean vines, boolean replaceWithBlackstone) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the airPocket record component.
    static final com.mojang.serialization.Codec<RuinedPortalPiece.Properties>
     
    private final boolean
    The field for the cold record component.
    private final float
    The field for the mossiness record component.
    private final boolean
    The field for the overgrown record component.
    private final boolean
    The field for the replaceWithBlackstone record component.
    private final boolean
    The field for the vines record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Properties(boolean cold, float mossiness, boolean airPocket, boolean overgrown, boolean vines, boolean replaceWithBlackstone)
    Creates an instance of a Properties record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the airPocket record component.
    boolean
    Returns the value of the cold record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the mossiness record component.
    boolean
    Returns the value of the overgrown record component.
    boolean
    Returns the value of the replaceWithBlackstone record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the vines record component.

    Methods inherited from class Object

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

    • cold

      private final boolean cold
      The field for the cold record component.
    • mossiness

      private final float mossiness
      The field for the mossiness record component.
    • airPocket

      private final boolean airPocket
      The field for the airPocket record component.
    • overgrown

      private final boolean overgrown
      The field for the overgrown record component.
    • vines

      private final boolean vines
      The field for the vines record component.
    • replaceWithBlackstone

      private final boolean replaceWithBlackstone
      The field for the replaceWithBlackstone record component.
    • CODEC

      public static final com.mojang.serialization.Codec<RuinedPortalPiece.Properties> CODEC
  • Constructor Details

    • Properties

      public Properties(boolean cold, float mossiness, boolean airPocket, boolean overgrown, boolean vines, boolean replaceWithBlackstone)
      Creates an instance of a Properties record class.
      Parameters:
      cold - the value for the cold record component
      mossiness - the value for the mossiness record component
      airPocket - the value for the airPocket record component
      overgrown - the value for the overgrown record component
      vines - the value for the vines record component
      replaceWithBlackstone - the value for the replaceWithBlackstone 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. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      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.
    • cold

      public boolean cold()
      Returns the value of the cold record component.
      Returns:
      the value of the cold record component
    • mossiness

      public float mossiness()
      Returns the value of the mossiness record component.
      Returns:
      the value of the mossiness record component
    • airPocket

      public boolean airPocket()
      Returns the value of the airPocket record component.
      Returns:
      the value of the airPocket record component
    • overgrown

      public boolean overgrown()
      Returns the value of the overgrown record component.
      Returns:
      the value of the overgrown record component
    • vines

      public boolean vines()
      Returns the value of the vines record component.
      Returns:
      the value of the vines record component
    • replaceWithBlackstone

      public boolean replaceWithBlackstone()
      Returns the value of the replaceWithBlackstone record component.
      Returns:
      the value of the replaceWithBlackstone record component