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 named net/minecraft/world/gen/structure/RuinedPortalStructure$Setup
intermediary net/minecraft/class_5183$class_7155
official emb$a
named placement
intermediary comp_576
official b
named airPocketProbability
intermediary comp_577
official c
named mossiness
intermediary comp_578
official d
named overgrown
intermediary comp_579
official e
named vines
intermediary comp_580
official f
named canBeCold
intermediary comp_581
official g
named replaceWithBlackstone
intermediary comp_582
official h
named weight
intermediary comp_583
official i
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
The field for theairPocketProbability
record component.private final boolean
The field for thecanBeCold
record component.static final com.mojang.serialization.Codec
<RuinedPortalStructure.Setup> private final float
The field for themossiness
record component.private final boolean
The field for theovergrown
record component.private final RuinedPortalStructurePiece.VerticalPlacement
The field for theplacement
record component.private final boolean
The field for thereplaceWithBlackstone
record component.private final boolean
The field for thevines
record component.private final float
The field for theweight
record component. -
Constructor Summary
ConstructorDescriptionSetup
(RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, float float2, float float3, boolean bool, boolean bool2, boolean bool3, boolean bool4, float float4) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the value of theairPocketProbability
record component.boolean
Returns the value of thecanBeCold
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float
Returns the value of themossiness
record component.boolean
Returns the value of theovergrown
record component.Returns the value of theplacement
record component.boolean
Returns the value of thereplaceWithBlackstone
record component.final String
toString()
Returns a string representation of this record class.boolean
vines()
Returns the value of thevines
record component.float
weight()
Returns the value of theweight
record component.
-
Field Details
-
placement
The field for theplacement
record component. -
airPocketProbability
private final float airPocketProbabilityThe field for theairPocketProbability
record component. -
mossiness
private final float mossinessThe field for themossiness
record component. -
overgrown
private final boolean overgrownThe field for theovergrown
record component. -
vines
private final boolean vinesThe field for thevines
record component. -
canBeCold
private final boolean canBeColdThe field for thecanBeCold
record component. -
replaceWithBlackstone
private final boolean replaceWithBlackstoneThe field for thereplaceWithBlackstone
record component. -
weight
private final float weightThe field for theweight
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/gen/structure/RuinedPortalStructure$Setup;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_37814
Lnet/minecraft/class_5183$class_7155;field_37814:Lcom/mojang/serialization/Codec;
official a
Lemb$a;a: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 theplacement
record component.- Returns:
- the value of the
placement
record component
-
airPocketProbability
public float airPocketProbability()Returns the value of theairPocketProbability
record component.- Returns:
- the value of the
airPocketProbability
record component
-
mossiness
public float mossiness()Returns the value of themossiness
record component.- Returns:
- the value of the
mossiness
record component
-
overgrown
public boolean overgrown()Returns the value of theovergrown
record component.- Returns:
- the value of the
overgrown
record component
-
vines
public boolean vines()Returns the value of thevines
record component.- Returns:
- the value of the
vines
record component
-
canBeCold
public boolean canBeCold()Returns the value of thecanBeCold
record component.- Returns:
- the value of the
canBeCold
record component
-
replaceWithBlackstone
public boolean replaceWithBlackstone()Returns the value of thereplaceWithBlackstone
record component.- Returns:
- the value of the
replaceWithBlackstone
record component
-
weight
public float weight()Returns the value of theweight
record component.- Returns:
- the value of the
weight
record component
-