Interface ArchetypeVolume
- All Superinterfaces:
BiomeVolume, BiomeVolume.Modifiable<ArchetypeVolume>, BiomeVolume.Streamable<ArchetypeVolume>, BlockEntityArchetypeVolume, BlockEntityArchetypeVolume.Modifiable<ArchetypeVolume>, BlockEntityArchetypeVolume.Streamable<ArchetypeVolume>, BlockVolume, BlockVolume.Modifiable<ArchetypeVolume>, BlockVolume.Streamable<ArchetypeVolume>, EntityArchetypeVolume, EntityArchetypeVolume.Modifiable<ArchetypeVolume>, EntityArchetypeVolume.Streamable<ArchetypeVolume>, MutableVolume, Volume
- All Known Subinterfaces:
Schematic
public interface ArchetypeVolume
extends BlockVolume.Modifiable<ArchetypeVolume>, BlockEntityArchetypeVolume.Modifiable<ArchetypeVolume>, EntityArchetypeVolume.Modifiable<ArchetypeVolume>, BiomeVolume.Modifiable<ArchetypeVolume>
-
Nested Class Summary
Nested classes/interfaces inherited from interface BiomeVolume
BiomeVolume.Immutable, BiomeVolume.Modifiable<M>, BiomeVolume.Mutable, BiomeVolume.Streamable<B>, BiomeVolume.Unmodifiable<U>Nested classes/interfaces inherited from interface BlockEntityArchetypeVolume
BlockEntityArchetypeVolume.Immutable, BlockEntityArchetypeVolume.Modifiable<M>, BlockEntityArchetypeVolume.Mutable, BlockEntityArchetypeVolume.Streamable<B>, BlockEntityArchetypeVolume.Unmodifiable<U>Nested classes/interfaces inherited from interface BlockVolume
BlockVolume.Immutable, BlockVolume.Modifiable<M>, BlockVolume.Mutable, BlockVolume.Streamable<B>, BlockVolume.Unmodifiable<U>Nested classes/interfaces inherited from interface EntityArchetypeVolume
EntityArchetypeVolume.Immutable, EntityArchetypeVolume.Modifiable<M>, EntityArchetypeVolume.Mutable, EntityArchetypeVolume.Streamable<B>, EntityArchetypeVolume.Unmodifiable<U> -
Method Summary
Modifier and TypeMethodDescriptiondefault voidapplyToWorld(ServerWorld target, Vector3i placement, Supplier<SpawnType> spawnContext) default voidapplyToWorld(ServerWorld target, Vector3i placement, Supplier<SpawnType> spawnContext, BlockChangeFlag flag) default Vector3dGets the logical center of a volume, considering the decimal coordinates, the block's center location would have an offset of0.5transform(Transformation transformation) Methods inherited from interface BiomeVolume
biome, biomeMethods inherited from interface BiomeVolume.Modifiable
setBiome, setBiomeMethods inherited from interface BiomeVolume.Streamable
biomeStreamMethods inherited from interface BlockEntityArchetypeVolume
blockEntityArchetype, blockEntityArchetype, blockEntityArchetypesMethods inherited from interface BlockEntityArchetypeVolume.Modifiable
addBlockEntity, addBlockEntity, addBlockEntity, addBlockEntity, removeBlockEntity, removeBlockEntityMethods inherited from interface BlockEntityArchetypeVolume.Streamable
blockEntityArchetypeStreamMethods inherited from interface BlockVolume
block, block, blockPalette, fluid, fluid, highestPositionAt, highestYAt, highestYAtMethods inherited from interface BlockVolume.Modifiable
removeBlock, removeBlock, setBlock, setBlockMethods inherited from interface BlockVolume.Streamable
blockStateStreamMethods inherited from interface EntityArchetypeVolume
entityArchetypes, entityArchetypes, entityArchetypesByPositionMethods inherited from interface EntityArchetypeVolume.Modifiable
addEntity, addEntityMethods inherited from interface EntityArchetypeVolume.Streamable
entitiesByPosition, entityArchetypeStream
-
Method Details
-
transform
-
logicalCenter
Gets the logical center of a volume, considering the decimal coordinates, the block's center location would have an offset of0.5- Returns:
- The logical center of the volume
-
applyToWorld
Attempts to apply all of the contents of thisvolumeonto the targetworldwith a relativeplacement. This default implementation can be used as a guide for utilizingVolumeStreamsand their companion types.- Parameters:
target- The target worldplacement- The target origin, where the diff of relative position compared to this volume's min position as the offsetspawnContext- The context value used for processing spawn entities.
-
applyToWorld
default void applyToWorld(ServerWorld target, Vector3i placement, Supplier<SpawnType> spawnContext, BlockChangeFlag flag) Attempts to apply all of the contents of thisvolumeonto the targetworldwith a relativeplacement. This default implementation can be used as a guide for utilizingVolumeStreamsand their companion types.- Parameters:
target- The target worldplacement- The target origin, where the diff of relative position compared to this volume's min position as the offsetspawnContext- The context value used for processing spawn entities.flag- The various change flags controlling some interactions
-