public class NPCSystems
Class NPCSystems. Provides npcsystems functionality for the Hytale server.
java.lang.Object > NPCSystems
Field Summary
npcComponent
Field npcComponent.
role
Field role.
newSpawnComponent
Field newSpawnComponent.
blockTypeView
Field blockTypeView.
effectController
Field effectController.
balanceAssetId
Field balanceAssetId.
balanceAsset
Field balanceAsset.
entityEffectId
Field entityEffectId.
entityEffect
Field entityEffect.
worldTimeResource
Field worldTimeResource.
archetype
Field archetype.
fromWorldGen
Field fromWorldGen.
transformComponent
Field transformComponent.
bodyRotation
Field bodyRotation.
fromWorldGenComponent
Field fromWorldGenComponent.
world
Field world.
worldTo
Field worldTo.
deathAnimationTime
Field deathAnimationTime.
model
Field model.
worldGenId
Field worldGenId.
targetRef
Field targetRef.
playerComponent
Field playerComponent.
displayNameComponent
Field displayNameComponent.
holder
Field holder.
flockMembershipComponent
Field flockMembershipComponent.
flockId
Field flockId.
Method Detail
onEntityAdded
void
onEntityAdded
(@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
IllegalStateException
new
IllegalStateException
("NPC has no role or role index in onLoad!")
Method IllegalStateException.
- Parameters:
"NPC has no role or role index inonLoad!"
NewSpawnComponent
new
NewSpawnComponent
(role.getSpawnLockTime()
Method NewSpawnComponent.
- Parameters:
role.getSpawnLockTime(role.getSpawnLockTime(
onEntityRemove
void
onEntityRemove
(@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
AddSpawnEntityEffectSystem
Method AddSpawnEntityEffectSystem.
- Parameters:
@Nonnull final ComponentTypenpcComponentType
AddedFromExternalSystem
Method AddedFromExternalSystem.
- Parameters:
@Nonnull final ComponentTypenpcComponentType
SystemDependency
new
SystemDependency
(Order.AFTER, AddedSystem.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERAddedSystem.classAddedSystem.class
getDependencies
Set>
getDependencies
()
Method getDependencies.
AddedFromWorldGenSystem
public
AddedFromWorldGenSystem
()
Method AddedFromWorldGenSystem.
onEntityAdd
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
WorldGenId
new
WorldGenId
(fromWorldGenComponent.getWorldGenId()
Method WorldGenId.
- Parameters:
fromWorldGenComponent.getWorldGenId(fromWorldGenComponent.getWorldGenId(
onEntityRemoved
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore
OnTeleportSystem
public
OnTeleportSystem
()
Method OnTeleportSystem.
componentType
Teleport>
componentType
()
Method componentType.
onComponentAdded
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final Teleport component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final Teleportcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentSet
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 Refreffinal TeleportoldComponent@Nonnull final TeleportnewComponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onComponentRemoved
void
onComponentRemoved
(@Nonnull final Ref ref, @Nonnull final Teleport component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentRemoved.
- Parameters:
@Nonnull final Refref@Nonnull final Teleportcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
OnDeathSystem
public
OnDeathSystem
()
Method OnDeathSystem.
DeferredCorpseRemoval
new
DeferredCorpseRemoval
(deathAnimationTime)
Method DeferredCorpseRemoval.
- Parameters:
deathAnimationTimedeathAnimationTime
ModelChangeSystem
public
ModelChangeSystem
()
Method ModelChangeSystem.
LegacyWorldGenId
public
LegacyWorldGenId
()
Method LegacyWorldGenId.
KillFeedKillerEventSystem
public
KillFeedKillerEventSystem
()
Method KillFeedKillerEventSystem.
handle
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 intindex@NonNullDecl final ArchetypeChunkarchetypeChunk@NonNullDecl final Storestore@NonNullDecl final CommandBuffercommandBuffer@NonNullDecl final KillFeedEvent.KillerMessageevent
KillFeedDecedentEventSystem
public
KillFeedDecedentEventSystem
()
Method KillFeedDecedentEventSystem.
PrefabPlaceEntityEventSystem
public
PrefabPlaceEntityEventSystem
()
Method PrefabPlaceEntityEventSystem.