Package net.minecraft.server.commands
Class FillBiomeCommand
java.lang.Object
net.minecraft.server.commands.FillBiomeCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
fill
(CommandSourceStack pSource, BlockPos pFrom, BlockPos pTo, Holder.Reference<Biome> pBiome, Predicate<Holder<Biome>> pFilter) static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> static com.mojang.datafixers.util.Either
<Integer, com.mojang.brigadier.exceptions.CommandSyntaxException> fill
(ServerLevel pLevel, BlockPos pFrom, BlockPos pTo, Holder<Biome> pBiome, Predicate<Holder<Biome>> pFilter, Consumer<Supplier<Component>> pMessageOutput) private static BiomeResolver
makeResolver
(org.apache.commons.lang3.mutable.MutableInt pBiomeEntries, ChunkAccess pChunk, BoundingBox pTargetRegion, Holder<Biome> pReplacementBiome, Predicate<Holder<Biome>> pFilter) private static int
quantize
(int pValue) private static BlockPos
static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher, CommandBuildContext pContext)
-
Field Details
-
ERROR_NOT_LOADED
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_LOADED -
ERROR_VOLUME_TOO_LARGE
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_VOLUME_TOO_LARGE
-
-
Constructor Details
-
FillBiomeCommand
public FillBiomeCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher, CommandBuildContext pContext) -
quantize
private static int quantize(int pValue) -
quantize
-
makeResolver
private static BiomeResolver makeResolver(org.apache.commons.lang3.mutable.MutableInt pBiomeEntries, ChunkAccess pChunk, BoundingBox pTargetRegion, Holder<Biome> pReplacementBiome, Predicate<Holder<Biome>> pFilter) -
fill
-
fill
-
fill
private static int fill(CommandSourceStack pSource, BlockPos pFrom, BlockPos pTo, Holder.Reference<Biome> pBiome, Predicate<Holder<Biome>> pFilter) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-