BlockModule

public class BlockModule extends JavaPlugin

Class BlockModule. Provides blockmodule functionality for the Hytale server.

java.lang.Object > JavaPlugin > BlockModule

Field Summary

blockType

final BlockType blockType

Field blockType.

data

final Holder data

Field data.

state

final BlockState state

Field state.

holder

final Holder holder

Field holder.

chunk

final WorldChunk chunk

Field chunk.

column

final ChunkColumn column

Field column.

sections

final Holder[] sections

Field sections.

blockComponentModule

final BlockComponentChunk blockComponentModule

Field blockComponentModule.

section

final BlockSection section

Field section.

sectionYBlock

final int sectionYBlock

Field sectionYBlock.

y

final int y

Field y.

blockId

final int blockId

Field blockId.

index

final int index

Field index.

position

final Vector3i position

Field position.

blockState

final BlockState blockState

Field blockState.

chunkStore

final ChunkStore chunkStore

Field chunkStore.

chunkRef

final Ref chunkRef

Field chunkRef.

blockComponentChunk

final BlockComponentChunk blockComponentChunk

Field blockComponentChunk.

blockIndex

final int blockIndex

Field blockIndex.

blockRef

final Ref blockRef

Field blockRef.

needRebuild

private boolean needRebuild

Field needRebuild.

unknown

final UnknownComponents unknown

Field unknown.

launchPad

final LaunchPad launchPad

Field launchPad.

Method Detail

get

static BlockModule get ()

Method get.

BlockModule

public public BlockModule (@Nonnull final JavaPluginInit init)

Method BlockModule.

Parameters:
@Nonnull final JavaPluginInit init

setup

protected void setup ()

Method setup.

BlockStateInfoRefSystem

public new BlockStateInfoRefSystem (this.blockStateInfoComponentType)

Method BlockStateInfoRefSystem.

Parameters:
this.blockStateInfoComponentType this.blockStateInfoComponentType

MigrateLaunchPad

public new MigrateLaunchPad ()

Method MigrateLaunchPad.

ensureBlockEntity

static Ref ensureBlockEntity (final WorldChunk chunk, final int x, final int y, final int z)

Method ensureBlockEntity.

Parameters:
final WorldChunk chunk
final int x
final int y
final int z

BlockStateInfo

public new BlockStateInfo (ChunkUtil.indexBlockInColumn(x, y, z)

Method BlockStateInfo.

Parameters:
ChunkUtil.indexBlockInColumn(x ChunkUtil.indexBlockInColumn(x
y y
z z

onChunkPreLoadProcessEnsureBlockEntity

static void onChunkPreLoadProcessEnsureBlockEntity (@Nonnull final ChunkPreLoadProcessEvent event)

Method onChunkPreLoadProcessEnsureBlockEntity.

Parameters:
@Nonnull final ChunkPreLoadProcessEvent event

getMigrationSystemType

public MigrationSystem> getMigrationSystemType ()

Method getMigrationSystemType.

getBlockStateInfoComponentType

public BlockStateInfo> getBlockStateInfoComponentType ()

Method getBlockStateInfoComponentType.

getLaunchPadComponentType

public LaunchPad> getLaunchPadComponentType ()

Method getLaunchPadComponentType.

getRespawnBlockComponentType

public RespawnBlock> getRespawnBlockComponentType ()

Method getRespawnBlockComponentType.

getBlockMapMarkerComponentType

public BlockMapMarker> getBlockMapMarkerComponentType ()

Method getBlockMapMarkerComponentType.

getBlockMapMarkersResourceType

public BlockMapMarkersResource> getBlockMapMarkersResourceType ()

Method getBlockMapMarkersResourceType.

getBlockStateInfoNeedRebuildResourceType

public BlockStateInfoNeedRebuild> getBlockStateInfoNeedRebuildResourceType ()

Method getBlockStateInfoNeedRebuildResourceType.

getBlockEntity

static Ref getBlockEntity (@Nonnull final World world, final int x, final int y, final int z)

Method getBlockEntity.

Parameters:
@Nonnull final World world
final int x
final int y
final int z

getComponent

public T getComponent (final ComponentType componentType, final World world, final int x, final int y, final int z)

Method getComponent.

Parameters:
final ComponentType componentType
final World world
final int x
final int y
final int z

getResourceType

public BlockStateInfoNeedRebuild> getResourceType ()

Method getResourceType.

BlockStateInfoNeedRebuild

public public BlockStateInfoNeedRebuild ()

Method BlockStateInfoNeedRebuild.

invalidateAndReturnIfNeedRebuild

public boolean invalidateAndReturnIfNeedRebuild ()

Method invalidateAndReturnIfNeedRebuild.

markAsNeedRebuild

public void markAsNeedRebuild ()

Method markAsNeedRebuild.

clone

public Resource clone ()

Method clone.

getComponentType

public BlockStateInfo> getComponentType ()

Method getComponentType.

getIndex

public int getIndex ()

Method getIndex.

getChunkRef

public Ref getChunkRef ()

Method getChunkRef.

markNeedsSaving

public void markNeedsSaving ()

Method markNeedsSaving.

getQuery

public Query getQuery ()

Method getQuery.

onEntityAdded

public void onEntityAdded (@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onEntityRemove

public void onEntityRemove (@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onEntityRemove.

Parameters:
@Nonnull final Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

toString

public String toString ()

Method toString.

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