Class StructureReadMetaImpl
java.lang.Object
com.github.shynixn.structureblocklib.core.entity.StructureReadMetaImpl
- All Implemented Interfaces:
com.github.shynixn.structureblocklib.api.entity.StructureReadMeta
public class StructureReadMetaImpl
extends Object
implements com.github.shynixn.structureblocklib.api.entity.StructureReadMeta
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleancom.github.shynixn.structureblocklib.api.entity.Positioncom.github.shynixn.structureblocklib.api.entity.Position -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringGets the author.@NotNull com.github.shynixn.structureblocklib.api.entity.PositionGets the source Location.@NotNull com.github.shynixn.structureblocklib.api.entity.PositionGets the offset of the selection.@NotNull StringGets the name of the block type which is being used as a Structure_Void.booleanShould entities included in the saved file.
-
Field Details
-
location
public com.github.shynixn.structureblocklib.api.entity.Position location -
offset
public com.github.shynixn.structureblocklib.api.entity.Position offset -
includeEntities
public boolean includeEntities -
structureVoid
-
author
-
-
Constructor Details
-
StructureReadMetaImpl
public StructureReadMetaImpl()
-
-
Method Details
-
getLocation
@NotNull public @NotNull com.github.shynixn.structureblocklib.api.entity.Position getLocation()Gets the source Location.- Specified by:
getLocationin interfacecom.github.shynixn.structureblocklib.api.entity.StructureReadMeta- Returns:
- location.
-
getOffset
@NotNull public @NotNull com.github.shynixn.structureblocklib.api.entity.Position getOffset()Gets the offset of the selection.- Specified by:
getOffsetin interfacecom.github.shynixn.structureblocklib.api.entity.StructureReadMeta- Returns:
- offset.
-
getAuthor
Gets the author. The author is a optional meta data in the final structure file.- Specified by:
getAuthorin interfacecom.github.shynixn.structureblocklib.api.entity.StructureReadMeta- Returns:
- author.
-
isIncludeEntitiesEnabled
public boolean isIncludeEntitiesEnabled()Should entities included in the saved file. Default false.- Specified by:
isIncludeEntitiesEnabledin interfacecom.github.shynixn.structureblocklib.api.entity.StructureReadMeta- Returns:
- flag.
-
getStructureVoidTypeName
Gets the name of the block type which is being used as a Structure_Void.Default STRUCTURE_VOID in 1.10 - Latest, BARRIER_BLOCK in 1.9.
If the selected structure contains blocks with this typename. They are going to get ignored.
- Specified by:
getStructureVoidTypeNamein interfacecom.github.shynixn.structureblocklib.api.entity.StructureReadMeta- Returns:
- Name of the block type.
-