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 SummaryFieldsModifier 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 RuinedPortalPiece.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 SummaryConstructorsConstructorDescriptionSetup(RuinedPortalPiece.VerticalPlacement placement, float airPocketProbability, float mossiness, boolean overgrown, boolean vines, boolean canBeCold, boolean replaceWithBlackstone, float weight) Creates an instance of aSetuprecord class.
- 
Method SummaryModifier 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- 
placementThe field for theplacementrecord component.
- 
airPocketProbabilityprivate final float airPocketProbabilityThe field for theairPocketProbabilityrecord component.
- 
mossinessprivate final float mossinessThe field for themossinessrecord component.
- 
overgrownprivate final boolean overgrownThe field for theovergrownrecord component.
- 
vinesprivate final boolean vinesThe field for thevinesrecord component.
- 
canBeColdprivate final boolean canBeColdThe field for thecanBeColdrecord component.
- 
replaceWithBlackstoneprivate final boolean replaceWithBlackstoneThe field for thereplaceWithBlackstonerecord component.
- 
weightprivate final float weightThe field for theweightrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
Setuppublic Setup(RuinedPortalPiece.VerticalPlacement placement, float airPocketProbability, float mossiness, boolean overgrown, boolean vines, boolean canBeCold, boolean replaceWithBlackstone, float weight) Creates an instance of aSetuprecord class.- Parameters:
- placement- the value for the- placementrecord component
- airPocketProbability- the value for the- airPocketProbabilityrecord component
- mossiness- the value for the- mossinessrecord component
- overgrown- the value for the- overgrownrecord component
- vines- the value for the- vinesrecord component
- canBeCold- the value for the- canBeColdrecord component
- replaceWithBlackstone- the value for the- replaceWithBlackstonerecord component
- weight- the value for the- weightrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
placementReturns the value of theplacementrecord component.- Returns:
- the value of the placementrecord component
 
- 
airPocketProbabilitypublic float airPocketProbability()Returns the value of theairPocketProbabilityrecord component.- Returns:
- the value of the airPocketProbabilityrecord component
 
- 
mossinesspublic float mossiness()Returns the value of themossinessrecord component.- Returns:
- the value of the mossinessrecord component
 
- 
overgrownpublic boolean overgrown()Returns the value of theovergrownrecord component.- Returns:
- the value of the overgrownrecord component
 
- 
vinespublic boolean vines()Returns the value of thevinesrecord component.- Returns:
- the value of the vinesrecord component
 
- 
canBeColdpublic boolean canBeCold()Returns the value of thecanBeColdrecord component.- Returns:
- the value of the canBeColdrecord component
 
- 
replaceWithBlackstonepublic boolean replaceWithBlackstone()Returns the value of thereplaceWithBlackstonerecord component.- Returns:
- the value of the replaceWithBlackstonerecord component
 
- 
weightpublic float weight()Returns the value of theweightrecord component.- Returns:
- the value of the weightrecord component
 
 
-