public class NPCMountSystems
Class NPCMountSystems. Provides npcmountsystems functionality for the Hytale server.
java.lang.Object > NPCMountSystems
Field Summary
mountComponent
final
NPCMountComponent
mountComponent
Field mountComponent.
playerRef
final
PlayerRef
playerRef
Field playerRef.
npcComponent
final
NPCEntity
npcComponent
Field npcComponent.
networkIdComponent
final
NetworkId
networkIdComponent
Field networkIdComponent.
networkId
final
int
networkId
Field networkId.
packet
final
MountNPC
packet
Field packet.
playerComponent
final
Player
playerComponent
Field playerComponent.
Method Detail
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 Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
MountNPC
public
new
MountNPC
(mountComponent.getAnchorX()
Method MountNPC.
- Parameters:
mountComponent.getAnchorX(mountComponent.getAnchorX(
resetOriginalRoleMount
static
void
resetOriginalRoleMount
(@Nonnull final Ref ref, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final NPCMountComponent mountComponent)
Method resetOriginalRoleMount.
- Parameters:
@Nonnull final Refref@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer@Nonnull final NPCMountComponentmountComponent
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 Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
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