NPCSystems

public class NPCSystems

Class NPCSystems. Provides npcsystems functionality for the Hytale server.

java.lang.Object > NPCSystems

Field Summary

npcComponent

final NPCEntity npcComponent

Field npcComponent.

role

final Role role

Field role.

newSpawnComponent

final NewSpawnComponent newSpawnComponent

Field newSpawnComponent.

blockTypeView

final BlockTypeView blockTypeView

Field blockTypeView.

effectController

final EffectControllerComponent effectController

Field effectController.

balanceAssetId

final String balanceAssetId

Field balanceAssetId.

balanceAsset

final BalanceAsset balanceAsset

Field balanceAsset.

entityEffectId

final String entityEffectId

Field entityEffectId.

entityEffect

final EntityEffect entityEffect

Field entityEffect.

worldTimeResource

final WorldTimeResource worldTimeResource

Field worldTimeResource.

archetype

final Archetype archetype

Field archetype.

fromWorldGen

final boolean fromWorldGen

Field fromWorldGen.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

bodyRotation

final Vector3f bodyRotation

Field bodyRotation.

fromWorldGenComponent

final FromWorldGen fromWorldGenComponent

Field fromWorldGenComponent.

world

final World world

Field world.

worldTo

final World worldTo

Field worldTo.

deathAnimationTime

final double deathAnimationTime

Field deathAnimationTime.

model

final Model model

Field model.

worldGenId

final int worldGenId

Field worldGenId.

targetRef

final Ref targetRef

Field targetRef.

playerComponent

final Player playerComponent

Field playerComponent.

displayNameComponent

final DisplayNameComponent displayNameComponent

Field displayNameComponent.

holder

final Holder holder

Field holder.

flockMembershipComponent

final FlockMembership flockMembershipComponent

Field flockMembershipComponent.

flockId

final UUID flockId

Field flockId.

Method Detail

AddedSystem

public public AddedSystem (@Nonnull final ComponentType npcComponentType)

Method AddedSystem.

Parameters:
@Nonnull final ComponentType npcComponentType

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

IllegalStateException

public new IllegalStateException ("NPC has no role or role index in onLoad!")

Method IllegalStateException.

Parameters:
"NPC has no role or role index in onLoad!"

NewSpawnComponent

public new NewSpawnComponent (role.getSpawnLockTime()

Method NewSpawnComponent.

Parameters:
role.getSpawnLockTime( role.getSpawnLockTime(

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

getQuery

public Query getQuery ()

Method getQuery.

AddSpawnEntityEffectSystem

public public AddSpawnEntityEffectSystem (@Nonnull final ComponentType npcComponentType)

Method AddSpawnEntityEffectSystem.

Parameters:
@Nonnull final ComponentType npcComponentType

AddedFromExternalSystem

public public AddedFromExternalSystem (@Nonnull final ComponentType npcComponentType)

Method AddedFromExternalSystem.

Parameters:
@Nonnull final ComponentType npcComponentType

SystemDependency

public new SystemDependency (Order.AFTER, AddedSystem.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
AddedSystem.class AddedSystem.class

getDependencies

public Set> getDependencies ()

Method getDependencies.

getGroup

public SystemGroup getGroup ()

Method getGroup.

AddedFromWorldGenSystem

public public AddedFromWorldGenSystem ()

Method AddedFromWorldGenSystem.

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

WorldGenId

public new WorldGenId (fromWorldGenComponent.getWorldGenId()

Method WorldGenId.

Parameters:
fromWorldGenComponent.getWorldGenId( fromWorldGenComponent.getWorldGenId(

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

OnTeleportSystem

public public OnTeleportSystem ()

Method OnTeleportSystem.

componentType

public Teleport> componentType ()

Method componentType.

onComponentAdded

public void onComponentAdded (@Nonnull final Ref ref, @Nonnull final Teleport component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentAdded.

Parameters:
@Nonnull final Ref ref
@Nonnull final Teleport component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentSet

public void onComponentSet (@Nonnull final Ref ref, final Teleport oldComponent, @Nonnull final Teleport newComponent, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentSet.

Parameters:
@Nonnull final Ref ref
final Teleport oldComponent
@Nonnull final Teleport newComponent
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

onComponentRemoved

public void onComponentRemoved (@Nonnull final Ref ref, @Nonnull final Teleport component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method onComponentRemoved.

Parameters:
@Nonnull final Ref ref
@Nonnull final Teleport component
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

OnDeathSystem

public public OnDeathSystem ()

Method OnDeathSystem.

DeferredCorpseRemoval

public new DeferredCorpseRemoval (deathAnimationTime)

Method DeferredCorpseRemoval.

Parameters:
deathAnimationTime deathAnimationTime

ModelChangeSystem

public public ModelChangeSystem ()

Method ModelChangeSystem.

LegacyWorldGenId

public public LegacyWorldGenId ()

Method LegacyWorldGenId.

KillFeedKillerEventSystem

public public KillFeedKillerEventSystem ()

Method KillFeedKillerEventSystem.

handle

public void handle (final int index, @NonNullDecl final ArchetypeChunk archetypeChunk, @NonNullDecl final Store store, @NonNullDecl final CommandBuffer commandBuffer, @NonNullDecl final KillFeedEvent.KillerMessage event)

Method handle.

Parameters:
final int index
@NonNullDecl final ArchetypeChunk archetypeChunk
@NonNullDecl final Store store
@NonNullDecl final CommandBuffer commandBuffer
@NonNullDecl final KillFeedEvent.KillerMessage event

KillFeedDecedentEventSystem

public public KillFeedDecedentEventSystem ()

Method KillFeedDecedentEventSystem.

PrefabPlaceEntityEventSystem

public public PrefabPlaceEntityEventSystem ()

Method PrefabPlaceEntityEventSystem.