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 due$aintermediary net/minecraft/class_5183$class_7155named net/minecraft/world/gen/structure/RuinedPortalStructure$Setupofficial bintermediary comp_576named placementofficial cintermediary comp_577named airPocketProbabilityofficial dintermediary comp_578named mossinessofficial eintermediary comp_579named overgrownofficial fintermediary comp_580named vinesofficial gintermediary comp_581named canBeColdofficial hintermediary comp_582named replaceWithBlackstoneofficial iintermediary comp_583named weight
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theairPocketProbabilityrecord component.private final booleanThe field for thecanBeColdrecord component.static final com.mojang.serialization.Codec<RuinedPortalStructure.Setup>private final floatThe field for themossinessrecord component.private final booleanThe field for theovergrownrecord component.private final RuinedPortalStructurePiece.VerticalPlacementThe field for theplacementrecord component.private final booleanThe field for thereplaceWithBlackstonerecord component.private final booleanThe field for thevinesrecord component.private final floatThe field for theweightrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSetup(RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, float float2, float float3, boolean bool, boolean bool2, boolean bool3, boolean bool4, float float4) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theairPocketProbabilityrecord component.booleanReturns the value of thecanBeColdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of themossinessrecord component.booleanReturns the value of theovergrownrecord component.Returns the value of theplacementrecord component.booleanReturns the value of thereplaceWithBlackstonerecord component.final StringtoString()Returns a string representation of this record class.booleanvines()Returns the value of thevinesrecord component.floatweight()Returns the value of theweightrecord component.
-
Field Details
-
placement
The field for theplacementrecord component. -
airPocketProbability
private final float airPocketProbabilityThe field for theairPocketProbabilityrecord component. -
mossiness
private final float mossinessThe field for themossinessrecord component. -
overgrown
private final boolean overgrownThe field for theovergrownrecord component. -
vines
private final boolean vinesThe field for thevinesrecord component. -
canBeCold
private final boolean canBeColdThe field for thecanBeColdrecord component. -
replaceWithBlackstone
private final boolean replaceWithBlackstoneThe field for thereplaceWithBlackstonerecord component. -
weight
private final float weightThe field for theweightrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLdue$a;a:Lcom/mojang/serialization/Codec;intermediary field_37814Lnet/minecraft/class_5183$class_7155;field_37814:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/structure/RuinedPortalStructure$Setup;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Setup
public Setup(RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, float float2, float float3, boolean bool, boolean bool2, boolean bool3, boolean bool4, float float4)
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
placement
Returns the value of theplacementrecord component.- Returns:
- the value of the
placementrecord component
-
airPocketProbability
public float airPocketProbability()Returns the value of theairPocketProbabilityrecord component.- Returns:
- the value of the
airPocketProbabilityrecord component
-
mossiness
public float mossiness()Returns the value of themossinessrecord component.- Returns:
- the value of the
mossinessrecord component
-
overgrown
public boolean overgrown()Returns the value of theovergrownrecord component.- Returns:
- the value of the
overgrownrecord component
-
vines
public boolean vines()Returns the value of thevinesrecord component.- Returns:
- the value of the
vinesrecord component
-
canBeCold
public boolean canBeCold()Returns the value of thecanBeColdrecord component.- Returns:
- the value of the
canBeColdrecord component
-
replaceWithBlackstone
public boolean replaceWithBlackstone()Returns the value of thereplaceWithBlackstonerecord component.- Returns:
- the value of the
replaceWithBlackstonerecord component
-
weight
public float weight()Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-