Package me.neznamy.tab.api
Interface ArmorStand
public interface ArmorStand
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()DeSpawns armor stand for everyonevoidDeSpawns armor stand for specified playerintReturns entity ID of this armor standdoubleReturns offset of the armor standReturns property for armor stand's namebooleanReturns true if offset is static, false if notvoidrefresh()Updates armor stand's name if neededvoidvoidsetOffset(double offset) Changes offset of the armor standvoidsneak(boolean sneaking) Changes sneaking flag and sends packets to everyone in rangevoidSpawns armor stand for specified playervoidteleport()Teleports armor stand to owner's current location for everyone in rangevoidTeleports armor stand to owner's current location for specified playervoidupdateVisibility(boolean force) Updates visibility if needed
-
Method Details
-
hasStaticOffset
boolean hasStaticOffset()Returns true if offset is static, false if not- Returns:
- true if static, false if dynamic
-
setOffset
void setOffset(double offset) Changes offset of the armor stand- Parameters:
offset- new offset
-
getOffset
double getOffset()Returns offset of the armor stand- Returns:
- offset from base
-
getProperty
Property getProperty()Returns property for armor stand's name- Returns:
- property for armor stand's name
-
teleport
void teleport()Teleports armor stand to owner's current location for everyone in range -
teleport
Teleports armor stand to owner's current location for specified player- Parameters:
viewer- player to send packet to
-
sneak
void sneak(boolean sneaking) Changes sneaking flag and sends packets to everyone in range- Parameters:
sneaking- new sneaking status
-
destroy
void destroy()DeSpawns armor stand for everyone -
destroy
DeSpawns armor stand for specified player- Parameters:
viewer- player to send packet to
-
refresh
void refresh()Updates armor stand's name if needed -
updateVisibility
void updateVisibility(boolean force) Updates visibility if needed- Parameters:
force- if refresh should be forced
-
getEntityId
int getEntityId()Returns entity ID of this armor stand- Returns:
- entity ID of this armor stand
-
spawn
Spawns armor stand for specified player- Parameters:
viewer- player to spawn for
-
respawn
-