Contents
Class BlockTickPlugin
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.builtin.blocktick.BlockTickPlugin
- All Implemented Interfaces:
IBlockTickProvider, CommandOwner
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class PluginBase
METRICS_REGISTRYFields inherited from interface IBlockTickProvider
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdiscoverTickingBlocks(Holder<ChunkStore> sectionHolder) Discovers all blocks in a chunk section which have an associated procedure in theBlockTickPluginand sets them to ticking.static BlockTickPluginget()getTickProcedure(int blockId) 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
-
Constructor Details
-
BlockTickPlugin
-
-
Method Details
-
get
-
getTickProcedure
- Specified by:
getTickProcedurein interfaceIBlockTickProvider
-
discoverTickingBlocks
Discovers all blocks in a chunk section which have an associated procedure in theBlockTickPluginand sets them to ticking.- Parameters:
sectionHolder- The Holder of the ChunkStore containing the chunk section.- Returns:
- the number of discovered ticking blocks.
-