Level
endstone.level
¶
Classes:
Name | Description |
---|---|
Chunk |
Represents a chunk of blocks. |
Dimension |
Represents a dimension within a Level. |
Level |
|
Location |
Represents a 3-dimensional location in a dimension within a level. |
Chunk
¶
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_block_at |
|
get_highest_block_at |
|
get_highest_block_y_at |
Gets the highest non-empty (impassable) coordinate at the given coordinates. |
Attributes:
Name | Type | Description |
---|---|---|
CUSTOM |
Type
|
|
NETHER |
Type
|
|
OVERWORLD |
Type
|
|
THE_END |
Type
|
|
level |
Level
|
Gets the level to which this dimension belongs |
loaded_chunks |
list[Chunk]
|
Gets a list of all loaded Chunks |
name |
str
|
Gets the name of this dimension |
type |
Type
|
Gets the type of this dimension |
Type
¶
drop_item
¶
Drops an item at the specified Location
get_block_at
¶
Gets the Block at the given Location
get_block_at(
x: SupportsInt, y: SupportsInt, z: SupportsInt
) -> Block
Gets the Block at the given coordinates
get_highest_block_at
¶
Gets the highest non-empty (impassable) block at the given Location.
get_highest_block_at(
x: SupportsInt, z: SupportsInt
) -> Block
Gets the highest non-empty (impassable) block at the given coordinates.
get_highest_block_y_at
¶
get_highest_block_y_at(
x: SupportsInt, z: SupportsInt
) -> int
Gets the highest non-empty (impassable) coordinate at the given coordinates.
Level
¶
Methods:
Name | Description |
---|---|
get_dimension |
Gets the dimension with the given name. |
Attributes:
Name | Type | Description |
---|---|---|
actors |
list[Actor]
|
Get a list of all actors in this level |
dimensions |
list[Dimension]
|
Gets a list of all dimensions within this level. |
name |
str
|
Gets the unique name of this level |
seed |
int
|
Gets the Seed for this level. |
time |
int
|
Gets and sets the relative in-game time on the server |
Location
¶
Location(
x: SupportsFloat,
y: SupportsFloat,
z: SupportsFloat,
pitch: SupportsFloat = 0.0,
yaw: SupportsFloat = 0.0,
dimension: Dimension = None,
)
Bases: Vector
Represents a 3-dimensional location in a dimension within a level.
Attributes:
Name | Type | Description |
---|---|---|
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 |
pitch |
float
|
The pitch of this location, measured in degrees. |
yaw |
float
|
The yaw of this location, measured in degrees. |
block_x
property
¶
block_x: int
Gets the floored value of the X component, indicating the block that this location is contained with.
block_y
property
¶
block_y: int
Gets the floored value of the Y component, indicating the block that this location is contained with.