Record Class RuinedPortalStructure.Setup

java.lang.Object
java.lang.Record
net.minecraft.world.gen.structure.RuinedPortalStructure.Setup
Record Components:
placement -
airPocketProbability -
mossiness -
overgrown -
vines -
canBeCold -
replaceWithBlackstone -
weight -
Enclosing class:
RuinedPortalStructure

public static record RuinedPortalStructure.Setup(RuinedPortalStructurePiece.VerticalPlacement placement, float airPocketProbability, float mossiness, boolean overgrown, boolean vines, boolean canBeCold, boolean replaceWithBlackstone, float weight) extends Record
Mappings:
Namespace Name
official dni$a
intermediary net/minecraft/class_5183$class_7155
named net/minecraft/world/gen/structure/RuinedPortalStructure$Setup
official b
intermediary comp_576
named placement
official c
intermediary comp_577
named airPocketProbability
official d
intermediary comp_578
named mossiness
official e
intermediary comp_579
named overgrown
official f
intermediary comp_580
named vines
official g
intermediary comp_581
named canBeCold
official h
intermediary comp_582
named replaceWithBlackstone
official i
intermediary comp_583
named weight
  • Field Details

    • 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.
    • field_37814

      public static final com.mojang.serialization.Codec<RuinedPortalStructure.Setup> field_37814
      Mappings:
      Namespace Name Mixin selector
      official a Ldni$a;a:Lcom/mojang/serialization/Codec;
      intermediary field_37814 Lnet/minecraft/class_5183$class_7155;field_37814:Lcom/mojang/serialization/Codec;
      named field_37814 Lnet/minecraft/world/gen/structure/RuinedPortalStructure$Setup;field_37814:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • 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.
    • 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