Package net.minecraft.server.commands
Class LocateCommand
java.lang.Object
net.minecraft.server.commands.LocateCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final int
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static float
dist
(int p_137854_, int p_137855_, int p_137856_, int p_137857_) private static Optional<? extends HolderSet.ListBacked<Structure>>
getHolders
(ResourceOrTagLocationArgument.Result<Structure> p_214484_, Registry<Structure> p_214485_) private static int
locateBiome
(CommandSourceStack p_214502_, ResourceOrTagLocationArgument.Result<Biome> p_214503_) private static int
locatePoi
(CommandSourceStack p_214509_, ResourceOrTagLocationArgument.Result<PoiType> p_214510_) private static int
locateStructure
(CommandSourceStack p_214472_, ResourceOrTagLocationArgument.Result<Structure> p_214473_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137859_) static int
showLocateResult
(CommandSourceStack p_214475_, ResourceOrTagLocationArgument.Result<?> p_214476_, BlockPos p_214477_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_214478_, String p_214479_, boolean p_214480_)
-
Field Details
-
ERROR_STRUCTURE_NOT_FOUND
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_STRUCTURE_NOT_FOUND -
ERROR_STRUCTURE_INVALID
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_STRUCTURE_INVALID -
ERROR_BIOME_NOT_FOUND
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_BIOME_NOT_FOUND -
ERROR_BIOME_INVALID
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_BIOME_INVALID -
ERROR_POI_NOT_FOUND
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_POI_NOT_FOUND -
ERROR_POI_INVALID
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_POI_INVALID -
MAX_STRUCTURE_SEARCH_RADIUS
private static final int MAX_STRUCTURE_SEARCH_RADIUS- See Also:
-
MAX_BIOME_SEARCH_RADIUS
private static final int MAX_BIOME_SEARCH_RADIUS- See Also:
-
BIOME_SAMPLE_RESOLUTION_HORIZONTAL
private static final int BIOME_SAMPLE_RESOLUTION_HORIZONTAL- See Also:
-
BIOME_SAMPLE_RESOLUTION_VERTICAL
private static final int BIOME_SAMPLE_RESOLUTION_VERTICAL- See Also:
-
POI_SEARCH_RADIUS
private static final int POI_SEARCH_RADIUS- See Also:
-
-
Constructor Details
-
LocateCommand
public LocateCommand()
-
-
Method Details
-
register
-
getHolders
private static Optional<? extends HolderSet.ListBacked<Structure>> getHolders(ResourceOrTagLocationArgument.Result<Structure> p_214484_, Registry<Structure> p_214485_) -
locateStructure
private static int locateStructure(CommandSourceStack p_214472_, ResourceOrTagLocationArgument.Result<Structure> p_214473_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
locateBiome
private static int locateBiome(CommandSourceStack p_214502_, ResourceOrTagLocationArgument.Result<Biome> p_214503_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
locatePoi
private static int locatePoi(CommandSourceStack p_214509_, ResourceOrTagLocationArgument.Result<PoiType> p_214510_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
showLocateResult
public static int showLocateResult(CommandSourceStack p_214475_, ResourceOrTagLocationArgument.Result<?> p_214476_, BlockPos p_214477_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_214478_, String p_214479_, boolean p_214480_) -
dist
private static float dist(int p_137854_, int p_137855_, int p_137856_, int p_137857_)
-