Interface BlockVolume
-
- All Superinterfaces:
Volume
- All Known Subinterfaces:
ArchetypeVolume
,BlockEntityArchetypeVolume
,BlockEntityArchetypeVolume.Immutable
,BlockEntityArchetypeVolume.Modifiable<M>
,BlockEntityArchetypeVolume.Mutable
,BlockEntityArchetypeVolume.Streamable<B>
,BlockEntityArchetypeVolume.Unmodifiable<U>
,BlockEntityVolume
,BlockEntityVolume.Modifiable<M>
,BlockEntityVolume.Mutable
,BlockEntityVolume.Streamable<T>
,BlockEntityVolume.Unmodifiable<U>
,BlockVolume.Immutable
,BlockVolume.Modifiable<M>
,BlockVolume.Mutable
,BlockVolume.Streamable<B>
,BlockVolume.Unmodifiable<U>
,Chunk<P>
,ClientWorld
,EntityArchetypeVolume.Immutable
,EntityArchetypeVolume.Unmodifiable<U>
,EntityVolume.Immutable
,EntityVolume.Modifiable<M>
,EntityVolume.Mutable
,EntityVolume.Unmodifiable<U>
,EnvironmentalVolume
,GenerationChunk
,GenerationRegion
,InteractableVolume
,PhysicsAwareMutableBlockVolume<P>
,PrimitiveGameVolume
,Region<R>
,Schematic
,ServerWorld
,TrackedVolume
,UpdatableVolume
,WeatherAwareVolume
,World<W,L>
,WorldChunk
,WorldLike<P>
public interface BlockVolume extends Volume
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BlockVolume.Immutable
static interface
BlockVolume.Modifiable<M extends BlockVolume.Modifiable<M>>
static interface
BlockVolume.Mutable
static interface
BlockVolume.Streamable<B extends BlockVolume.Streamable<B>>
static interface
BlockVolume.Unmodifiable<U extends BlockVolume.Unmodifiable<U>>
Like aBlockVolume
except in the case that while the parent volume can potentially be aMutableVolume
, this volume returned will not be.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BlockState
block(int x, int y, int z)
default BlockState
block(Vector3i vector3i)
FluidState
fluid(int x, int y, int z)
default FluidState
fluid(Vector3i vector3i)
default Vector3i
highestPositionAt(Vector3i position)
Get theServerLocation
of the highest block that sunlight can reach in the given column.int
highestYAt(int x, int z)
Get the y value of the highest block that sunlight can reach in the given column.default int
highestYAt(Vector2i column)
Get the y value of the highest block that sunlight can reach in the given column.
-
-
-
Method Detail
-
block
BlockState block(int x, int y, int z)
-
block
default BlockState block(Vector3i vector3i)
-
fluid
FluidState fluid(int x, int y, int z)
-
fluid
default FluidState fluid(Vector3i vector3i)
-
highestYAt
int highestYAt(int x, int z)
Get the y value of the highest block that sunlight can reach in the given column.This method ignores all transparent blocks, providing the highest opaque block.
- Parameters:
x
- The x column valuez
- The z column value- Returns:
- The y value of the highest opaque block
-
highestYAt
default int highestYAt(Vector2i column)
Get the y value of the highest block that sunlight can reach in the given column.This method ignores all transparent blocks, providing the highest opaque block.
- Parameters:
column
- The column value- Returns:
- The y value of the highest opaque block
-
highestPositionAt
default Vector3i highestPositionAt(Vector3i position)
Get theServerLocation
of the highest block that sunlight can reach in the given column.This method ignores all transparent blocks, providing the highest opaque block.
- Parameters:
position
- The column position- Returns:
- The highest opaque position
-
-