DamageCommand

public class DamageCommand extends AbstractPlayerCommand

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

java.lang.Object > AbstractPlayerCommand > DamageCommand

Field Summary

amount

final double amount

Field amount.

silent

final boolean silent

Field silent.

damageSource

final Damage.CommandSource damageSource

Field damageSource.

damage

final Damage damage

Field damage.

damageFmt

final String damageFmt

Field damageFmt.

targetPlayerRef

final PlayerRef targetPlayerRef

Field targetPlayerRef.

ref

final Ref ref

Field ref.

store

final Store store

Field store.

world

final World world

Field world.

playerComponent

final Player playerComponent

Field playerComponent.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

Method Detail

DamageCommand

public public DamageCommand ()

Method DamageCommand.

DamageOtherCommand

public new DamageOtherCommand ()

Method DamageOtherCommand.

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

Damage

public new Damage (damageSource, DamageCause.COMMAND, (float)

Method Damage.

Parameters:
damageSource damageSource
DamageCause.COMMAND DamageCause.COMMAND
(float (float

executeSync

protected void executeSync (@Nonnull final CommandContext context)

Method executeSync.

Parameters:
@Nonnull final CommandContext context