Contents
Class BlockHealthModule
java.lang.Object
com.hypixel.hytale.server.core.plugin.PluginBase
com.hypixel.hytale.server.core.plugin.JavaPlugin
com.hypixel.hytale.server.core.modules.blockhealth.BlockHealthModule
- All Implemented Interfaces:
CommandOwner
Applies, regenerates and replicates block health per chunk section.
-
Field Summary
FieldsFields inherited from class PluginBase
METRICS_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockHealthModuleget()static voidonBlockReplaced(ComponentAccessor<ChunkStore> accessor, Ref<ChunkStore> sectionRef, int index) Drops the health of a cell whose block was replaced.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
-
-
Constructor Details
-
BlockHealthModule
-
-
Method Details
-
get
-
getBlockHealthSectionComponentType
-
onBlockReplaced
public static void onBlockReplaced(@Nonnull ComponentAccessor<ChunkStore> accessor, @Nonnull Ref<ChunkStore> sectionRef, int index) Drops the health of a cell whose block was replaced. Fragility stays, because a placement marks its block fragile before the block is set.- Parameters:
accessor- The chunk store accessor that holds the section.sectionRef- The section that contains the cell.index- The cell index inside the section.
-