Package net.tnemc.plugincore.sponge.impl
Class SpongePlayerProvider
java.lang.Object
net.tnemc.menu.sponge8.SpongePlayer
net.tnemc.plugincore.sponge.impl.SpongePlayerProvider
- All Implemented Interfaces:
net.tnemc.menu.core.compatibility.MenuPlayer
,PlayerProvider
public class SpongePlayerProvider
extends net.tnemc.menu.sponge8.SpongePlayer
implements PlayerProvider
The Sponge implementation of the
PlayerProvider
.- Since:
- 0.1.2.0
- Author:
- creatorfromhell
-
Constructor Summary
ConstructorsConstructorDescriptionSpongePlayerProvider
(org.spongepowered.api.entity.living.player.User user, org.spongepowered.plugin.PluginContainer container) -
Method Summary
Modifier and TypeMethodDescriptionbiome()
Used to get the name of the biome this player is currently in.Method for retrieving player permissions.int
getExp()
Used to get the amount of experience this player has.int
Used to get the amount of experience levels this player has.Used to get the location of this player.getName()
Used to get the name of this player.void
void
message
(MessageData messageData) Used to send a message to this command source.void
setExp
(int exp) Used to set the amount of experience this player has.void
setExpLevel
(int level) Used to set the amount of experience levels this player has.world()
Used to get the name of the world this player is currently in.Methods inherited from class net.tnemc.menu.sponge8.SpongePlayer
hasPermission, identifier
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.tnemc.menu.core.compatibility.MenuPlayer
identifier, status, viewer
Methods inherited from interface net.tnemc.plugincore.core.compatibility.PlayerProvider
hasPermission
-
Constructor Details
-
SpongePlayerProvider
public SpongePlayerProvider(org.spongepowered.api.entity.living.player.User user, org.spongepowered.plugin.PluginContainer container)
-
-
Method Details
-
getName
Used to get the name of this player.- Specified by:
getName
in interfacePlayerProvider
- Returns:
- The name of this player.
-
getLocation
Used to get the location of this player.- Specified by:
getLocation
in interfacePlayerProvider
- Returns:
- The location of this player.
-
world
Description copied from interface:PlayerProvider
Used to get the name of the world this player is currently in.- Specified by:
world
in interfacePlayerProvider
- Returns:
- The name of the world.
-
biome
Description copied from interface:PlayerProvider
Used to get the name of the biome this player is currently in.- Specified by:
biome
in interfacePlayerProvider
- Returns:
- The name of the biome.
-
getExp
Used to get the amount of experience this player has.- Specified by:
getExp
in interfacePlayerProvider
- Returns:
- The amount of levels this player has.
-
setExp
Used to set the amount of experience this player has.- Specified by:
setExp
in interfacePlayerProvider
- Parameters:
exp
- The amount of experience to set for this player.
-
getExpLevel
Used to get the amount of experience levels this player has.- Specified by:
getExpLevel
in interfacePlayerProvider
- Returns:
- The amount of experience levels this player has.
-
setExpLevel
Used to set the amount of experience levels this player has.- Specified by:
setExpLevel
in interfacePlayerProvider
- Parameters:
level
- The amount of experience levels to set for this player.
-
inventory
- Specified by:
inventory
in interfacenet.tnemc.menu.core.compatibility.MenuPlayer
- Specified by:
inventory
in interfacePlayerProvider
- Overrides:
inventory
in classnet.tnemc.menu.sponge8.SpongePlayer
-
getEffectivePermissions
Method for retrieving player permissions.- Specified by:
getEffectivePermissions
in interfacePlayerProvider
- Returns:
- A list of permission strings.
-
message
Used to send a message to this command source.- Specified by:
message
in interfacePlayerProvider
- Parameters:
messageData
- The message data to utilize for this translation.
-
message
- Specified by:
message
in interfacenet.tnemc.menu.core.compatibility.MenuPlayer
- Overrides:
message
in classnet.tnemc.menu.sponge8.SpongePlayer
-