Skip to Content
⚠ Under Construction
ReferencePython APIendstone.util

endstone.util

Classes:

NameDescription
SocketAddressRepresents an IP Socket Address (hostname + port number).
VectorRepresents a 3-dimensional vector.

SocketAddress

SocketAddress()

Represents an IP Socket Address (hostname + port number).

Attributes:

NameTypeDescription
hostnamestrGets the hostname.
portintGets the port number.

hostname

hostname: str

Gets the hostname.

port

port: int

Gets the port number.

Vector

Vector()

Represents a 3-dimensional vector.

Methods:

NameDescription
distanceThe distance between this Vector and another
distance_squaredThe squared distance between this Vector and another

Attributes:

NameTypeDescription
lengthfloatThe magnitude of the Vector
length_squaredfloatThe squared magnitude of the Vector
xfloatThe X component of the vector
yfloatThe Y component of the vector
zfloatThe Z component of the vector

length

length: float

The magnitude of the Vector

length_squared

length_squared: float

The squared magnitude of the Vector

x

x: float

The X component of the vector

y

y: float

The Y component of the vector

z

z: float

The Z component of the vector

distance

distance(other:Vector) -> float

The distance between this Vector and another

distance_squared

distance_squared(other:Vector) -> float

The squared distance between this Vector and another

Last updated on