Contents
Class TriggerVolume
java.lang.Object
com.hypixel.hytale.builtin.triggervolumes.component.TriggerVolume
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Transport component for embedding trigger volumes in prefab entity data.
Not used by the ticking system -- only by the prefab save/paste pipeline.
-
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()static TriggerVolumefromVolumeEntry(VolumeEntry entry) intgetShape()booleanvoidsetEnabled(boolean enabled) voidsetGroupLinkId(String groupLinkId) voidsetPrefabIndex(int prefabIndex) toVolumeEntry(String id, String worldName, org.joml.Vector3d position) toVolumeEntry(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
-
TriggerVolume
public TriggerVolume()
-
-
Method Details
-
fromVolumeEntry
-
toVolumeEntry
@Nonnull public VolumeEntry toVolumeEntry(@Nonnull String id, @Nonnull String worldName, @Nonnull org.joml.Vector3d position) -
toVolumeEntry
@Nonnull public VolumeEntry toVolumeEntry(@Nonnull String id, @Nonnull String worldName, @Nonnull org.joml.Vector3d position, float yawRadians) -
getGroupLinkId
-
setGroupLinkId
-
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.
-
getShape
-
getEffects
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-