Class MovementAudioComponent

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.MovementAudioComponent
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class MovementAudioComponent extends Object implements Component<EntityStore>
Stores data relating to movement audio.
  • Field Details

    • NO_REPEAT

      public static float NO_REPEAT
  • Constructor Details

    • MovementAudioComponent

      public MovementAudioComponent()
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore, MovementAudioComponent> getComponentType()
    • getShouldHearPredicate

      @Nonnull public MovementAudioComponent.ShouldHearPredicate getShouldHearPredicate(@Nonnull Ref<EntityStore> ref)
      Returns a new predicate for each call. The component moves with its entity between worlds, so a stored Ref would keep the previous world's store, and the whole world, reachable.
    • getLastInsideBlockTypeId

      public int getLastInsideBlockTypeId()
    • setLastInsideBlockTypeId

      public void setLastInsideBlockTypeId(int lastInsideBlockTypeId)
    • canMoveInRepeat

      public boolean canMoveInRepeat()
    • tickMoveInRepeat

      public boolean tickMoveInRepeat(float dt)
    • setNextMoveInRepeat

      public void setNextMoveInRepeat(float nextMoveInRepeat)
    • clone

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