public class NPCDamageSystems
Class NPCDamageSystems. Provides npcdamagesystems functionality for the Hytale server.
java.lang.Object > NPCDamageSystems
Field Summary
npcComponent
final
NPCEntity
npcComponent
Field npcComponent.
attackerRef
final
Ref
attackerRef
Field attackerRef.
damageData
final
DamageData
damageData
Field damageData.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
blackboard
final
Blackboard
blackboard
Field blackboard.
view
final
EntityEventView
view
Field view.
attackerPlayerComponent
final
Player
attackerPlayerComponent
Field attackerPlayerComponent.
playerSettingsComponent
final
PlayerSettings
playerSettingsComponent
Field playerSettingsComponent.
role
final
Role
role
Field role.
itemsToDrop
final
List
itemsToDrop
Field itemsToDrop.
inventory
final
Inventory
inventory
Field inventory.
dropListId
final
String
dropListId
Field dropListId.
itemModule
final
ItemModule
itemModule
Field itemModule.
randomItemsToDrop
final
List
randomItemsToDrop
Field randomItemsToDrop.
position
final
Vector3d
position
Field position.
headRotationComponent
final
HeadRotation
headRotationComponent
Field headRotationComponent.
headRotation
final
Vector3f
headRotation
Field headRotation.
dropPosition
final
Vector3d
dropPosition
Field dropPosition.
drops
final
Holder[]
drops
Field drops.
Method Detail
FilterDamageSystem
public
public
FilterDamageSystem
()
Method FilterDamageSystem.
handle
public
void
handle
(final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final Damage damage)
Method handle.
- Parameters:
final intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer@Nonnull final Damagedamage
DamageReceivedSystem
public
public
DamageReceivedSystem
()
Method DamageReceivedSystem.
DamageReceivedEventViewSystem
public
public
DamageReceivedEventViewSystem
()
Method DamageReceivedEventViewSystem.
onComponentAdded
public
void
onComponentAdded
(@Nonnull final Ref ref, @Nonnull final DeathComponent component, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onComponentAdded.
- Parameters:
@Nonnull final Refref@Nonnull final DeathComponentcomponent@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer