MountPlugin

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

getInstance

static MountPlugin getInstance ()

Method getInstance.

MountPlugin

public public MountPlugin (@Nonnull final JavaPluginInit init)

Method MountPlugin.

Parameters:
@Nonnull final JavaPluginInit init

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

static void onPlayerDisconnect (@Nonnull final PlayerDisconnectEvent event)

Method onPlayerDisconnect.

Parameters:
@Nonnull final PlayerDisconnectEvent event

checkDismountNpc

static void checkDismountNpc (@Nonnull final ComponentAccessor store, @Nonnull final Player playerComponent)

Method checkDismountNpc.

Parameters:
@Nonnull final ComponentAccessor store
@Nonnull final Player playerComponent

dismountNpc

static void dismountNpc (@Nonnull final ComponentAccessor store, final int mountEntityId)

Method dismountNpc.

Parameters:
@Nonnull final ComponentAccessor store
final int mountEntityId

resetOriginalMountRole

static void resetOriginalMountRole (@Nonnull final Ref entityReference, @Nonnull final ComponentAccessor store, @Nonnull final NPCMountComponent mountComponent)

Method resetOriginalMountRole.

Parameters:
@Nonnull final Ref entityReference
@Nonnull final ComponentAccessor store
@Nonnull final NPCMountComponent mountComponent

resetOriginalPlayerMovementSettings

static void resetOriginalPlayerMovementSettings (@Nonnull final PlayerRef playerRef, @Nonnull final ComponentAccessor store)

Method resetOriginalPlayerMovementSettings.

Parameters:
@Nonnull final PlayerRef playerRef
@Nonnull final ComponentAccessor store

DismountNPC

public new DismountNPC ()

Method DismountNPC.