public class BlockHealthModule extends JavaPlugin
Class BlockHealthModule. Provides blockhealthmodule functionality for the Hytale server.
java.lang.Object > JavaPlugin > BlockHealthModule
Field Summary
chunkStoreRegistry
Field chunkStoreRegistry.
world
Field world.
blockLocation
Field blockLocation.
chunkComponentStore
Field chunkComponentStore.
chunkIndex
Field chunkIndex.
chunkReference
Field chunkReference.
blockHealthComponent
Field blockHealthComponent.
worldGameplayConfig
Field worldGameplayConfig.
blockPlacementFragilityTimer
Field blockPlacementFragilityTimer.
blockHealthChunkComponent
Field blockHealthChunkComponent.
entityStore
Field entityStore.
uptime
Field uptime.
currentGameTime
Field currentGameTime.
lastRepairGameTime
Field lastRepairGameTime.
deltaSeconds
Field deltaSeconds.
fragileBlock
Field fragileBlock.
newDuration
Field newDuration.
chunk
Field chunk.
allPlayers
Field allPlayers.
visibleTo
Field visibleTo.
playerReference
Field playerReference.
chunkTrackerComponent
Field chunkTrackerComponent.
deltaSeconds2
Field deltaSeconds2.
position
Field position.
blockHealth
Field blockHealth.
startRegenerating
Field startRegenerating.
packet
Field packet.
Method Detail
setup
void
setup
()
Method setup.
PlaceBlockEventSystem
new
PlaceBlockEventSystem
()
Method PlaceBlockEventSystem.
EnsureBlockHealthSystem
new
EnsureBlockHealthSystem
(this.blockHealthChunkComponentType)
Method EnsureBlockHealthSystem.
- Parameters:
this.blockHealthChunkComponentTypethis.blockHealthChunkComponentType
BlockHealthSystem
new
BlockHealthSystem
(this.blockHealthChunkComponentType)
Method BlockHealthSystem.
- Parameters:
this.blockHealthChunkComponentTypethis.blockHealthChunkComponentType
BlockHealthPacketSystem
new
BlockHealthPacketSystem
(this.blockHealthChunkComponentType)
Method BlockHealthPacketSystem.
- Parameters:
this.blockHealthChunkComponentTypethis.blockHealthChunkComponentType
getBlockHealthChunkComponentType
BlockHealthChunk>
getBlockHealthChunkComponentType
()
Method getBlockHealthChunkComponentType.
handle
void
handle
(final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final PlaceBlockEvent event)
Method handle.
- Parameters:
final intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer@Nonnull final PlaceBlockEventevent
onEntityAdd
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
onEntityRemoved
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
tick
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
UpdateBlockDamage
new
UpdateBlockDamage
(new BlockPosition(position.getX()
Method UpdateBlockDamage.
- Parameters:
newBlockPosition(position.getX(
isParallel
boolean
isParallel
()
Method isParallel.
fetch
void
fetch
(final int index, @Nonnull final ArchetypeChunk archetypeChunk, final Store store, final CommandBuffer commandBuffer, final PlayerRef player, @Nonnull final List results)
Method fetch.
- Parameters:
final intindex@Nonnull final ArchetypeChunkarchetypeChunkfinal Storestorefinal CommandBuffercommandBufferfinal PlayerRefplayer@Nonnull final Listresults