Interface StructurePlaceMeta
public interface StructurePlaceMeta
-
Method Summary
Modifier and TypeMethodDescriptionGets the block processors when placing this structure.Gets the Entity processors when placing this structure.floatGets the target integrity.@NotNull PositionGets the source Location.Gets the target mirror type.Deprecated.Gets the target rotation type.longgetSeed()Gets the target seed.booleanShould blocks be loaded.booleanShould entities be loaded.
-
Method Details
-
getLocation
Gets the source Location.- Returns:
- location.
-
getProcessors
Deprecated.Deprecated, use getBlockProcessors instead. -
getBlockProcessors
Gets the block processors when placing this structure.- Returns:
- processors.
-
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 givengetSeed.- Returns:
- integrity.
-
getSeed
long getSeed()Gets the target seed. Default 0L. The seed is used to randomly remove blocks if the integritygetIntegrityis less than 1.0.- Returns:
- seed.
-