Class SummonCommand
java.lang.Object
net.minecraft.server.commands.SummonCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionTypeprivate static final SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntitycreateEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag nbt, boolean finalize) static voidregister(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) private static intspawnEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag nbt, boolean finalize)
-
Field Details
-
ERROR_FAILED
-
ERROR_FAILED_PEACEFUL
-
ERROR_DUPLICATE_UUID
-
INVALID_POSITION
-
-
Constructor Details
-
SummonCommand
public SummonCommand()
-
-
Method Details
-
register
public static void register(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) -
createEntity
public static Entity createEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag nbt, boolean finalize) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
spawnEntity
private static int spawnEntity(CommandSourceStack source, Holder.Reference<EntityType<?>> type, Vec3 pos, CompoundTag nbt, boolean finalize) throws CommandSyntaxException - Throws:
CommandSyntaxException
-