BlockEventView

public class BlockEventView extends EventView

Class BlockEventView. Provides blockeventview functionality for the Hytale server.

java.lang.Object > EventView > BlockEventView

Field Summary

entityWorld

final World entityWorld

Field entityWorld.

blackboardResource

final Blackboard blackboardResource

Field blackboardResource.

type

final BlockEventType type

Field type.

eventSets

final IntSet eventSets

Field eventSets.

store

final Store store

Field store.

playerComponent

final Player playerComponent

Field playerComponent.

playerSettingsComponent

final PlayerSettings playerSettingsComponent

Field playerSettingsComponent.

blockId

final int blockId

Field blockId.

ref

final Ref ref

Field ref.

blockPosition

final Vector3i blockPosition

Field blockPosition.

world

final World world

Field world.

targetBlock

final Vector3i targetBlock

Field targetBlock.

Method Detail

BlockEventView

public public BlockEventView (@Nonnull final World world)

Method BlockEventView.

Parameters:
@Nonnull final World world

EventNotification

public new EventNotification ()

Method EventNotification.

getUpdatedView

public BlockEventView getUpdatedView (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method getUpdatedView.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

initialiseEntity

public void initialiseEntity (@Nonnull final Ref ref, @Nonnull final NPCEntity npcComponent)

Method initialiseEntity.

Parameters:
@Nonnull final Ref ref
@Nonnull final NPCEntity npcComponent

onEvent

protected void onEvent (final int senderTypeId, final double x, final double y, final double z, final Ref initiator, final Ref skip, @Nonnull final ComponentAccessor componentAccessor, final BlockEventType type)

Method onEvent.

Parameters:
final int senderTypeId
final double x
final double y
final double z
final Ref initiator
final Ref skip
@Nonnull final ComponentAccessor componentAccessor
final BlockEventType type

onEntityDamageBlock

public void onEntityDamageBlock (@Nonnull final Ref ref, @Nonnull final DamageBlockEvent event)

Method onEntityDamageBlock.

Parameters:
@Nonnull final Ref ref
@Nonnull final DamageBlockEvent event

onEntityBreakBlock

public void onEntityBreakBlock (@Nonnull final Ref ref, @Nonnull final BreakBlockEvent event)

Method onEntityBreakBlock.

Parameters:
@Nonnull final Ref ref
@Nonnull final BreakBlockEvent event

processDamagedBlock

private void processDamagedBlock (@Nonnull final Ref initiatorRef, final String block, @Nonnull final Vector3i position, @Nonnull final BlockEventType type)

Method processDamagedBlock.

Parameters:
@Nonnull final Ref initiatorRef
final String block
@Nonnull final Vector3i position
@Nonnull final BlockEventType type

onPlayerInteraction

private void onPlayerInteraction (@Nonnull final PlayerInteractEvent event)

Method onPlayerInteraction.

Parameters:
@Nonnull final PlayerInteractEvent event