Contents
Record Class PrefabPasteContext
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.adventure.worldevents.context.PrefabPasteContext
- All Implemented Interfaces:
Context
public record PrefabPasteContext(@Nonnull Path path, @Nonnull org.joml.Vector3i origin, @Nonnull PrefabRotation rotation)
extends Record
implements Context
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RecordCodec<PrefabPasteContext> static final StringFields inherited from interface Context
TYPE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionPrefabPasteContext(Path path, org.joml.Vector3i origin, PrefabRotation rotation) Creates an instance of aPrefabPasteContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.joml.Vector3iorigin()Returns the value of theoriginrecord component.path()Returns the value of thepathrecord component.rotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ID
- See Also:
-
CODEC
-
-
Constructor Details
-
PrefabPasteContext
public PrefabPasteContext(@Nonnull Path path, @Nonnull org.joml.Vector3i origin, @Nonnull PrefabRotation rotation) Creates an instance of aPrefabPasteContextrecord class.- Parameters:
path- the value for thepathrecord componentorigin- the value for theoriginrecord componentrotation- the value for therotationrecord component
-
-
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
origin
@Nonnull public org.joml.Vector3i origin()Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-