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 TypeMethodDescriptionvoiddispatchCUIEvent(CUIEvent event) Activate the event of displaying the selection boundaries.Getting a region that is resized.Getting a cuboid of dynamic selection.longGetting the time when the player was shown the boundariesorg.spongepowered.math.vector.Vector3iGetting 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.voidYou don't have to use that.booleanisDrag()Checking whether the player is using dynamic selection.booleanChecking if the player will be sent packets to display the boundaries by the WECui mod.voidsetClaimResizing(Region claimResizing) Specifies the region that will be resized.voidsetDrag(boolean isDrag) Setting the status of the dynamic selection.voidsetDragCuboid(Cuboid dragCuboid) Setting cuboid for dynamic selection.voidsetLastTimeSendBorders(long lastTimeSendBorders) Setting the last time of the boundaries displayvoidsetLastWandLocation(org.spongepowered.math.vector.Vector3i lastWandLocation) Getting the last position that was selected by the wand tool.voidsetSupportCUI(boolean cuiSupport) If sets this to false, the player will not receive packets for display the boundaries by the WECui mod.voidsetVisualClaimId(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:CUIUserActivate the event of displaying the selection boundaries.- Specified by:
dispatchCUIEventin interfaceCUIUser
-
getPlayer
Description copied from interface:CUIUserGetting player -
getLastTimeSendBorders
public long getLastTimeSendBorders()Description copied from interface:CUIUserGetting the time when the player was shown the boundaries- Specified by:
getLastTimeSendBordersin interfaceCUIUser
-
setLastTimeSendBorders
public void setLastTimeSendBorders(long lastTimeSendBorders) Description copied from interface:CUIUserSetting the last time of the boundaries display- Specified by:
setLastTimeSendBordersin interfaceCUIUser
-
isDrag
public boolean isDrag()Description copied from interface:CUIUserChecking whether the player is using dynamic selection. -
setDrag
public void setDrag(boolean isDrag) Description copied from interface:CUIUserSetting the status of the dynamic selection. -
getDragCuboid
Description copied from interface:CUIUserGetting a cuboid of dynamic selection.- Specified by:
getDragCuboidin interfaceCUIUser
-
setDragCuboid
Description copied from interface:CUIUserSetting cuboid for dynamic selection.- Specified by:
setDragCuboidin interfaceCUIUser
-
getClaimResizing
Description copied from interface:CUIUserGetting a region that is resized. It can be zero.- Specified by:
getClaimResizingin interfaceCUIUser- Returns:
Regionor null
-
setClaimResizing
Description copied from interface:CUIUserSpecifies the region that will be resized.- Specified by:
setClaimResizingin interfaceCUIUser
-
getLastWandLocation
public org.spongepowered.math.vector.Vector3i getLastWandLocation()Description copied from interface:CUIUserGetting the last position that was selected by the wand tool.- Specified by:
getLastWandLocationin interfaceCUIUser- Returns:
Vector3i
-
setLastWandLocation
public void setLastWandLocation(org.spongepowered.math.vector.Vector3i lastWandLocation) Description copied from interface:CUIUserGetting the last position that was selected by the wand tool.- Specified by:
setLastWandLocationin interfaceCUIUser- Parameters:
lastWandLocation- -Vector3i
-
getVisualClaimId
Description copied from interface:CUIUserGetting the UUID of the region whose borders were shown to the player.- Specified by:
getVisualClaimIdin interfaceCUIUser- Returns:
- -
UUID
-
setVisualClaimId
Description copied from interface:CUIUserSetting the UUID of the region, the boundaries of which will be shown to the player.- Specified by:
setVisualClaimIdin interfaceCUIUser- Parameters:
visualClaimId- -UUID
-
isSupportCUI
public boolean isSupportCUI()Description copied from interface:CUIUserChecking if the player will be sent packets to display the boundaries by the WECui mod.- Specified by:
isSupportCUIin interfaceCUIUser
-
setSupportCUI
public void setSupportCUI(boolean cuiSupport) Description copied from interface:CUIUserIf 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:
setSupportCUIin interfaceCUIUser
-
handleCUIInitializationMessage
Description copied from interface:CUIUserYou don't have to use that.- Specified by:
handleCUIInitializationMessagein interfaceCUIUser
-