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 Worldworld
EntityEventNotification
public
new
EntityEventNotification
()
Method EntityEventNotification.
getUpdatedView
public
EntityEventView
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, @Nonnull final Ref skip, @Nonnull final ComponentAccessor componentAccessor, final EntityEventType type)
Method onEvent.
- Parameters:
final intsenderTypeIdfinal doublexfinal doubleyfinal doublezfinal Refinitiator@Nonnull final Refskip@Nonnull final ComponentAccessorcomponentAccessorfinal EntityEventTypetype
onPlayerInteraction
Method onPlayerInteraction.
- Parameters:
@Nonnull final PlayerInteractEventevent
processAttackedEvent
public
void
processAttackedEvent
(@Nonnull final Ref victim, @Nonnull final Ref attacker, @Nonnull final ComponentAccessor componentAccessor, final EntityEventType eventType)
Method processAttackedEvent.
- Parameters:
@Nonnull final Refvictim@Nonnull final Refattacker@Nonnull final ComponentAccessorcomponentAccessorfinal EntityEventTypeeventType