Class TypeConversionServiceImpl
java.lang.Object
com.github.shynixn.structureblocklib.bukkit.v1_17_R1.TypeConversionServiceImpl
- All Implemented Interfaces:
com.github.shynixn.structureblocklib.api.service.TypeConversionService
public class TypeConversionServiceImpl
extends Object
implements com.github.shynixn.structureblocklib.api.service.TypeConversionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToMirrorHandle(com.github.shynixn.structureblocklib.api.enumeration.StructureMirror mirror)Converts the givenStructureMirrorto a handle.convertToRotationHandle(com.github.shynixn.structureblocklib.api.enumeration.StructureRotation rotation)Converts the givenStructureRotationto a handle.com.github.shynixn.structureblocklib.api.enumeration.StructureMirrorconvertToStructureMirror(Object handle)Converts the given handle to aStructureMirror.com.github.shynixn.structureblocklib.api.enumeration.StructureModeconvertToStructureMode(Object handle)Converts the given handle to aStructureMode.convertToStructureModeHandle(com.github.shynixn.structureblocklib.api.enumeration.StructureMode mode)Converts the givenStructureModeto a handle.com.github.shynixn.structureblocklib.api.enumeration.StructureRotationconvertToStructureRotation(Object handle)Converts the given handle to aStructureRotation.
-
Constructor Details
-
TypeConversionServiceImpl
public TypeConversionServiceImpl()
-
-
Method Details
-
convertToStructureMode
public com.github.shynixn.structureblocklib.api.enumeration.StructureMode convertToStructureMode(Object handle)Converts the given handle to aStructureMode.- Specified by:
convertToStructureModein interfacecom.github.shynixn.structureblocklib.api.service.TypeConversionService- Parameters:
handle- NMS handle.- Returns:
StructureMode.
-
convertToStructureMirror
public com.github.shynixn.structureblocklib.api.enumeration.StructureMirror convertToStructureMirror(Object handle)Converts the given handle to aStructureMirror.- Specified by:
convertToStructureMirrorin interfacecom.github.shynixn.structureblocklib.api.service.TypeConversionService- Parameters:
handle- NMS handle.- Returns:
StructureMirror.
-
convertToStructureRotation
public com.github.shynixn.structureblocklib.api.enumeration.StructureRotation convertToStructureRotation(Object handle)Converts the given handle to aStructureRotation.- Specified by:
convertToStructureRotationin interfacecom.github.shynixn.structureblocklib.api.service.TypeConversionService- Parameters:
handle- NMS handle.- Returns:
StructureRotation.
-
convertToStructureModeHandle
public Object convertToStructureModeHandle(com.github.shynixn.structureblocklib.api.enumeration.StructureMode mode)Converts the givenStructureModeto a handle.- Specified by:
convertToStructureModeHandlein interfacecom.github.shynixn.structureblocklib.api.service.TypeConversionService- Parameters:
mode-StructureMode.- Returns:
- NMS handle.
-
convertToMirrorHandle
public Object convertToMirrorHandle(com.github.shynixn.structureblocklib.api.enumeration.StructureMirror mirror)Converts the givenStructureMirrorto a handle.- Specified by:
convertToMirrorHandlein interfacecom.github.shynixn.structureblocklib.api.service.TypeConversionService- Parameters:
mirror-StructureMirror.- Returns:
- NMS handle.
-
convertToRotationHandle
public Object convertToRotationHandle(com.github.shynixn.structureblocklib.api.enumeration.StructureRotation rotation)Converts the givenStructureRotationto a handle.- Specified by:
convertToRotationHandlein interfacecom.github.shynixn.structureblocklib.api.service.TypeConversionService- Parameters:
rotation-StructureRotation.- Returns:
- NMS handle.
-