EntityEventView

public class EntityEventView extends EventView

Class EntityEventView. Provides entityeventview functionality for the Hytale server.

java.lang.Object > EventView > EntityEventView

Field Summary

entityWorld

final World entityWorld

Field entityWorld.

blackboardResource

final Blackboard blackboardResource

Field blackboardResource.

type

final EntityEventType type

Field type.

eventSets

final IntSet eventSets

Field eventSets.

membership

final FlockMembership membership

Field membership.

flockReference

final Ref flockReference

Field flockReference.

playerComponent

final Player playerComponent

Field playerComponent.

playerRef

final Ref playerRef

Field playerRef.

store

final Store store

Field store.

playerSettingsComponent

final PlayerSettings playerSettingsComponent

Field playerSettingsComponent.

entity

final Entity entity

Field entity.

entityRef

final Ref entityRef

Field entityRef.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

pos

final Vector3d pos

Field pos.

npc

final NPCEntity npc

Field npc.

Method Detail

EntityEventView

public public EntityEventView (@Nonnull final World world)

Method EntityEventView.

Parameters:
@Nonnull final World world

EntityEventNotification

public new EntityEventNotification ()

Method EntityEventNotification.

getUpdatedView

public EntityEventView 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, @Nonnull final Ref skip, @Nonnull final ComponentAccessor componentAccessor, final EntityEventType type)

Method onEvent.

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

onPlayerInteraction

private void onPlayerInteraction (@Nonnull final PlayerInteractEvent event)

Method onPlayerInteraction.

Parameters:
@Nonnull final PlayerInteractEvent event

processAttackedEvent

public void processAttackedEvent (@Nonnull final Ref victim, @Nonnull final Ref attacker, @Nonnull final ComponentAccessor componentAccessor, final EntityEventType eventType)

Method processAttackedEvent.

Parameters:
@Nonnull final Ref victim
@Nonnull final Ref attacker
@Nonnull final ComponentAccessor componentAccessor
final EntityEventType eventType