Class WorldEditAPI

java.lang.Object
java.lang.Thread
sawfowl.regionguard.implementsapi.worldedit.WorldEditAPI
All Implemented Interfaces:
Runnable, WorldEditCUIAPI

public class WorldEditAPI extends Thread implements WorldEditCUIAPI
  • Constructor Details

    • WorldEditAPI

      public WorldEditAPI(RegionGuard plugin)
  • Method Details

    • updateCuiDataMaps

      public void updateCuiDataMaps()
    • getOrCreateUser

      public CUIUser getOrCreateUser(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: WorldEditCUIAPI
      Creating or getting a WECui user.
      Specified by:
      getOrCreateUser in interface WorldEditCUIAPI
    • getOrCreateUser

      public CUIUser getOrCreateUser(UUID uuid)
      Description copied from interface: WorldEditCUIAPI
      Creating or getting a WECui user.
      Specified by:
      getOrCreateUser in interface WorldEditCUIAPI
    • removeUser

      public void removeUser(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: WorldEditCUIAPI
      Removing a WECui user.
      Specified by:
      removeUser in interface WorldEditCUIAPI
    • visualizeRegion

      public void visualizeRegion(Region region, org.spongepowered.api.entity.living.player.server.ServerPlayer player, boolean investigating, boolean tempRegion)
      Description copied from interface: WorldEditCUIAPI
      Display the region boundaries.
      Specified by:
      visualizeRegion in interface WorldEditCUIAPI
      Parameters:
      region - - visualization region
      player - - the player who needs to display the boundaries of the region
      investigating - - checking the region type to change the color of the grid
      tempRegion - - whether the region is temporary
    • visualizeRegion

      public void visualizeRegion(Region region, org.spongepowered.math.vector.Vector3i pos1, org.spongepowered.math.vector.Vector3i pos2, org.spongepowered.api.entity.living.player.server.ServerPlayer player, CUIUser user, boolean investigating, boolean tempRegion)
      Description copied from interface: WorldEditCUIAPI
      Display the region boundaries.
      Specified by:
      visualizeRegion in interface WorldEditCUIAPI
      Parameters:
      region - - target region
      pos1 - - first position
      pos2 - - second position
      player - - the player who needs to display the boundaries of the region
      user - - WECui user
      investigating - - checking the region type to change the color of the grid
      tempRegion - - whether the region is temporary
    • visualizeRegions

      public void visualizeRegions(List<Region> regions, org.spongepowered.api.entity.living.player.server.ServerPlayer player, boolean investigating)
      Description copied from interface: WorldEditCUIAPI
      Display borders to multiple regions at the same time.
      Specified by:
      visualizeRegions in interface WorldEditCUIAPI
      Parameters:
      regions - - список регионов для отображения границ
      player - - the player who needs to display the boundaries of the regions
      investigating - - checking the region type to change the color of the grid
    • revertVisuals

      public void revertVisuals(org.spongepowered.api.entity.living.player.server.ServerPlayer player, UUID regionUniqueId)
      Description copied from interface: WorldEditCUIAPI
      Remove border highlighting.
      Specified by:
      revertVisuals in interface WorldEditCUIAPI
      Parameters:
      player - - target player
      regionUniqueId - - specify a specific region, if necessary
    • stopVisualDrag

      public void stopVisualDrag(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
      Description copied from interface: WorldEditCUIAPI
      Stop the dynamic area selection.
      Specified by:
      stopVisualDrag in interface WorldEditCUIAPI
      Parameters:
      player - - target player
    • sendVisualDrag

      public void sendVisualDrag(org.spongepowered.api.entity.living.player.server.ServerPlayer player, org.spongepowered.math.vector.Vector3i pos)
      Description copied from interface: WorldEditCUIAPI
      Dynamic selection of the area in the direction of the player's gaze.
      Specified by:
      sendVisualDrag in interface WorldEditCUIAPI
      Parameters:
      player - - target player
      pos - - position from which the selection will take place in the direction of the view
    • getTargetBlock

      public Optional<org.spongepowered.api.world.server.ServerLocation> getTargetBlock(org.spongepowered.api.entity.living.player.server.ServerPlayer player, int maxDistance)
      Description copied from interface: WorldEditCUIAPI
      Location of the block the player is looking at.
      Specified by:
      getTargetBlock in interface WorldEditCUIAPI
      Parameters:
      player - - target player
      maxDistance - - distance to find the block
      Returns: