Class FillBiomeCommand
java.lang.Object
net.minecraft.server.commands.FillBiomeCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleCommandExceptionTypeprivate static final Dynamic2CommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intfill(CommandSourceStack source, BlockPos rawFrom, BlockPos rawTo, Holder.Reference<Biome> biome, Predicate<Holder<Biome>> filter) static Either<Integer, CommandSyntaxException> static Either<Integer, CommandSyntaxException> fill(ServerLevel level, BlockPos rawFrom, BlockPos rawTo, Holder<Biome> biome, Predicate<Holder<Biome>> filter, Consumer<Supplier<Component>> successMessageConsumer) private static BiomeResolvermakeResolver(org.apache.commons.lang3.mutable.MutableInt count, ChunkAccess chunk, BoundingBox region, Holder<Biome> toFill, Predicate<Holder<Biome>> filter) private static intquantize(int blockCoord) private static BlockPosstatic voidregister(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
-
Field Details
-
ERROR_NOT_LOADED
-
ERROR_VOLUME_TOO_LARGE
-
-
Constructor Details
-
FillBiomeCommand
public FillBiomeCommand()
-
-
Method Details
-
register
public static void register(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) -
quantize
private static int quantize(int blockCoord) -
quantize
-
makeResolver
private static BiomeResolver makeResolver(org.apache.commons.lang3.mutable.MutableInt count, ChunkAccess chunk, BoundingBox region, Holder<Biome> toFill, Predicate<Holder<Biome>> filter) -
fill
public static Either<Integer, CommandSyntaxException> fill(ServerLevel level, BlockPos rawFrom, BlockPos rawTo, Holder<Biome> biome) -
fill
-
fill
private static int fill(CommandSourceStack source, BlockPos rawFrom, BlockPos rawTo, Holder.Reference<Biome> biome, Predicate<Holder<Biome>> filter) throws CommandSyntaxException - Throws:
CommandSyntaxException
-