Interface IPartyMemberDynamicInfoSyncableAPI
public interface IPartyMemberDynamicInfoSyncableAPI
API for the dynamic info (location) of a party member
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocation
Gets the ID of the dimension that this player is currently in.Gets the party/ally player's UUID.double
getX()
Gets the X coordinate of the current position of this player in the world.double
getY()
Gets the Y coordinate of the current position of this player in the world.double
getZ()
Gets the Z coordinate of the current position of this player in the world.
-
Method Details
-
getPlayerId
Gets the party/ally player's UUID.- Returns:
- the party/ally player's UUID, not null
-
getX
double getX()Gets the X coordinate of the current position of this player in the world.The player position is 0,0,0 on the server side before the first update.
- Returns:
- the X coordinate of the player's position
-
getY
double getY()Gets the Y coordinate of the current position of this player in the world.The player position is 0,0,0 on the server side before the first update.
- Returns:
- the Y coordinate of the player's position
-
getZ
double getZ()Gets the Z coordinate of the current position of this player in the world.The player position is 0,0,0 on the server side before the first update.
- Returns:
- the Z coordinate of the player's position
-
getDimension
@Nullable net.minecraft.resources.ResourceLocation getDimension()Gets the ID of the dimension that this player is currently in.- Returns:
- the dimension ID for this player, null on server side before the first update
-