Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- get()
- loadCommonAssets(AssetPack, long)
- addCommonAsset(String, T)
- addCommonAsset(String, T, boolean)
- getRequiredAssets()
- sendAssetsToPlayer(PacketHandler, Asset[], boolean)
- sendAssets(List, boolean)
- sendAssetsToPlayer(PacketHandler, List, boolean)
- sendAsset(CommonAsset, boolean)
- sendRemoveAssets(List, boolean)
Class CommonAssetModule
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.server.core.asset.common.CommonAssetModule
- All Implemented Interfaces:
CommandOwner
- Since:
- 28/8/17.
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final PluginManifeststatic final intstatic final InstantFields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends CommonAsset>
voidaddCommonAsset(String pack, T asset) <T extends CommonAsset>
voidaddCommonAsset(String pack, T asset, boolean log) static CommonAssetModuleget()Asset[]voidloadCommonAssets(AssetPack pack, long bootTime) voidsendAsset(CommonAsset asset, boolean forceRebuild) voidsendAssets(List<CommonAsset> toSend, boolean forceRebuild) voidsendAssetsToPlayer(PacketHandler packetHandler, Asset[] requested, boolean forceRebuild) voidsendAssetsToPlayer(PacketHandler packetHandler, List<CommonAsset> toSend, boolean forceRebuild) voidsendRemoveAssets(List<CommonAssetRegistry.PackAsset> assets, boolean forceRebuild) Methods inherited from class JavaPlugin
getClassLoader, getFile, getTypeMethods inherited from class PluginBase
getAssetRegistry, getBasePermission, getChunkStoreRegistry, getClientFeatureRegistry, getCodecRegistry, getCodecRegistry, getCodecRegistry, getCommandRegistry, getDataDirectory, getEntityRegistry, getEntityStoreRegistry, getEventRegistry, getIdentifier, getLogger, getManifest, getName, getState, getTaskRegistry, isDisabled, isEnabled, preLoad
-
Field Details
-
MANIFEST
-
IGNORED_FILES
-
TICK_TIMESTAMP_ORIGIN
-
ASSET_INDEX_VERSION_IDENTIFIER
- See Also:
-
ASSET_INDEX_HASHES_VERSION
public static final int ASSET_INDEX_HASHES_VERSION- See Also:
-
ASSET_INDEX_CACHE_VERSION
public static final int ASSET_INDEX_CACHE_VERSION- See Also:
-
MAX_FRAME
public static final int MAX_FRAME- See Also:
-
-
Constructor Details
-
CommonAssetModule
-
-
Method Details
-
get
-
loadCommonAssets
-
addCommonAsset
-
addCommonAsset
-
getRequiredAssets
-
sendAssetsToPlayer
public void sendAssetsToPlayer(@Nonnull PacketHandler packetHandler, @Nullable Asset[] requested, boolean forceRebuild) -
sendAssets
-
sendAssetsToPlayer
public void sendAssetsToPlayer(@Nonnull PacketHandler packetHandler, @Nonnull List<CommonAsset> toSend, boolean forceRebuild) -
sendAsset
-
sendRemoveAssets
public void sendRemoveAssets(@Nonnull List<CommonAssetRegistry.PackAsset> assets, boolean forceRebuild)
-