SoundPlay2DCommand

public class SoundPlay2DCommand extends AbstractTargetPlayerCommand

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

java.lang.Object > AbstractTargetPlayerCommand > SoundPlay2DCommand

Field Summary

soundEvent

final SoundEvent soundEvent

Field soundEvent.

soundCategory

final SoundCategory soundCategory

Field soundCategory.

soundEventIndex

final int soundEventIndex

Field soundEventIndex.

Method Detail

SoundPlay2DCommand

public public SoundPlay2DCommand ()

Method SoundPlay2DCommand.

execute

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

Method execute.

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