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
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theairPocketrecord component.static final com.mojang.serialization.Codec<RuinedPortalPiece.Properties> private final booleanThe field for thecoldrecord component.private final floatThe field for themossinessrecord component.private final booleanThe field for theovergrownrecord component.private final booleanThe field for thereplaceWithBlackstonerecord component.private final booleanThe field for thevinesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionProperties(boolean cold, float mossiness, boolean airPocket, boolean overgrown, boolean vines, boolean replaceWithBlackstone) Creates an instance of aPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theairPocketrecord component.booleancold()Returns the value of thecoldrecord 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.booleanReturns the value of thereplaceWithBlackstonerecord component.final StringtoString()Returns a string representation of this record class.booleanvines()Returns the value of thevinesrecord component.
-
Field Details
-
cold
private final boolean coldThe field for thecoldrecord component. -
mossiness
private final float mossinessThe field for themossinessrecord component. -
airPocket
private final boolean airPocketThe field for theairPocketrecord component. -
overgrown
private final boolean overgrownThe field for theovergrownrecord component. -
vines
private final boolean vinesThe field for thevinesrecord component. -
replaceWithBlackstone
private final boolean replaceWithBlackstoneThe field for thereplaceWithBlackstonerecord component. -
CODEC
-
-
Constructor Details
-
Properties
public Properties(boolean cold, float mossiness, boolean airPocket, boolean overgrown, boolean vines, boolean replaceWithBlackstone) Creates an instance of aPropertiesrecord class.- Parameters:
cold- the value for thecoldrecord componentmossiness- the value for themossinessrecord componentairPocket- the value for theairPocketrecord componentovergrown- the value for theovergrownrecord componentvines- the value for thevinesrecord componentreplaceWithBlackstone- the value for thereplaceWithBlackstonerecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
cold
public boolean cold()Returns the value of thecoldrecord component.- Returns:
- the value of the
coldrecord component
-
mossiness
public float mossiness()Returns the value of themossinessrecord component.- Returns:
- the value of the
mossinessrecord component
-
airPocket
public boolean airPocket()Returns the value of theairPocketrecord component.- Returns:
- the value of the
airPocketrecord 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
-
replaceWithBlackstone
public boolean replaceWithBlackstone()Returns the value of thereplaceWithBlackstonerecord component.- Returns:
- the value of the
replaceWithBlackstonerecord component
-