AmbienceEmitterAddCommand

public class AmbienceEmitterAddCommand extends AbstractPlayerCommand

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

java.lang.Object > AbstractPlayerCommand > AmbienceEmitterAddCommand

Field Summary

transformComponent

final TransformComponent transformComponent

Field transformComponent.

holder

final Holder holder

Field holder.

soundEvent

final SoundEvent soundEvent

Field soundEvent.

emitterComponent

final AmbientEmitterComponent emitterComponent

Field emitterComponent.

emitterTransform

final TransformComponent emitterTransform

Field emitterTransform.

model

final Model model

Field model.

emitterRef

final Ref emitterRef

Field emitterRef.

Method Detail

AmbienceEmitterAddCommand

public public AmbienceEmitterAddCommand ()

Method AmbienceEmitterAddCommand.

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

GeneralCommandException

public new GeneralCommandException (Message.translation("server.commands.errors.playerOnly")

Method GeneralCommandException.

Parameters:
Message.translation("server.commands.errors.playerOnly" Message.translation("server.commands.errors.playerOnly"

Nameplate

public new Nameplate (soundEvent.getId()

Method Nameplate.

Parameters:
soundEvent.getId( soundEvent.getId(

ModelComponent

public new ModelComponent (model)

Method ModelComponent.

Parameters:
model model

PersistentModel

public new PersistentModel (model.toReference()

Method PersistentModel.

Parameters:
model.toReference( model.toReference(