Package net.minecraft.world.entity
Class AnimationState
java.lang.Object
net.minecraft.world.entity.AnimationState
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private long
private static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
animateWhen
(boolean p_252220_, int p_249486_) void
fastForward
(int p_332215_, float p_335055_) long
void
ifStarted
(Consumer<AnimationState> p_216980_) boolean
void
start
(int p_216978_) void
startIfStopped
(int p_216983_) void
stop()
void
updateTime
(float p_216975_, float p_216976_)
-
Field Details
-
STOPPED
private static final long STOPPED- See Also:
-
lastTime
private long lastTime -
accumulatedTime
private long accumulatedTime
-
-
Constructor Details
-
AnimationState
public AnimationState()
-
-
Method Details
-
start
public void start(int p_216978_) -
startIfStopped
public void startIfStopped(int p_216983_) -
animateWhen
public void animateWhen(boolean p_252220_, int p_249486_) -
stop
public void stop() -
ifStarted
-
updateTime
public void updateTime(float p_216975_, float p_216976_) -
fastForward
public void fastForward(int p_332215_, float p_335055_) -
getAccumulatedTime
public long getAccumulatedTime() -
isStarted
public boolean isStarted()
-