Class CUIUserImpl
java.lang.Object
sawfowl.regionguard.implementsapi.worldedit.CUIUserImpl
- All Implemented Interfaces:
CUIUser
-
Constructor Summary
ConstructorsConstructorDescriptionCUIUserImpl
(UUID uuid) CUIUserImpl
(org.spongepowered.api.entity.living.player.server.ServerPlayer player) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatchCUIEvent
(CUIEvent event) Activate the event of displaying the selection boundaries.Getting a region that is resized.Getting a cuboid of dynamic selection.long
Getting the time when the player was shown the boundariesorg.spongepowered.math.vector.Vector3i
Getting the last position that was selected by the wand tool.Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer>
Getting playerGetting the UUID of the region whose borders were shown to the player.void
You don't have to use that.boolean
isDrag()
Checking whether the player is using dynamic selection.boolean
Checking if the player will be sent packets to display the boundaries by the WECui mod.void
setClaimResizing
(Region claimResizing) Specifies the region that will be resized.void
setDrag
(boolean isDrag) Setting the status of the dynamic selection.void
setDragCuboid
(Cuboid dragCuboid) Setting cuboid for dynamic selection.void
setLastTimeSendBorders
(long lastTimeSendBorders) Setting the last time of the boundaries displayvoid
setLastWandLocation
(org.spongepowered.math.vector.Vector3i lastWandLocation) Getting the last position that was selected by the wand tool.void
setSupportCUI
(boolean cuiSupport) If sets this to false, the player will not receive packets for display the boundaries by the WECui mod.void
setVisualClaimId
(UUID visualClaimId) Setting the UUID of the region, the boundaries of which will be shown to the player.
-
Constructor Details
-
CUIUserImpl
public CUIUserImpl(org.spongepowered.api.entity.living.player.server.ServerPlayer player) -
CUIUserImpl
-
-
Method Details
-
dispatchCUIEvent
Description copied from interface:CUIUser
Activate the event of displaying the selection boundaries.- Specified by:
dispatchCUIEvent
in interfaceCUIUser
-
getPlayer
Description copied from interface:CUIUser
Getting player -
getLastTimeSendBorders
public long getLastTimeSendBorders()Description copied from interface:CUIUser
Getting the time when the player was shown the boundaries- Specified by:
getLastTimeSendBorders
in interfaceCUIUser
-
setLastTimeSendBorders
public void setLastTimeSendBorders(long lastTimeSendBorders) Description copied from interface:CUIUser
Setting the last time of the boundaries display- Specified by:
setLastTimeSendBorders
in interfaceCUIUser
-
isDrag
public boolean isDrag()Description copied from interface:CUIUser
Checking whether the player is using dynamic selection. -
setDrag
public void setDrag(boolean isDrag) Description copied from interface:CUIUser
Setting the status of the dynamic selection. -
getDragCuboid
Description copied from interface:CUIUser
Getting a cuboid of dynamic selection.- Specified by:
getDragCuboid
in interfaceCUIUser
-
setDragCuboid
Description copied from interface:CUIUser
Setting cuboid for dynamic selection.- Specified by:
setDragCuboid
in interfaceCUIUser
-
getClaimResizing
Description copied from interface:CUIUser
Getting a region that is resized. It can be zero.- Specified by:
getClaimResizing
in interfaceCUIUser
- Returns:
Region
or null
-
setClaimResizing
Description copied from interface:CUIUser
Specifies the region that will be resized.- Specified by:
setClaimResizing
in interfaceCUIUser
-
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 interfaceCUIUser
- 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 interfaceCUIUser
- Parameters:
lastWandLocation
- -Vector3i
-
getVisualClaimId
Description copied from interface:CUIUser
Getting the UUID of the region whose borders were shown to the player.- Specified by:
getVisualClaimId
in interfaceCUIUser
- Returns:
- -
UUID
-
setVisualClaimId
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 interfaceCUIUser
- 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 interfaceCUIUser
-
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 interfaceCUIUser
-
handleCUIInitializationMessage
Description copied from interface:CUIUser
You don't have to use that.- Specified by:
handleCUIInitializationMessage
in interfaceCUIUser
-