Contents
Class BlockyAnimationCache
java.lang.Object
com.hypixel.hytale.server.core.asset.common.BlockyAnimationCache
This is a special case where we need to know information from a common asset, specifically an animation.
For the server to be able to wait for an animation to finish we must know how long it takes to play.
This file provides a simple cache that reads the .blockyanim asset and calculates how long it takes to play.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(CommonAsset asset) getNow(CommonAsset asset) static voidinvalidate(String name)
-
Field Details
-
LOGGER
-
-
Constructor Details
-
BlockyAnimationCache
public BlockyAnimationCache()
-
-
Method Details
-
get
-
get
@Nonnull public static CompletableFuture<BlockyAnimationCache.BlockyAnimation> get(@Nonnull CommonAsset asset) -
getNow
-
getNow
-
invalidate
-