类 LocateCommand
- java.lang.Object
-
- net.minecraft.server.command.LocateCommand
-
public class LocateCommand extends Object
- Mappings:
Namespace Name official ypintermediary net/minecraft/class_3079named net/minecraft/server/command/LocateCommand
-
-
字段概要
字段 修饰符和类型 字段 说明 private static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeFAILED_EXCEPTION
-
构造器概要
构造器 构造器 说明 LocateCommand()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 private static intexecute(ServerCommandSource source, StructureFeature<?> structure)private static floatgetDistance(int x1, int y1, int x2, int y2)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static intsendCoordinates(ServerCommandSource source, String structure, BlockPos sourcePos, BlockPos structurePos, String successMessage)
-
-
-
字段详细资料
-
FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
- Mappings:
Namespace Name Mixin selector official aLyp;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_13666Lnet/minecraft/class_3079;field_13666:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named FAILED_EXCEPTIONLnet/minecraft/server/command/LocateCommand;FAILED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
方法详细资料
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
- Mappings:
Namespace Name Mixin selector official aLyp;a(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_13443Lnet/minecraft/class_3079;method_13443(Lcom/mojang/brigadier/CommandDispatcher;)Vnamed registerLnet/minecraft/server/command/LocateCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
execute
private static int execute(ServerCommandSource source, StructureFeature<?> structure) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLyp;a(Ldg;Lcsx;)Iintermediary method_13457Lnet/minecraft/class_3079;method_13457(Lnet/minecraft/class_2168;Lnet/minecraft/class_3195;)Inamed executeLnet/minecraft/server/command/LocateCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/world/gen/feature/StructureFeature;)I
-
sendCoordinates
public static int sendCoordinates(ServerCommandSource source, String structure, BlockPos sourcePos, BlockPos structurePos, String successMessage)
- Mappings:
Namespace Name Mixin selector official aLyp;a(Ldg;Ljava/lang/String;Lgb;Lgb;Ljava/lang/String;)Iintermediary method_24499Lnet/minecraft/class_3079;method_24499(Lnet/minecraft/class_2168;Ljava/lang/String;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Ljava/lang/String;)Inamed sendCoordinatesLnet/minecraft/server/command/LocateCommand;sendCoordinates(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Ljava/lang/String;)I
-
getDistance
private static float getDistance(int x1, int y1, int x2, int y2)- Mappings:
Namespace Name Mixin selector official aLyp;a(IIII)Fintermediary method_13439Lnet/minecraft/class_3079;method_13439(IIII)Fnamed getDistanceLnet/minecraft/server/command/LocateCommand;getDistance(IIII)F
-
-