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
Field npcPlugin.
roleInfo
Field roleInfo.
roleIndex
Field roleIndex.
headRotationComponent
Field headRotationComponent.
playerHeadRotation
Field playerHeadRotation.
transformComponent
Field transformComponent.
playerPosition
Field playerPosition.
boundingBoxComponent
Field boundingBoxComponent.
playerBoundingBox
Field playerBoundingBox.
count
Field count.
radius
Field radius.
flagsString
Field flagsString.
flags
Field flags.
velocity
Field velocity.
random
Field random.
posOffset
Field posOffset.
headRotation
Field headRotation.
flockSizeString
Field flockSizeString.
flockSize
Field flockSize.
frozen
Field frozen.
roleBuilder
Field roleBuilder.
spawnable
Field spawnable.
spawningContext
Field spawningContext.
playerSkin
Field playerSkin.
modelAsset
Field modelAsset.
spawnPosition
Field spawnPosition.
npcTransformComponent
Field npcTransformComponent.
npcHeadRotationComponent
Field npcHeadRotationComponent.
npcUuidComponent
Field npcUuidComponent.
npcPosition
Field npcPosition.
debugFlags
Field debugFlags.
holder
Field holder.
parts
Field parts.
size
Field size.
flockDefinition
Field flockDefinition.
playerComponent
Field playerComponent.
playerRefComponent
Field playerRefComponent.
Method Detail
NPCSpawnCommand
public
NPCSpawnCommand
()
Method NPCSpawnCommand.
SpawnPageCommand
new
SpawnPageCommand
()
Method SpawnPageCommand.
execute
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 CommandContextcontext@Nonnull final Storestore@Nonnull final Refref@Nonnull final PlayerRefplayerRef@Nonnull final Worldworld
Random
new
Random
(0L)
Method Random.
- Parameters:
0L0L
if
else
if
(((Argument Boolean> )
Method if.
- Parameters:
((ArgumentBoolean>
GeneralCommandException
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
new
PlayerSkinComponent
(playerSkin)
Method PlayerSkinComponent.
- Parameters:
playerSkinplayerSkin
Vector3f
new
Vector3f
(0.0f, (float)
Method Vector3f.
- Parameters:
0.0f0.0f(float(float
parseVector3d
Method parseVector3d.
- Parameters:
@Nonnull final CommandContextcontext@Nonnull final Stringstr
parseVector3f
Method parseVector3f.
- Parameters:
@Nonnull final CommandContextcontext@Nonnull final Stringstr
parseFlockSize
Method parseFlockSize.
- Parameters:
@Nonnull final CommandContextcontext@Nonnull final Stringstr
EntitySpawnPage
new
EntitySpawnPage
(playerRefComponent)
Method EntitySpawnPage.
- Parameters:
playerRefComponentplayerRefComponent