Interface ArchetypeVolume

    • Method Detail

      • logicalCenter

        default Vector3d logicalCenter()
        Gets the logical center of a volume, considering the decimal coordinates, the block's center location would have an offset of 0.5
        Returns:
        The logical center of the volume
      • applyToWorld

        default void applyToWorld​(ServerWorld target,
                                  Vector3i placement,
                                  java.util.function.Supplier<SpawnType> spawnContext)
        Attempts to apply all of the contents of this volume onto the target world with a relative placement. This default implementation can be used as a guide for utilizing VolumeStreams and their companion types.
        Parameters:
        target - The target world
        placement - The target origin, where the diff of relative position compared to this volume's min position as the offset
        spawnContext - The context value used for processing spawn entities.