public class MountPlugin extends JavaPlugin
The main plugin class for Mount. This plugin provides gameplay features for the Hytale server. Extend this class to create a plugin.
java.lang.Object > JavaPlugin > MountPlugin
Field Summary
playerRef
final
PlayerRef
playerRef
Field playerRef.
ref
final
Ref
ref
Field ref.
store
final
Store
store
Field store.
world
final
World
world
Field world.
playerComponent
final
Player
playerComponent
Field playerComponent.
mountEntityId
final
int
mountEntityId
Field mountEntityId.
entityReference
final
Ref
entityReference
Field entityReference.
mountComponent
final
NPCMountComponent
mountComponent
Field mountComponent.
ownerPlayerRef
final
PlayerRef
ownerPlayerRef
Field ownerPlayerRef.
npcComponent
final
NPCEntity
npcComponent
Field npcComponent.
reference
final
Ref
reference
Field reference.
movementManagerComponent
final
MovementManager
movementManagerComponent
Field movementManagerComponent.
Method Detail
getMountComponentType
public
NPCMountComponent>
getMountComponentType
()
Method getMountComponentType.
getMountedComponentType
public
MountedComponent>
getMountedComponentType
()
Method getMountedComponentType.
getMountedByComponentType
public
MountedByComponent>
getMountedByComponentType
()
Method getMountedByComponentType.
getMinecartComponentType
public
MinecartComponent>
getMinecartComponentType
()
Method getMinecartComponentType.
setup
protected
void
setup
()
Method setup.
MountCommand
public
new
MountCommand
()
Method MountCommand.
getBlockMountComponentType
public
BlockMountComponent>
getBlockMountComponentType
()
Method getBlockMountComponentType.
onPlayerDisconnect
Method onPlayerDisconnect.
- Parameters:
@Nonnull final PlayerDisconnectEventevent
checkDismountNpc
static
void
checkDismountNpc
(@Nonnull final ComponentAccessor store, @Nonnull final Player playerComponent)
Method checkDismountNpc.
- Parameters:
@Nonnull final ComponentAccessorstore@Nonnull final PlayerplayerComponent
dismountNpc
Method dismountNpc.
- Parameters:
@Nonnull final ComponentAccessorstorefinal intmountEntityId
resetOriginalMountRole
static
void
resetOriginalMountRole
(@Nonnull final Ref entityReference, @Nonnull final ComponentAccessor store, @Nonnull final NPCMountComponent mountComponent)
Method resetOriginalMountRole.
- Parameters:
@Nonnull final RefentityReference@Nonnull final ComponentAccessorstore@Nonnull final NPCMountComponentmountComponent
resetOriginalPlayerMovementSettings
static
void
resetOriginalPlayerMovementSettings
(@Nonnull final PlayerRef playerRef, @Nonnull final ComponentAccessor store)
Method resetOriginalPlayerMovementSettings.
- Parameters:
@Nonnull final PlayerRefplayerRef@Nonnull final ComponentAccessorstore
DismountNPC
public
new
DismountNPC
()
Method DismountNPC.