Record Class RuinedPortalStructure.Setup

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.structure.structures.RuinedPortalStructure.Setup
Enclosing class:
RuinedPortalStructure

public static record RuinedPortalStructure.Setup(RuinedPortalPiece.VerticalPlacement placement, float airPocketProbability, float mossiness, boolean overgrown, boolean vines, boolean canBeCold, boolean replaceWithBlackstone, float weight) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the airPocketProbability record component.
    private final boolean
    The field for the canBeCold record component.
    static final com.mojang.serialization.Codec<RuinedPortalStructure.Setup>
     
    private final float
    The field for the mossiness record component.
    private final boolean
    The field for the overgrown record component.
    The field for the placement record component.
    private final boolean
    The field for the replaceWithBlackstone record component.
    private final boolean
    The field for the vines record component.
    private final float
    The field for the weight record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Setup(RuinedPortalPiece.VerticalPlacement placement, float airPocketProbability, float mossiness, boolean overgrown, boolean vines, boolean canBeCold, boolean replaceWithBlackstone, float weight)
    Creates an instance of a Setup record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the airPocketProbability record component.
    boolean
    Returns the value of the canBeCold 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.
    Returns the value of the placement 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.
    float
    Returns the value of the weight record component.

    Methods inherited from class java.lang.Object

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

    • placement

      private final RuinedPortalPiece.VerticalPlacement placement
      The field for the placement record component.
    • airPocketProbability

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

      private final float mossiness
      The field for the mossiness 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.
    • canBeCold

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

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

      private final float weight
      The field for the weight record component.
    • CODEC

      public static final com.mojang.serialization.Codec<RuinedPortalStructure.Setup> CODEC
  • Constructor Details

    • Setup

      public Setup(RuinedPortalPiece.VerticalPlacement placement, float airPocketProbability, float mossiness, boolean overgrown, boolean vines, boolean canBeCold, boolean replaceWithBlackstone, float weight)
      Creates an instance of a Setup record class.
      Parameters:
      placement - the value for the placement record component
      airPocketProbability - the value for the airPocketProbability record component
      mossiness - the value for the mossiness record component
      overgrown - the value for the overgrown record component
      vines - the value for the vines record component
      canBeCold - the value for the canBeCold record component
      replaceWithBlackstone - the value for the replaceWithBlackstone record component
      weight - the value for the weight 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.
    • placement

      Returns the value of the placement record component.
      Returns:
      the value of the placement record component
    • airPocketProbability

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

      public float mossiness()
      Returns the value of the mossiness record component.
      Returns:
      the value of the mossiness 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
    • canBeCold

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

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

      public float weight()
      Returns the value of the weight record component.
      Returns:
      the value of the weight record component