Interface StructurePlaceMeta


public interface StructurePlaceMeta
  • Method Details

    • getLocation

      @NotNull @NotNull Position getLocation()
      Gets the source Location.
      Returns:
      location.
    • getProcessors

      @NotNull @Deprecated @NotNull List<Function<?,Boolean>> getProcessors()
      Deprecated.
      Deprecated, use getBlockProcessors instead.
    • getBlockProcessors

      @NotNull @NotNull List<Function<?,Boolean>> getBlockProcessors()
      Gets the block processors when placing this structure.
      Returns:
      processors.
    • getEntityProcessors

      @NotNull @NotNull List<Function<?,Boolean>> getEntityProcessors()
      Gets the Entity processors when placing this structure.
      Returns:
      processors.
    • isIncludeEntitiesEnabled

      boolean isIncludeEntitiesEnabled()
      Should entities be loaded. Default false.
      Returns:
      flag.
    • isIncludeBlockEnabled

      boolean isIncludeBlockEnabled()
      Should blocks be loaded. Default false.
      Returns:
      flag.
    • getMirrorType

      StructureMirror getMirrorType()
      Gets the target mirror type. Default StructureMirror.NONE.
      Returns:
      StructureMirror.
    • getRotationType

      StructureRotation getRotationType()
      Gets the target rotation type. Default StructureRotation.NONE.
      Returns:
      StructureRotation.
    • getIntegrity

      float getIntegrity()
      Gets the target integrity. Default 1.0. 1.0 Every block which is present in the structure file is placed in the world. 1.0 Blocks get randomly removed by loading depending on the given getSeed.
      Returns:
      integrity.
    • getSeed

      long getSeed()
      Gets the target seed. Default 0L. The seed is used to randomly remove blocks if the integrity getIntegrity is less than 1.0.
      Returns:
      seed.