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 org.spongepowered.api.world.volume.biome.BiomeVolume
BiomeVolume.Immutable, BiomeVolume.Modifiable<M extends BiomeVolume.Modifiable<M>>, BiomeVolume.Mutable, BiomeVolume.Streamable<B extends BiomeVolume.Streamable<B>>, BiomeVolume.Unmodifiable<U extends BiomeVolume.Unmodifiable<U>>Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.archetype.block.entity.BlockEntityArchetypeVolume
BlockEntityArchetypeVolume.Immutable, BlockEntityArchetypeVolume.Modifiable<M extends BlockEntityArchetypeVolume.Modifiable<M>>, BlockEntityArchetypeVolume.Mutable, BlockEntityArchetypeVolume.Streamable<B extends BlockEntityArchetypeVolume.Streamable<B>>, BlockEntityArchetypeVolume.Unmodifiable<U extends BlockEntityArchetypeVolume.Unmodifiable<U>>Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.block.BlockVolume
BlockVolume.Immutable, BlockVolume.Modifiable<M extends BlockVolume.Modifiable<M>>, BlockVolume.Mutable, BlockVolume.Streamable<B extends BlockVolume.Streamable<B>>, BlockVolume.Unmodifiable<U extends BlockVolume.Unmodifiable<U>>Nested classes/interfaces inherited from interface org.spongepowered.api.world.volume.archetype.entity.EntityArchetypeVolume
EntityArchetypeVolume.Immutable, EntityArchetypeVolume.Modifiable<M extends EntityArchetypeVolume.Modifiable<M>>, EntityArchetypeVolume.Mutable, EntityArchetypeVolume.Streamable<B extends EntityArchetypeVolume.Streamable<B>>, EntityArchetypeVolume.Unmodifiable<U extends EntityArchetypeVolume.Unmodifiable<U>> -
Method Summary
Modifier and TypeMethodDescriptiondefault voidapplyToWorld(ServerWorld target, Vector3i placement, Supplier<SpawnType> spawnContext) 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 org.spongepowered.api.world.volume.biome.BiomeVolume
biome, biomeMethods inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolume.Modifiable
setBiome, setBiomeMethods inherited from interface org.spongepowered.api.world.volume.biome.BiomeVolume.Streamable
biomeStreamMethods inherited from interface org.spongepowered.api.world.volume.archetype.block.entity.BlockEntityArchetypeVolume
blockEntityArchetype, blockEntityArchetype, blockEntityArchetypesMethods inherited from interface org.spongepowered.api.world.volume.archetype.block.entity.BlockEntityArchetypeVolume.Modifiable
addBlockEntity, addBlockEntity, addBlockEntity, addBlockEntity, removeBlockEntity, removeBlockEntityMethods inherited from interface org.spongepowered.api.world.volume.archetype.block.entity.BlockEntityArchetypeVolume.Streamable
blockEntityArchetypeStreamMethods inherited from interface org.spongepowered.api.world.volume.block.BlockVolume
block, block, blockPalette, fluid, fluid, highestPositionAt, highestYAt, highestYAtMethods inherited from interface org.spongepowered.api.world.volume.block.BlockVolume.Modifiable
removeBlock, removeBlock, setBlock, setBlockMethods inherited from interface org.spongepowered.api.world.volume.block.BlockVolume.Streamable
blockStateStreamMethods inherited from interface org.spongepowered.api.world.volume.archetype.entity.EntityArchetypeVolume
entityArchetypes, entityArchetypes, entityArchetypesByPositionMethods inherited from interface org.spongepowered.api.world.volume.archetype.entity.EntityArchetypeVolume.Modifiable
addEntity, addEntityMethods inherited from interface org.spongepowered.api.world.volume.archetype.entity.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.
-