Class CommandKillSheep

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

public class CommandKillSheep extends Object implements IMCOPCommand
  • Constructor Details

    • CommandKillSheep

      public CommandKillSheep()
  • Method Details

    • onExecute

      public 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.