public class SpawnBeaconsCommand extends AbstractCommandCollection
Command for spawnbeacon operations. Registered with the command system and callable by players.
java.lang.Object > AbstractCommandCollection > SpawnBeaconsCommand
Field Summary
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
rotation
final
Vector3f
rotation
Field rotation.
position
final
Vector3d
position
Field position.
beacon
final
BeaconNPCSpawn
beacon
Field beacon.
wrapper
final
BeaconSpawnWrapper
wrapper
Field wrapper.
entity
final
SpawnBeacon
entity
Field entity.
spawn
final
BeaconNPCSpawn
spawn
Field spawn.
modelName
final
String
modelName
Field modelName.
holder
final
Holder
holder
Field holder.
displayNameMessage
final
Message
displayNameMessage
Field displayNameMessage.
positionSelectorComponent
final
FloodFillPositionSelector
positionSelectorComponent
Field positionSelectorComponent.
spawnBeaconComponent
final
SpawnBeacon
spawnBeaconComponent
Field spawnBeaconComponent.
Method Detail
SpawnBeaconsCommand
public
public
SpawnBeaconsCommand
()
Method SpawnBeaconsCommand.
Add
public
new
Add
()
Method Add.
ManualTrigger
public
new
ManualTrigger
()
Method ManualTrigger.
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 CommandContextcontext@Nonnull final Storestore@Nonnull final Refref@Nonnull final PlayerRefplayerRef@Nonnull final Worldworld
TransformComponent
public
new
TransformComponent
(position, rotation)
Method TransformComponent.
- Parameters:
positionpositionrotationrotation
ModelComponent
public
new
ModelComponent
(model)
Method ModelComponent.
- Parameters:
modelmodel
PersistentModel
public
new
PersistentModel
(model.toReference()
Method PersistentModel.
- Parameters:
model.toReference(model.toReference(
DisplayNameComponent
public
new
DisplayNameComponent
(displayNameMessage)
Method DisplayNameComponent.
- Parameters:
displayNameMessagedisplayNameMessage
Nameplate
public
new
Nameplate
(spawn.getId()
Method Nameplate.
- Parameters:
spawn.getId(spawn.getId(