endstone.level
Classes
classChunk
Chunk()Represents a chunk of blocks.
Attributes
classDimension
Dimension()Represents a dimension within a Level.
Classes
| Name | Description |
|---|---|
Type | Represents various dimension types. |
Methods
| Name | Description |
|---|---|
drop_item | Drops an item at the specified Location |
get_highest_block_y_at | Gets the highest non-empty (impassable) coordinate at the given coordinates. |
spawn_actor | Creates an actor at the given Location |
Attributes
attrCUSTOM
CUSTOMattrNETHER
NETHERattrOVERWORLD
OVERWORLDattrTHE_END
THE_ENDattractorsproperty
Get a list of all actors in this dimension
attrlevelproperty
level: LevelGets the level to which this dimension belongs
attrloaded_chunksproperty
Gets a list of all loaded Chunks
attrnameproperty
name: strGets the name of this dimension
attrtypeproperty
type: TypeGets the type of this dimension
classType
Bases: Enum
Type()Represents various dimension types.
methdrop_item
Drops an item at the specified Location
methget_highest_block_y_at
Gets the highest non-empty (impassable) coordinate at the given coordinates.
methspawn_actor
Creates an actor at the given Location
classLevel
Level()Methods
| Name | Description |
|---|---|
get_dimension | Gets the dimension with the given name. |
Attributes
attractorsproperty
Get a list of all actors in this level
attrdimensionsproperty
Gets a list of all dimensions within this level.
attrnameproperty
name: strGets the unique name of this level
attrseedproperty
seed: intGets the Seed for this level.
attrtimeproperty
time: intGets and sets the relative in-game time on the server
methget_dimension
Gets the dimension with the given name.
classLocation
Represents a 3-dimensional location in a dimension within a level.
Methods
| Name | Description |
|---|---|
distance | The distance between this Location and another |
distance_squared | The squared distance between this Location and another |
normalize_pitch | Normalizes the given pitch angle to a value between |
normalize_yaw | Normalizes the given yaw angle to a value between |
zero | Zero this vector's components. |
Attributes
| Name | Type | Description |
|---|---|---|
block | Block | Gets the block at the represented location |
block_x | int | Gets the floored value of the X component, indicating the block that this location is contained with. |
block_y | int | Gets the floored value of the Y component, indicating the block that this location is contained with. |
block_z | int | Gets the floored value of the Z component, indicating the block that this location is contained with. |
dimension | Dimension | The Dimension that contains this position |
direction | Vector | Gets or sets a vector of yaw and pitch that points in the direction of the vector |
length | float | The magnitude of the Location |
length_squared | float | The squared magnitude of the Location |
pitch | float | The pitch of this location, measured in degrees. |
x | float | The x-coordinate of this location |
y | float | The y-coordinate of this location |
yaw | float | The yaw of this location, measured in degrees. |
z | float | The z-coordinate of this location |
attrblockproperty
block: BlockGets the block at the represented location
attrblock_xproperty
block_x: intGets the floored value of the X component, indicating the block that this location is contained with.
attrblock_yproperty
block_y: intGets the floored value of the Y component, indicating the block that this location is contained with.
attrblock_zproperty
block_z: intGets the floored value of the Z component, indicating the block that this location is contained with.
attrdimensionproperty
dimension: DimensionThe Dimension that contains this position
attrdirectionproperty
direction: VectorGets or sets a vector of yaw and pitch that points in the direction of the vector
attrlengthproperty
length: floatThe magnitude of the Location
attrlength_squaredproperty
length_squared: floatThe squared magnitude of the Location
attrpitchproperty
pitch: floatThe pitch of this location, measured in degrees.
attrxproperty
x: floatThe x-coordinate of this location
attryproperty
y: floatThe y-coordinate of this location
attryawproperty
yaw: floatThe yaw of this location, measured in degrees.
attrzproperty
z: floatThe z-coordinate of this location
methdistance
The distance between this Location and another
methdistance_squared
The squared distance between this Location and another
methnormalize_pitchstaticmethod
Normalizes the given pitch angle to a value between +/-90 degrees.
methnormalize_yawstaticmethod
Normalizes the given yaw angle to a value between +/-180 degrees.
methzero
zero() -> LocationZero this vector's components.