Class CommandKillAnimal

java.lang.Object
com.minecolonies.core.commands.killcommands.CommandKillAnimal
All Implemented Interfaces:
IMCCommand, IMCOPCommand

public class CommandKillAnimal extends Object implements IMCOPCommand
  • Constructor Details

    • CommandKillAnimal

      public CommandKillAnimal()
  • Method Details

    • onExecute

      public final int onExecute(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
      What happens when the command is executed
      Specified by:
      onExecute in interface IMCCommand
      Parameters:
      context - the context of the command execution
      Returns:
      1 if successful and 0 if incomplete.
    • getName

      public String getName()
      Name string of the command.
      Specified by:
      getName in interface IMCCommand
      Returns:
      the name.