Contents
Record Class HytaleAssetsWorldGenProvider.PublishedBuild
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.worldgen.HytaleAssetsWorldGenProvider.PublishedBuild
- All Implemented Interfaces:
StagedWorldGenProvider.Candidate
- Enclosing class:
HytaleAssetsWorldGenProvider
public static record HytaleAssetsWorldGenProvider.PublishedBuild(@Nonnull WorldGenMembershipSnapshot snapshot, @Nonnull IWorldGen generator)
extends Record
implements StagedWorldGenProvider.Candidate
-
Constructor Summary
ConstructorsConstructorDescriptionPublishedBuild(WorldGenMembershipSnapshot snapshot, IWorldGen generator) Creates an instance of aPublishedBuildrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongfinal 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.snapshot()Returns the value of thesnapshotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PublishedBuild
Creates an instance of aPublishedBuildrecord class.- Parameters:
snapshot- the value for thesnapshotrecord componentgenerator- the value for thegeneratorrecord component
-
-
Method Details
-
captureEpoch
public long captureEpoch() -
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 withObjects::equals(Object,Object). -
snapshot
Returns the value of thesnapshotrecord component.- Returns:
- the value of the
snapshotrecord component
-
generator
Returns the value of thegeneratorrecord component.- Specified by:
generatorin interfaceStagedWorldGenProvider.Candidate- Returns:
- the value of the
generatorrecord component
-