Class MovementAudioComponent
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.component.MovementAudioComponent
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate floatstatic floatprivate final MovementAudioComponent.ShouldHearPredicateFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclone()intvoidsetLastInsideBlockTypeId(int lastInsideBlockTypeId) voidsetNextMoveInRepeat(float nextMoveInRepeat) booleantickMoveInRepeat(float dt) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
NO_REPEAT
public static float NO_REPEAT -
shouldHearPredicate
-
lastInsideBlockTypeId
private int lastInsideBlockTypeId -
nextMoveInRepeat
private float nextMoveInRepeat
-
-
Constructor Details
-
MovementAudioComponent
public MovementAudioComponent()
-
-
Method Details
-
getComponentType
-
getShouldHearPredicate
@Nonnull public MovementAudioComponent.ShouldHearPredicate getShouldHearPredicate(Ref<EntityStore> ref) -
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
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-