BlockSpawnerPlugin

public class BlockSpawnerPlugin extends JavaPlugin

The main plugin class for Blockspawner. This plugin provides gameplay features for the Hytale server. Extend this class to create a plugin.

java.lang.Object > JavaPlugin > BlockSpawnerPlugin

Field Summary

worldConfig

final WorldConfig worldConfig

Field worldConfig.

state

final BlockSpawner state

Field state.

info

final BlockModule.BlockStateInfo info

Field info.

blockSpawnerId

final String blockSpawnerId

Field blockSpawnerId.

table

final BlockSpawnerTable table

Field table.

chunk

final Ref chunk

Field chunk.

wc

final WorldChunk wc

Field wc.

x

final int x

Field x.

y

final int y

Field y.

z

final int z

Field z.

seed

final long seed

Field seed.

randomRnd

final double randomRnd

Field randomRnd.

entry

final BlockSpawnerEntry entry

Field entry.

blockKey

final String blockKey

Field blockKey.

rotation

final RotationTuple rotation

Field rotation.

key

final String key

Field key.

variantRotation

final VariantRotation variantRotation

Field variantRotation.

randomHash

final int randomHash

Field randomHash.

rotationYaw

final Rotation rotationYaw

Field rotationYaw.

spawnerRotation

final RotationTuple spawnerRotation

Field spawnerRotation.

spawnerYaw

final Rotation spawnerYaw

Field spawnerYaw.

holder

final Holder holder

Field holder.

blockId

final int blockId

Field blockId.

blockType

final BlockType blockType

Field blockType.

unknown

final UnknownComponents unknown

Field unknown.

blockSpawner

final BlockSpawner blockSpawner

Field blockSpawner.

Method Detail

get

static BlockSpawnerPlugin get ()

Method get.

BlockSpawnerPlugin

public public BlockSpawnerPlugin (@Nonnull final JavaPluginInit init)

Method BlockSpawnerPlugin.

Parameters:
@Nonnull final JavaPluginInit init

setup

protected void setup ()

Method setup.

BlockSpawnerCommand

public new BlockSpawnerCommand ()

Method BlockSpawnerCommand.

DefaultAssetMap

public new DefaultAssetMap ()

Method DefaultAssetMap.

BlockSpawnerSystem

public new BlockSpawnerSystem ()

Method BlockSpawnerSystem.

MigrateBlockSpawner

public new MigrateBlockSpawner ()

Method MigrateBlockSpawner.

getBlockSpawnerComponentType

public BlockSpawner> getBlockSpawnerComponentType ()

Method getBlockSpawnerComponentType.

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

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