Interface BlockEntityArchetypeVolume

All Superinterfaces:
BlockVolume, Volume
All Known Subinterfaces:
ArchetypeVolume, BlockEntityArchetypeVolume.Immutable, BlockEntityArchetypeVolume.Modifiable<M>, BlockEntityArchetypeVolume.Mutable, BlockEntityArchetypeVolume.Streamable<B>, BlockEntityArchetypeVolume.Unmodifiable<U>, Schematic

public interface BlockEntityArchetypeVolume extends BlockVolume
  • Method Details

    • blockEntityArchetype

      Optional<BlockEntityArchetype> blockEntityArchetype(int x, int y, int z)
      Gets the BlockEntityArchetype for the block entity carrying block at the given coordinates.
      Parameters:
      x - The X position
      y - The Y position
      z - The Z position
      Returns:
      The block entity, if found
    • blockEntityArchetype

      default Optional<BlockEntityArchetype> blockEntityArchetype(Vector3i position)
      Gets the BlockEntityArchetype for the block entity carrying block at the given coordinates.
      Parameters:
      position - The position
      Returns:
      The block entity, if found
    • blockEntityArchetypes

      Map<Vector3i,BlockEntityArchetype> blockEntityArchetypes()
      Gets a map containing all block entity archetypes within this volume, keyed by their positions within the volume.
      Returns:
      The block entity map