Class BiomeQuirkExtent

java.lang.Object
com.sk89q.worldedit.extent.AbstractDelegateExtent
com.sk89q.worldedit.extent.world.BiomeQuirkExtent
All Implemented Interfaces:
Extent, InputExtent, OutputExtent

public class BiomeQuirkExtent extends AbstractDelegateExtent
Handles quirks when placing biomes.
  • Constructor Details

    • BiomeQuirkExtent

      public BiomeQuirkExtent(Extent extent)
      Create a new instance.
      Parameters:
      extent - the extent
  • Method Details

    • setBiome

      public boolean setBiome(BlockVector3 position, BiomeType biome)
      Description copied from interface: OutputExtent
      Set the biome.

      As implementation varies per Minecraft version, this may set more than this position's biome. On versions prior to 1.15, this will set the entire column. On later versions it will set the 4x4x4 cube.

      Specified by:
      setBiome in interface OutputExtent
      Overrides:
      setBiome in class AbstractDelegateExtent
      Parameters:
      position - the (x, y, z) location to set the biome at
      biome - the biome to set to
      Returns:
      true if the biome was successfully set (return value may not be accurate)