Class CUIUserImpl

java.lang.Object
sawfowl.regionguard.implementsapi.worldedit.CUIUserImpl
All Implemented Interfaces:
CUIUser

public class CUIUserImpl extends Object implements CUIUser
  • Constructor Details

    • CUIUserImpl

      public CUIUserImpl(org.spongepowered.api.entity.living.player.server.ServerPlayer player)
    • CUIUserImpl

      public CUIUserImpl(UUID uuid)
  • Method Details

    • dispatchCUIEvent

      public void dispatchCUIEvent(CUIEvent event)
      Description copied from interface: CUIUser
      Activate the event of displaying the selection boundaries.
      Specified by:
      dispatchCUIEvent in interface CUIUser
    • getPlayer

      public Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer> getPlayer()
      Description copied from interface: CUIUser
      Getting player
      Specified by:
      getPlayer in interface CUIUser
    • getLastTimeSendBorders

      public long getLastTimeSendBorders()
      Description copied from interface: CUIUser
      Getting the time when the player was shown the boundaries
      Specified by:
      getLastTimeSendBorders in interface CUIUser
    • setLastTimeSendBorders

      public void setLastTimeSendBorders(long lastTimeSendBorders)
      Description copied from interface: CUIUser
      Setting the last time of the boundaries display
      Specified by:
      setLastTimeSendBorders in interface CUIUser
    • isDrag

      public boolean isDrag()
      Description copied from interface: CUIUser
      Checking whether the player is using dynamic selection.
      Specified by:
      isDrag in interface CUIUser
    • setDrag

      public void setDrag(boolean isDrag)
      Description copied from interface: CUIUser
      Setting the status of the dynamic selection.
      Specified by:
      setDrag in interface CUIUser
    • getDragCuboid

      public Cuboid getDragCuboid()
      Description copied from interface: CUIUser
      Getting a cuboid of dynamic selection.
      Specified by:
      getDragCuboid in interface CUIUser
    • setDragCuboid

      public void setDragCuboid(Cuboid dragCuboid)
      Description copied from interface: CUIUser
      Setting cuboid for dynamic selection.
      Specified by:
      setDragCuboid in interface CUIUser
    • getClaimResizing

      public Region getClaimResizing()
      Description copied from interface: CUIUser
      Getting a region that is resized. It can be zero.
      Specified by:
      getClaimResizing in interface CUIUser
      Returns:
      Region or null
    • setClaimResizing

      public void setClaimResizing(Region claimResizing)
      Description copied from interface: CUIUser
      Specifies the region that will be resized.
      Specified by:
      setClaimResizing in interface CUIUser
    • getLastWandLocation

      public org.spongepowered.math.vector.Vector3i getLastWandLocation()
      Description copied from interface: CUIUser
      Getting the last position that was selected by the wand tool.
      Specified by:
      getLastWandLocation in interface CUIUser
      Returns:
      Vector3i
    • setLastWandLocation

      public void setLastWandLocation(org.spongepowered.math.vector.Vector3i lastWandLocation)
      Description copied from interface: CUIUser
      Getting the last position that was selected by the wand tool.
      Specified by:
      setLastWandLocation in interface CUIUser
      Parameters:
      lastWandLocation - - Vector3i
    • getVisualClaimId

      public UUID getVisualClaimId()
      Description copied from interface: CUIUser
      Getting the UUID of the region whose borders were shown to the player.
      Specified by:
      getVisualClaimId in interface CUIUser
      Returns:
      - UUID
    • setVisualClaimId

      public void setVisualClaimId(UUID visualClaimId)
      Description copied from interface: CUIUser
      Setting the UUID of the region, the boundaries of which will be shown to the player.
      Specified by:
      setVisualClaimId in interface CUIUser
      Parameters:
      visualClaimId - - UUID
    • isSupportCUI

      public boolean isSupportCUI()
      Description copied from interface: CUIUser
      Checking if the player will be sent packets to display the boundaries by the WECui mod.
      Specified by:
      isSupportCUI in interface CUIUser
    • setSupportCUI

      public void setSupportCUI(boolean cuiSupport)
      Description copied from interface: CUIUser
      If sets this to false, the player will not receive packets for display the boundaries by the WECui mod. If a player has the right to see boundaries, when the player logs into the server, plugin will attempt to verify that the player has the WECui mod.
      Specified by:
      setSupportCUI in interface CUIUser
    • handleCUIInitializationMessage

      public void handleCUIInitializationMessage(String text)
      Description copied from interface: CUIUser
      You don't have to use that.
      Specified by:
      handleCUIInitializationMessage in interface CUIUser