Package dev.lone.itemsadder.api
Class CustomPlayer
java.lang.Object
dev.lone.itemsadder.api.CustomEntity
dev.lone.itemsadder.api.CustomPlayer
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.lone.itemsadder.api.CustomEntity
CustomEntity.Bone, CustomEntity.MountBone -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable CustomPlayerbyAlreadySpawned(org.bukkit.entity.Entity entity) booleanplayAnimation(String emoteName) Plays an animationstatic voidstatic CustomPlayerSpawns a custom player entityvoidStops the currently playing animationstatic voidstopEmote(org.bukkit.entity.Player player) Methods inherited from class dev.lone.itemsadder.api.CustomEntity
addPassenger, addViewer, convert, convert, convert, convert, destroy, getAnimationsNames, getAnimationsNames, getBone, getBone, getBones, getEntity, getFrustumCulling, getId, getLocation, getLoot, getLoot, getLoot, getMountBoneByPassenger, getMountBones, getNamespace, getNamespacedID, getNamespacedIdsInRegistry, getPassengers, getType, hasAnimation, hasAnimation, hasMountBones, hasPassenger, hasPassenger, isCustomEntity, isCustomEntity, isInRegistry, isPlayingAnimation, playAnimation, playDamageEffect, removePassenger, removeViewer, respawn, setColorAllBones, setEnchantedAllBones, setFrustumCulling, setPassenger, spawn, spawn, spawn, spawn, teleport
-
Constructor Details
-
CustomPlayer
public CustomPlayer()
-
-
Method Details
-
getPlayerName
-
playAnimation
Description copied from class:CustomEntityPlays an animation- Overrides:
playAnimationin classCustomEntity- Parameters:
emoteName- the animation name- Returns:
- true if the animation was played, otherwise false
-
stopAnimation
public void stopAnimation()Description copied from class:CustomEntityStops the currently playing animation- Overrides:
stopAnimationin classCustomEntity
-
spawn
Spawns a custom player entity- Parameters:
playerSkin- can be a player name, a mineskin.org url and a signed texture string.location- the location where you want to spawn the entity- Returns:
- the entity wrapper
-
byAlreadySpawned
-
playEmote
-
stopEmote
public static void stopEmote(org.bukkit.entity.Player player)
-