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 Worldworld
EventNotification
public
new
EventNotification
()
Method EventNotification.
getUpdatedView
public
BlockEventView
getUpdatedView
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method getUpdatedView.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
initialiseEntity
Method initialiseEntity.
- Parameters:
@Nonnull final Refref@Nonnull final NPCEntitynpcComponent
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 intsenderTypeIdfinal doublexfinal doubleyfinal doublezfinal Refinitiatorfinal Refskip@Nonnull final ComponentAccessorcomponentAccessorfinal BlockEventTypetype
onEntityDamageBlock
Method onEntityDamageBlock.
- Parameters:
@Nonnull final Refref@Nonnull final DamageBlockEventevent
onEntityBreakBlock
Method onEntityBreakBlock.
- Parameters:
@Nonnull final Refref@Nonnull final BreakBlockEventevent
processDamagedBlock
private
void
processDamagedBlock
(@Nonnull final Ref initiatorRef, final String block, @Nonnull final Vector3i position, @Nonnull final BlockEventType type)
Method processDamagedBlock.
- Parameters:
@Nonnull final RefinitiatorReffinal Stringblock@Nonnull final Vector3iposition@Nonnull final BlockEventTypetype
onPlayerInteraction
Method onPlayerInteraction.
- Parameters:
@Nonnull final PlayerInteractEventevent