Class Damage.CommandSource

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.damage.Damage.CommandSource
All Implemented Interfaces:
Damage.Source
Enclosing class:
Damage

public static class Damage.CommandSource extends Object implements Damage.Source
A damage source that represents a command sender
  • Constructor Details

    • CommandSource

      public CommandSource(@Nonnull CommandSender commandSender, @Nonnull AbstractCommand cmd)
      Constructor for a Damage.CommandSource instance
      Parameters:
      commandSender - The affiliated command sender
      cmd - The affiliated command
    • CommandSource

      public CommandSource(@Nonnull CommandSender commandSender, @Nullable String commandName)
      Constructor for a Damage.CommandSource instance
      Parameters:
      commandSender - The affiliated command sender
      commandName - The name of the command that was executed
  • Method Details