Contents
Class Point
java.lang.Object
com.hypixel.hytale.builtin.points.component.Point
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Transport component for embedding points in prefab entity data. Used only by the prefab
save/paste pipeline; the live point state lives in
PointEntry on the manager.-
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static PointfromPointEntry(PointEntry entry) intvoidsetPrefabIndex(int prefabIndex) toPointEntry(String id, String worldName, org.joml.Vector3d position) toPointEntry(String id, String worldName, org.joml.Vector3d position, float yawRadians) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
CODEC
-
-
Constructor Details
-
Point
public Point()
-
-
Method Details
-
fromPointEntry
-
toPointEntry
@Nonnull public PointEntry toPointEntry(@Nonnull String id, @Nonnull String worldName, @Nonnull org.joml.Vector3d position) -
toPointEntry
@Nonnull public PointEntry toPointEntry(@Nonnull String id, @Nonnull String worldName, @Nonnull org.joml.Vector3d position, float yawRadians) -
getPrefabIndex
public int getPrefabIndex() -
setPrefabIndex
public void setPrefabIndex(int prefabIndex) -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-