Record Class PrefabPopulator.Candidate
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.chunk.populator.PrefabPopulator.Candidate
- Enclosing class:
PrefabPopulator
private static record PrefabPopulator.Candidate(int x, int y, int z, int priority, PrefabRotation rotation, IPrefabBuffer buffer, WorldGenPrefabSupplier supplier, PrefabContainer.PrefabContainerEntry entry, PrefabPatternGenerator generator)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IPrefabBufferThe field for thebufferrecord component.private final PrefabContainer.PrefabContainerEntryThe field for theentryrecord component.private final PrefabPatternGeneratorThe field for thegeneratorrecord component.private final intThe field for thepriorityrecord component.private final PrefabRotationThe field for therotationrecord component.private final WorldGenPrefabSupplierThe field for thesupplierrecord component.private final intThe field for thexrecord component.private final intThe field for theyrecord component.private final intThe field for thezrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCandidate(int x, int y, int z, int priority, PrefabRotation rotation, IPrefabBuffer buffer, WorldGenPrefabSupplier supplier, PrefabContainer.PrefabContainerEntry entry, PrefabPatternGenerator generator) Creates an instance of aCandidaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuffer()Returns the value of thebufferrecord component.entry()Returns the value of theentryrecord component.final 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.intpriority()Returns the value of thepriorityrecord component.rotation()Returns the value of therotationrecord component.supplier()Returns the value of thesupplierrecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.intz()Returns the value of thezrecord component.
-
Field Details
-
x
private final int xThe field for thexrecord component. -
y
private final int yThe field for theyrecord component. -
z
private final int zThe field for thezrecord component. -
priority
private final int priorityThe field for thepriorityrecord component. -
rotation
The field for therotationrecord component. -
buffer
The field for thebufferrecord component. -
supplier
The field for thesupplierrecord component. -
entry
The field for theentryrecord component. -
generator
The field for thegeneratorrecord component.
-
-
Constructor Details
-
Candidate
private Candidate(int x, int y, int z, int priority, PrefabRotation rotation, IPrefabBuffer buffer, WorldGenPrefabSupplier supplier, PrefabContainer.PrefabContainerEntry entry, PrefabPatternGenerator generator) Creates an instance of aCandidaterecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentpriority- the value for thepriorityrecord componentrotation- the value for therotationrecord componentbuffer- the value for thebufferrecord componentsupplier- the value for thesupplierrecord componententry- the value for theentryrecord componentgenerator- the value for thegeneratorrecord component
-
-
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 '=='. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
buffer
Returns the value of thebufferrecord component.- Returns:
- the value of the
bufferrecord component
-
supplier
Returns the value of thesupplierrecord component.- Returns:
- the value of the
supplierrecord component
-
entry
Returns the value of theentryrecord component.- Returns:
- the value of the
entryrecord component
-
generator
Returns the value of thegeneratorrecord component.- Returns:
- the value of the
generatorrecord component
-