Class SpecTestCommand
java.lang.Object
com.pixelmonmod.pixelmon.command.PixelCommand
com.pixelmonmod.pixelmon.command.impl.SpecTestCommand
-
Constructor Summary
ConstructorDescriptionSpecTestCommand
(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher) -
Method Summary
Modifier and TypeMethodDescriptionboolean
executeCommand
(net.minecraft.commands.CommandSourceStack sender, String[] args) static net.minecraft.world.phys.EntityHitResult
getEntityHitResult
(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity origin, net.minecraft.world.phys.Vec3 position, net.minecraft.world.phys.Vec3 p_221269_3_, net.minecraft.world.phys.AABB p_221269_4_, Predicate<net.minecraft.world.entity.Entity> p_221269_5_) static net.minecraft.world.phys.HitResult
getHitResult
(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.entity.Entity> test) getTabCompletions
(net.minecraft.server.MinecraftServer server, net.minecraft.commands.CommandSourceStack sender, String[] args, net.minecraft.core.BlockPos pos) Methods inherited from class com.pixelmonmod.pixelmon.command.PixelCommand
execute, getAliases, getName, getUsage, hasPermissionOtherTarget, setupTargetOrSourceAsTarget
-
Constructor Details
-
SpecTestCommand
public SpecTestCommand(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher)
-
-
Method Details
-
executeCommand
public boolean executeCommand(net.minecraft.commands.CommandSourceStack sender, String[] args) throws net.minecraft.commands.CommandRuntimeException - Overrides:
executeCommand
in classPixelCommand
- Throws:
net.minecraft.commands.CommandRuntimeException
-
getHitResult
public static net.minecraft.world.phys.HitResult getHitResult(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.entity.Entity> test) -
getEntityHitResult
@Nullable public static net.minecraft.world.phys.EntityHitResult getEntityHitResult(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity origin, net.minecraft.world.phys.Vec3 position, net.minecraft.world.phys.Vec3 p_221269_3_, net.minecraft.world.phys.AABB p_221269_4_, Predicate<net.minecraft.world.entity.Entity> p_221269_5_) -
getTabCompletions
public List<String> getTabCompletions(net.minecraft.server.MinecraftServer server, net.minecraft.commands.CommandSourceStack sender, String[] args, net.minecraft.core.BlockPos pos) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Overrides:
getTabCompletions
in classPixelCommand
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-