NPCSpawnCommand

public class NPCSpawnCommand extends AbstractPlayerCommand

Command for npcspaw operations. Registered with the command system and callable by players.

java.lang.Object > AbstractPlayerCommand > NPCSpawnCommand

Field Summary

npcPlugin

final NPCPlugin npcPlugin

Field npcPlugin.

roleInfo

final BuilderInfo roleInfo

Field roleInfo.

roleIndex

final int roleIndex

Field roleIndex.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

playerHeadRotation

final Vector3f playerHeadRotation

Field playerHeadRotation.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

playerPosition

final Vector3d playerPosition

Field playerPosition.

boundingBoxComponent

final BoundingBox boundingBoxComponent

Field boundingBoxComponent.

playerBoundingBox

final Box playerBoundingBox

Field playerBoundingBox.

count

final int count

Field count.

radius

final double radius

Field radius.

flagsString

final String flagsString

Field flagsString.

flags

final EnumSet flags

Field flags.

velocity

final Vector3d velocity

Field velocity.

random

final Random random

Field random.

posOffset

final Vector3d posOffset

Field posOffset.

headRotation

final Vector3f headRotation

Field headRotation.

flockSizeString

final String flockSizeString

Field flockSizeString.

flockSize

final Integer flockSize

Field flockSize.

frozen

final Boolean frozen

Field frozen.

roleBuilder

final Builder roleBuilder

Field roleBuilder.

spawnable

final ISpawnableWithModel spawnable

Field spawnable.

spawningContext

final SpawningContext spawningContext

Field spawningContext.

playerSkin

final PlayerSkin playerSkin

Field playerSkin.

modelAsset

final ModelAsset modelAsset

Field modelAsset.

spawnPosition

final Vector3d spawnPosition

Field spawnPosition.

npcTransformComponent

final TransformComponent npcTransformComponent

Field npcTransformComponent.

npcHeadRotationComponent

final HeadRotation npcHeadRotationComponent

Field npcHeadRotationComponent.

npcUuidComponent

final UUIDComponent npcUuidComponent

Field npcUuidComponent.

npcPosition

final Vector3d npcPosition

Field npcPosition.

debugFlags

final EnumSet debugFlags

Field debugFlags.

holder

final Holder holder

Field holder.

parts

final String[] parts

Field parts.

size

final Integer size

Field size.

flockDefinition

final FlockAsset flockDefinition

Field flockDefinition.

playerComponent

final Player playerComponent

Field playerComponent.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

Method Detail

NPCSpawnCommand

public public NPCSpawnCommand ()

Method NPCSpawnCommand.

SpawnPageCommand

public new SpawnPageCommand ()

Method SpawnPageCommand.

execute

protected void execute (@Nonnull final CommandContext context, @Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef, @Nonnull final World world)

Method execute.

Parameters:
@Nonnull final CommandContext context
@Nonnull final Store store
@Nonnull final Ref ref
@Nonnull final PlayerRef playerRef
@Nonnull final World world

Random

public new Random (0L)

Method Random.

Parameters:
0L 0L

if

public else if (((Argument Boolean>)

Method if.

Parameters:
((Argument Boolean>

GeneralCommandException

public new GeneralCommandException (Message.translation("server.commands.npc.spawn.validation_failed")

Method GeneralCommandException.

Parameters:
Message.translation("server.commands.npc.spawn.validation_failed" Message.translation("server.commands.npc.spawn.validation_failed"

PlayerSkinComponent

public new PlayerSkinComponent (playerSkin)

Method PlayerSkinComponent.

Parameters:
playerSkin playerSkin

Vector3f

public new Vector3f (0.0f, (float)

Method Vector3f.

Parameters:
0.0f 0.0f
(float (float

parseVector3d

private Vector3d parseVector3d (@Nonnull final CommandContext context, @Nonnull final String str)

Method parseVector3d.

Parameters:
@Nonnull final CommandContext context
@Nonnull final String str

parseVector3f

private Vector3f parseVector3f (@Nonnull final CommandContext context, @Nonnull final String str)

Method parseVector3f.

Parameters:
@Nonnull final CommandContext context
@Nonnull final String str

parseFlockSize

private Integer parseFlockSize (@Nonnull final CommandContext context, @Nonnull final String str)

Method parseFlockSize.

Parameters:
@Nonnull final CommandContext context
@Nonnull final String str

EntitySpawnPage

public new EntitySpawnPage (playerRefComponent)

Method EntitySpawnPage.

Parameters:
playerRefComponent playerRefComponent