Class TypeConversionServiceImpl

java.lang.Object
com.github.shynixn.structureblocklib.bukkit.v1_10_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 Details

    • TypeConversionServiceImpl

      public TypeConversionServiceImpl()
  • Method Details

    • convertToStructureMode

      public com.github.shynixn.structureblocklib.api.enumeration.StructureMode convertToStructureMode(Object handle)
      Converts the given handle to a StructureMode.
      Specified by:
      convertToStructureMode in interface com.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 a StructureMirror.
      Specified by:
      convertToStructureMirror in interface com.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 a StructureRotation.
      Specified by:
      convertToStructureRotation in interface com.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 given StructureMode to a handle.
      Specified by:
      convertToStructureModeHandle in interface com.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 given StructureMirror to a handle.
      Specified by:
      convertToMirrorHandle in interface com.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 given StructureRotation to a handle.
      Specified by:
      convertToRotationHandle in interface com.github.shynixn.structureblocklib.api.service.TypeConversionService
      Parameters:
      rotation - StructureRotation.
      Returns:
      NMS handle.