BlockHealthModule

public class BlockHealthModule extends JavaPlugin

Class BlockHealthModule. Provides blockhealthmodule functionality for the Hytale server.

java.lang.Object > JavaPlugin > BlockHealthModule

Field Summary

chunkStoreRegistry

final ComponentRegistryProxy chunkStoreRegistry

Field chunkStoreRegistry.

world

final World world

Field world.

blockLocation

final Vector3i blockLocation

Field blockLocation.

chunkComponentStore

final ChunkStore chunkComponentStore

Field chunkComponentStore.

chunkIndex

final long chunkIndex

Field chunkIndex.

chunkReference

final Ref chunkReference

Field chunkReference.

blockHealthComponent

final BlockHealthChunk blockHealthComponent

Field blockHealthComponent.

worldGameplayConfig

final WorldConfig worldGameplayConfig

Field worldGameplayConfig.

blockPlacementFragilityTimer

final float blockPlacementFragilityTimer

Field blockPlacementFragilityTimer.

blockHealthChunkComponent

final BlockHealthChunk blockHealthChunkComponent

Field blockHealthChunkComponent.

entityStore

final Store entityStore

Field entityStore.

uptime

final TimeResource uptime

Field uptime.

currentGameTime

final Instant currentGameTime

Field currentGameTime.

lastRepairGameTime

final Instant lastRepairGameTime

Field lastRepairGameTime.

deltaSeconds

final float deltaSeconds

Field deltaSeconds.

fragileBlock

final FragileBlock fragileBlock

Field fragileBlock.

newDuration

final float newDuration

Field newDuration.

chunk

final WorldChunk chunk

Field chunk.

allPlayers

final Collection allPlayers

Field allPlayers.

visibleTo

final ObjectArrayList visibleTo

Field visibleTo.

playerReference

final Ref playerReference

Field playerReference.

chunkTrackerComponent

final ChunkTracker chunkTrackerComponent

Field chunkTrackerComponent.

deltaSeconds2

final float deltaSeconds2

Field deltaSeconds2.

position

final Vector3i position

Field position.

blockHealth

final BlockHealth blockHealth

Field blockHealth.

startRegenerating

final Instant startRegenerating

Field startRegenerating.

packet

final UpdateBlockDamage packet

Field packet.

Method Detail

BlockHealthModule

public public BlockHealthModule (@Nonnull final JavaPluginInit init)

Method BlockHealthModule.

Parameters:
@Nonnull final JavaPluginInit init

get

static BlockHealthModule get ()

Method get.

setup

protected void setup ()

Method setup.

PlaceBlockEventSystem

public new PlaceBlockEventSystem ()

Method PlaceBlockEventSystem.

EnsureBlockHealthSystem

public new EnsureBlockHealthSystem (this.blockHealthChunkComponentType)

Method EnsureBlockHealthSystem.

Parameters:
this.blockHealthChunkComponentType this.blockHealthChunkComponentType

BlockHealthSystem

public new BlockHealthSystem (this.blockHealthChunkComponentType)

Method BlockHealthSystem.

Parameters:
this.blockHealthChunkComponentType this.blockHealthChunkComponentType

BlockHealthPacketSystem

public new BlockHealthPacketSystem (this.blockHealthChunkComponentType)

Method BlockHealthPacketSystem.

Parameters:
this.blockHealthChunkComponentType this.blockHealthChunkComponentType

getBlockHealthChunkComponentType

public BlockHealthChunk> getBlockHealthChunkComponentType ()

Method getBlockHealthChunkComponentType.

handle

public 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 int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer
@Nonnull final PlaceBlockEvent event

getQuery

public Query getQuery ()

Method getQuery.

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

tick

public void tick (final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method tick.

Parameters:
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

UpdateBlockDamage

public new UpdateBlockDamage (new BlockPosition(position.getX()

Method UpdateBlockDamage.

Parameters:
new BlockPosition(position.getX(

isParallel

public boolean isParallel ()

Method isParallel.

fetch

public 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 int index
@Nonnull final ArchetypeChunk archetypeChunk
final Store store
final CommandBuffer commandBuffer
final PlayerRef player
@Nonnull final List results