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 org.slf4j.Logger
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 String
getElementName
(com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_249526_) private static Optional<? extends HolderSet.ListBacked<Structure>>
getHolders
(ResourceOrTagKeyArgument.Result<Structure> p_251212_, Registry<Structure> p_249691_) private static int
locateBiome
(CommandSourceStack p_252062_, ResourceOrTagArgument.Result<Biome> p_249756_) private static int
locatePoi
(CommandSourceStack p_252013_, ResourceOrTagArgument.Result<PoiType> p_249480_) private static int
locateStructure
(CommandSourceStack p_214472_, ResourceOrTagKeyArgument.Result<Structure> p_249893_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_249870_, CommandBuildContext p_248936_) static int
showLocateResult
(CommandSourceStack p_263098_, ResourceOrTagArgument.Result<?> p_262956_, BlockPos p_262917_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_263074_, String p_262937_, boolean p_263051_, Duration p_263028_) static int
showLocateResult
(CommandSourceStack p_263019_, ResourceOrTagKeyArgument.Result<?> p_263031_, BlockPos p_262989_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_262959_, String p_263045_, boolean p_262934_, Duration p_262960_) private static int
showLocateResult
(CommandSourceStack p_262983_, BlockPos p_263016_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_262941_, String p_263083_, boolean p_263010_, String p_263048_, Duration p_263040_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
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_POI_NOT_FOUND
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_POI_NOT_FOUND -
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
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_249870_, CommandBuildContext p_248936_) -
getHolders
private static Optional<? extends HolderSet.ListBacked<Structure>> getHolders(ResourceOrTagKeyArgument.Result<Structure> p_251212_, Registry<Structure> p_249691_) -
locateStructure
private static int locateStructure(CommandSourceStack p_214472_, ResourceOrTagKeyArgument.Result<Structure> p_249893_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
locateBiome
private static int locateBiome(CommandSourceStack p_252062_, ResourceOrTagArgument.Result<Biome> p_249756_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
locatePoi
private static int locatePoi(CommandSourceStack p_252013_, ResourceOrTagArgument.Result<PoiType> p_249480_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getElementName
-
showLocateResult
public static int showLocateResult(CommandSourceStack p_263098_, ResourceOrTagArgument.Result<?> p_262956_, BlockPos p_262917_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_263074_, String p_262937_, boolean p_263051_, Duration p_263028_) -
showLocateResult
public static int showLocateResult(CommandSourceStack p_263019_, ResourceOrTagKeyArgument.Result<?> p_263031_, BlockPos p_262989_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_262959_, String p_263045_, boolean p_262934_, Duration p_262960_) -
showLocateResult
-
dist
private static float dist(int p_137854_, int p_137855_, int p_137856_, int p_137857_)
-