Class CommandKillPig
java.lang.Object
com.minecolonies.core.commands.killcommands.CommandKillPig
- All Implemented Interfaces:
IMCCommand,IMCOPCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.minecolonies.core.commands.commandTypes.IMCCommand
IMCCommand.ExecutionHandler -
Field Summary
Fields inherited from interface com.minecolonies.core.commands.commandTypes.IMCCommand
OP_PERM_LEVEL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.core.commands.commandTypes.IMCCommand
build, checkPreConditionAndExecute, checkPreConditionAndExecuteMethods inherited from interface com.minecolonies.core.commands.commandTypes.IMCOPCommand
checkPreCondition
-
Constructor Details
-
CommandKillPig
public CommandKillPig()
-
-
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:
onExecutein interfaceIMCCommand- Parameters:
context- the context of the command execution- Returns:
- 1 if successful and 0 if incomplete.
-
getName
Name string of the command.- Specified by:
getNamein interfaceIMCCommand- Returns:
- the name.
-