Class TriggerVolume

java.lang.Object
com.hypixel.hytale.builtin.triggervolumes.component.TriggerVolume
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class TriggerVolume extends Object implements Component<EntityStore>
Transport component for embedding trigger volumes in prefab entity data. Not used by the ticking system -- only by the prefab save/paste pipeline.
  • Field Details

  • Constructor Details

    • TriggerVolume

      public TriggerVolume()
  • Method Details

    • fromVolumeEntry

      @Nonnull public static TriggerVolume fromVolumeEntry(@Nonnull VolumeEntry entry)
    • 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

      @Nullable public String getGroupLinkId()
    • setGroupLinkId

      public void setGroupLinkId(@Nullable String groupLinkId)
    • getPrefabIndex

      public int getPrefabIndex()
    • setPrefabIndex

      public void setPrefabIndex(int prefabIndex)
    • clone

      @Nonnull public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.

    • getShape

      @Nullable public TriggerVolumeShape getShape()
    • getEffects

      @Nullable public List<TriggerEffect> getEffects()
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)