Class McPlayer
java.lang.Object
com.shanebeestudios.nms.api.world.entity.McEntity
com.shanebeestudios.nms.api.world.entity.McPlayer
Wrapper for Minecraft Player
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.authlib.GameProfile
Get the GameProfile belonging to this playergetName()
Get the name of this playervoid
riptide
(int time) Start the riptide animation for a playervoid
Make a player touch an entitystatic McPlayer
wrap
(net.minecraft.world.entity.player.Player nmsPlayer) Wrap a Minecraft Playerstatic McPlayer
Wrap a Bukkit PlayerMethods inherited from class com.shanebeestudios.nms.api.world.entity.McEntity
getBukkitEntity, getGravity, getId, getMCLevel, wrap, wrap
-
Method Details
-
wrap
Wrap a Minecraft Player- Parameters:
nmsPlayer
- Minecraft Player to wrap- Returns:
- Wrapped player
-
wrap
Wrap a Bukkit Player- Parameters:
bukkitPlayer
- Bukkit Player to wrap- Returns:
- Wrapped player
-
getGameProfile
public com.mojang.authlib.GameProfile getGameProfile()Get the GameProfile belonging to this player- Returns:
- GameProfile of player
-
getName
Get the name of this player- Returns:
- Name of player
-
riptide
public void riptide(int time) Start the riptide animation for a player- Parameters:
time
- Ticks to riptide
-
touch
Make a player touch an entityThis only works on a few entities, ex: touching a dropped item makes the player pick it up
- Parameters:
bukkitEntity
- Entity to touch
-