Interface InputExtent

All Known Subinterfaces:
Clipboard, Extent, IChunk, IChunkExtent<T>, IChunkGet, IQueueChunk<T>, IQueueExtent<T>, ReorderingExtent, SimpleWorld, World
All Known Implementing Classes:
AbstractBufferingExtent, AbstractDelegateExtent, AbstractExtentFilterBlock, AbstractFilterBlock, AbstractSingleFilterBlock, AbstractWorld, ArrayFilterBlock, BiomeQuirkExtent, BlockArrayClipboard, BlockBagExtent, BlockChangeLimiter, BlockQuirkExtent, BlockTransformExtent, BlockTranslateExtent, ChangeSetExtent, CharFilterBlock, CharGetBlocks, ChunkBatchingExtent, ChunkFilterBlock, ChunkHolder, ChunkLoadingExtent, CPUOptimizedClipboard, DataValidatorExtent, DisallowedBlocksExtent, DiskOptimizedClipboard, EditSession, EmptyClipboard, ExtentBatchProcessorHolder, ExtentBuffer, ExtentFilterBlock, ExtentHeightCacher, FaweRegionExtent, FilterBlock, ForgetfulExtentBuffer, FuzzyRegionSelector, HeightBoundExtent, HistoryExtent, LastAccessExtentCache, LimitExtent, Linear3DTransform, LinearClipboard, LinearTransform, MaskingExtent, MemoryCheckingExtent, MemoryOptimizedClipboard, MultiRegionExtent, MultiStageReorder, MultiTransform, NullChunk, NullChunkGet, NullExtent, NullExtent, NullWorld, OffsetTransform, ParallelQueueExtent, PassthroughExtent, PatternTransform, PositionTransformExtent, ProcessedWEExtent, RandomOffsetTransform, RandomTransform, ReadOnlyClipboard, RequestExtent, ResettableExtent, ScaleTransform, SelectTransform, SideEffectExtent, SimpleClipboard, SingleFilterBlock, SingleRegionExtent, SingleThreadQueueExtent, SlowExtent, SourceMaskExtent, StripNBTExtent, SupplyingExtent, SurvivalModeExtent, TemporalExtent, TracingExtent, TransformExtent, WatchdogTickingExtent, WorldCopyClipboard, WorldWrapper

public interface InputExtent
Provides the current state of blocks, entities, and so on.
  • Method Details

    • getBlock

      default BlockState getBlock(BlockVector3 position)
      Get a snapshot of the block at the given location.

      If the given position is out of the bounds of the extent, then the behavior is undefined (an air block could be returned). However, null should not be returned.

      The returned block is immutable and is a snapshot of the block at the time of call. It has no position attached to it, so it could be reused in Patterns and so on.

      Parameters:
      position - position of the block
      Returns:
      the block
    • getBlock

      default BlockState getBlock(int x, int y, int z)
    • getFullBlock

      default BaseBlock getFullBlock(BlockVector3 position)
      Get an immutable snapshot of the block at the given location.
      Parameters:
      position - position of the block
      Returns:
      the block
    • getFullBlock

      default BaseBlock getFullBlock(int x, int y, int z)
    • getBiome

      @Deprecated default BiomeType getBiome(BlockVector2 position)
      Deprecated.
      Biomes in Minecraft are 3D now, use getBiome(BlockVector3)
      Get the biome at the given location.

      If there is no biome available, then the ocean biome should be returned.

      Parameters:
      position - the (x, z) location to check the biome at
      Returns:
      the biome at the location
    • getBiomeType

      default BiomeType getBiomeType(int x, int y, int z)
    • getBiome

      Get the biome at the given location.

      If there is no biome available, then the ocean biome should be returned.

      As implementation varies per Minecraft version, this may not exactly get this positions biome. On versions prior to 1.15, this will get the entire column. On later versions it will get the 4x4x4 cube's biome.

      Parameters:
      position - the (x, y, z) location to check the biome at
      Returns:
      the biome at the location
      See Also:
    • getEmittedLight

      default int getEmittedLight(BlockVector3 position)
      Get the light level at the given location.
      Parameters:
      position - location
      Returns:
      the light level at the location
    • getEmittedLight

      default int getEmittedLight(int x, int y, int z)
    • getSkyLight

      default int getSkyLight(MutableBlockVector3 position)
      Get the sky light level at the given location.
      Parameters:
      position - location
      Returns:
      the sky light level at the location
    • getSkyLight

      default int getSkyLight(int x, int y, int z)
    • getBrightness

      default int getBrightness(MutableBlockVector3 position)
    • getBrightness

      default int getBrightness(int x, int y, int z)
    • getOpacity

      default int getOpacity(MutableBlockVector3 position)
    • getOpacity

      default int getOpacity(int x, int y, int z)
    • getHeightMap

      default int[] getHeightMap(HeightMapType type)