Record Class LevelStem
java.lang.Object
java.lang.Record
net.minecraft.world.level.dimension.LevelStem
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LevelStem>static final ResourceKey<LevelStem>private final ChunkGeneratorThe field for thegeneratorrecord component.static final ResourceKey<LevelStem>static final ResourceKey<LevelStem>private final Holder<DimensionType>The field for thetyperecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionLevelStem(Holder<DimensionType> type, ChunkGenerator generator) Creates an instance of aLevelStemrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratorrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
- 
Field Details- 
typeThe field for thetyperecord component.
- 
generatorThe field for thegeneratorrecord component.
- 
CODEC
- 
OVERWORLD
- 
NETHER
- 
END
 
- 
- 
Constructor Details- 
LevelStemCreates an instance of aLevelStemrecord class.- Parameters:
- type- the value for the- typerecord component
- generator- the value for the- generatorrecord 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. All components in this record class are compared withObjects::equals(Object,Object).
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
- 
generatorReturns the value of thegeneratorrecord component.- Returns:
- the value of the generatorrecord component
 
 
-