2020-07-14 13:35:07 +02:00
|
|
|
package fr.themode.demo.commands;
|
|
|
|
|
|
|
|
import net.minestom.server.command.CommandSender;
|
|
|
|
import net.minestom.server.command.builder.Arguments;
|
|
|
|
import net.minestom.server.command.builder.Command;
|
|
|
|
import net.minestom.server.command.builder.arguments.ArgumentType;
|
|
|
|
import net.minestom.server.command.builder.arguments.minecraft.ArgumentEntities;
|
|
|
|
import net.minestom.server.entity.Entity;
|
|
|
|
|
2020-08-01 07:35:16 +02:00
|
|
|
import java.util.List;
|
2020-07-14 13:35:07 +02:00
|
|
|
|
|
|
|
public class EntitySelectorCommand extends Command {
|
|
|
|
|
|
|
|
public EntitySelectorCommand() {
|
|
|
|
super("ent");
|
|
|
|
|
|
|
|
ArgumentEntities argumentEntities = ArgumentType.Entities("entities");
|
|
|
|
|
|
|
|
addSyntax(this::executor, argumentEntities);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private void executor(CommandSender commandSender, Arguments arguments) {
|
2020-08-01 07:35:16 +02:00
|
|
|
List<Entity> entities = arguments.getEntities("entities");
|
2020-07-14 13:35:07 +02:00
|
|
|
}
|
|
|
|
}
|