Record Class Structure.StructureEntity
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.world.structure.Structure.StructureEntity
- Record Components:
pos- The floating-pointVectordetailing position offsets.entity- The heavily abstractedSavedEntitycontainer representing the deserialized mob or object.
- Enclosing class:
Structure
public static record Structure.StructureEntity(org.bukkit.util.Vector pos, SavedEntity entity)
extends Record
A structural marker holding a serialized entity and its exact relative spatial location.
-
Constructor Summary
ConstructorsConstructorDescriptionStructureEntity(org.bukkit.util.Vector pos, SavedEntity entity) Creates an instance of aStructureEntityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.bukkit.util.Vectorpos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 withObjects::equals(Object,Object). -
pos
-
entity
-