amulet-core 2.0.3a3__tar.gz → 2.0.4a0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of amulet-core might be problematic. Click here for more details.
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/CMakeLists.txt +14 -4
- {amulet_core-2.0.3a3/src/amulet_core.egg-info → amulet_core-2.0.4a0}/PKG-INFO +4 -4
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/requirements.py +3 -3
- amulet_core-2.0.4a0/src/amulet/core/__init__.pyi +31 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/_version.py +3 -3
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/block/__init__.pyi +6 -3
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/block_component.pyi +1 -1
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/section_array_map.pyi +38 -15
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/entity/__init__.pyi +6 -6
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/palette/biome_palette.pyi +7 -4
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/palette/block_palette.pyi +9 -4
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/selection/box.pyi +19 -5
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/selection/group.pyi +13 -5
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/version/__init__.pyi +10 -6
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0/src/amulet_core.egg-info}/PKG-INFO +4 -4
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet_core.egg-info/SOURCES.txt +1 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet_core.egg-info/requires.txt +3 -3
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/MANIFEST.in +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/README.md +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/build_requires.py +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/get_compiler/CMakeLists.txt +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/get_compiler/__init__.py +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/pyproject.toml +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/setup.cfg +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/setup.py +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/__init__.py +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/__pyinstaller/__init__.py +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/__pyinstaller/hook-amulet.core.py +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/_amulet_core.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/_amulet_core.pyi +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/amulet_coreConfig.cmake +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/biome/__init__.pyi +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/biome/biome.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/biome/biome.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/biome/biome.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/block/block.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/block/block.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/block/block.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/block_entity/__init__.pyi +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/block_entity/block_entity.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/block_entity/block_entity.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/block_entity/block_entity.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/__init__.pyi +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/chunk.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/chunk.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/chunk.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/__init__.pyi +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/__init_chunk_components.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/biome_3d_component.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/biome_3d_component.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/block_component.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/block_component.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/block_component.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/block_entity_component.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/block_entity_component.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/section_array_map.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/section_array_map.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/section_array_map.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/dll.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/entity/entity.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/entity/entity.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/entity/entity.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/palette/__init__.pyi +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/palette/__init_palette.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/palette/biome_palette.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/palette/biome_palette.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/palette/biome_palette.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/palette/block_palette.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/palette/block_palette.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/palette/block_palette.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/py.typed +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/selection/__init__.pyi +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/selection/__init_selection.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/selection/box.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/selection/box.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/selection/group.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/selection/group.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/version/version.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/version/version.hpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/version/version.py.cpp +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet_core.egg-info/dependency_links.txt +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet_core.egg-info/entry_points.txt +0 -0
- {amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet_core.egg-info/top_level.txt +0 -0
|
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.13)
|
|
|
2
2
|
|
|
3
3
|
project(amulet_core LANGUAGES CXX)
|
|
4
4
|
|
|
5
|
+
set(amulet_core_DIR ${CMAKE_CURRENT_LIST_DIR}/src/amulet/core CACHE PATH "")
|
|
6
|
+
|
|
5
7
|
# Set C++20
|
|
6
8
|
set(CMAKE_CXX_STANDARD 20)
|
|
7
9
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
@@ -22,10 +24,18 @@ if (MSVC)
|
|
|
22
24
|
endif()
|
|
23
25
|
|
|
24
26
|
# Find libraries
|
|
25
|
-
|
|
26
|
-
find_package(
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
if (NOT TARGET pybind11::module)
|
|
28
|
+
find_package(pybind11 CONFIG REQUIRED)
|
|
29
|
+
endif()
|
|
30
|
+
if (NOT TARGET amulet_pybind11_extensions)
|
|
31
|
+
find_package(amulet_pybind11_extensions CONFIG REQUIRED)
|
|
32
|
+
endif()
|
|
33
|
+
if (NOT TARGET amulet_io)
|
|
34
|
+
find_package(amulet_io CONFIG REQUIRED)
|
|
35
|
+
endif()
|
|
36
|
+
if (NOT TARGET amulet_nbt)
|
|
37
|
+
find_package(amulet_nbt CONFIG REQUIRED)
|
|
38
|
+
endif()
|
|
29
39
|
|
|
30
40
|
# Find C++ files
|
|
31
41
|
file(REAL_PATH src SOURCE_PATH)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: amulet-core
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.4a0
|
|
4
4
|
Summary: A Python library for reading/writing Minecraft's various save formats.
|
|
5
5
|
Author: James Clare, Ben Gothard
|
|
6
6
|
Project-URL: Homepage, https://www.amuletmc.com
|
|
@@ -12,11 +12,11 @@ Requires-Python: >=3.11
|
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
Requires-Dist: amulet-compiler-target==2.0
|
|
14
14
|
Requires-Dist: amulet-compiler-version==3.0.0
|
|
15
|
-
Requires-Dist: pybind11==
|
|
15
|
+
Requires-Dist: pybind11==3.0.0
|
|
16
16
|
Requires-Dist: amulet-pybind11-extensions~=1.1.0.0a0
|
|
17
17
|
Requires-Dist: amulet-io~=1.0
|
|
18
|
-
Requires-Dist: amulet-zlib~=1.0.
|
|
19
|
-
Requires-Dist: amulet-nbt~=5.0.
|
|
18
|
+
Requires-Dist: amulet-zlib~=1.0.1.0a0
|
|
19
|
+
Requires-Dist: amulet-nbt~=5.0.1.0a0
|
|
20
20
|
Requires-Dist: numpy~=2.0
|
|
21
21
|
Provides-Extra: docs
|
|
22
22
|
Requires-Dist: Sphinx>=1.7.4; extra == "docs"
|
|
@@ -4,11 +4,11 @@ from packaging.version import Version
|
|
|
4
4
|
AMULET_COMPILER_TARGET_REQUIREMENT = "==2.0"
|
|
5
5
|
AMULET_COMPILER_VERSION_REQUIREMENT = "==3.0.0"
|
|
6
6
|
|
|
7
|
-
PYBIND11_REQUIREMENT = "==
|
|
7
|
+
PYBIND11_REQUIREMENT = "==3.0.0"
|
|
8
8
|
AMULET_PYBIND11_EXTENSIONS_REQUIREMENT = "~=1.1.0.0a0"
|
|
9
9
|
AMULET_IO_REQUIREMENT = "~=1.0"
|
|
10
|
-
AMULET_ZLIB_REQUIREMENT = "~=1.0.
|
|
11
|
-
AMULET_NBT_REQUIREMENT = "~=5.0.
|
|
10
|
+
AMULET_ZLIB_REQUIREMENT = "~=1.0.1.0a0"
|
|
11
|
+
AMULET_NBT_REQUIREMENT = "~=5.0.1.0a0"
|
|
12
12
|
NUMPY_REQUIREMENT = "~=2.0"
|
|
13
13
|
|
|
14
14
|
if os.environ.get("AMULET_PYBIND11_EXTENSIONS_REQUIREMENT", None):
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from . import (
|
|
4
|
+
_amulet_core,
|
|
5
|
+
_version,
|
|
6
|
+
biome,
|
|
7
|
+
block,
|
|
8
|
+
block_entity,
|
|
9
|
+
chunk,
|
|
10
|
+
entity,
|
|
11
|
+
palette,
|
|
12
|
+
selection,
|
|
13
|
+
version,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
__all__ = [
|
|
17
|
+
"biome",
|
|
18
|
+
"block",
|
|
19
|
+
"block_entity",
|
|
20
|
+
"chunk",
|
|
21
|
+
"compiler_config",
|
|
22
|
+
"entity",
|
|
23
|
+
"palette",
|
|
24
|
+
"selection",
|
|
25
|
+
"version",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
def _init() -> None: ...
|
|
29
|
+
|
|
30
|
+
__version__: str
|
|
31
|
+
compiler_config: dict
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2025-
|
|
11
|
+
"date": "2025-07-28T11:25:11+0100",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "2.0.
|
|
14
|
+
"full-revisionid": "dc592d63267cf51ecdff3972fd21b2fa4711de47",
|
|
15
|
+
"version": "2.0.4a0"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -89,7 +89,7 @@ class Block(amulet.core.version.PlatformVersionContainer):
|
|
|
89
89
|
version: amulet.core.version.VersionNumber,
|
|
90
90
|
namespace: str,
|
|
91
91
|
base_name: str,
|
|
92
|
-
properties:
|
|
92
|
+
properties: collections.abc.Mapping[
|
|
93
93
|
str,
|
|
94
94
|
amulet.nbt.ByteTag
|
|
95
95
|
| amulet.nbt.ShortTag
|
|
@@ -223,7 +223,7 @@ class BlockStack:
|
|
|
223
223
|
def __eq__(self, arg0: typing.Any) -> bool | types.NotImplementedType: ...
|
|
224
224
|
def __ge__(self, arg0: BlockStack) -> bool: ...
|
|
225
225
|
@typing.overload
|
|
226
|
-
def __getitem__(self, arg0:
|
|
226
|
+
def __getitem__(self, arg0: typing.SupportsInt) -> Block: ...
|
|
227
227
|
@typing.overload
|
|
228
228
|
def __getitem__(self, arg0: slice) -> list: ...
|
|
229
229
|
def __gt__(self, arg0: BlockStack) -> bool: ...
|
|
@@ -237,7 +237,10 @@ class BlockStack:
|
|
|
237
237
|
def __reversed__(self) -> collections.abc.Iterator[Block]: ...
|
|
238
238
|
def count(self, value: typing.Any) -> int: ...
|
|
239
239
|
def index(
|
|
240
|
-
self,
|
|
240
|
+
self,
|
|
241
|
+
value: typing.Any,
|
|
242
|
+
start: typing.SupportsInt = 0,
|
|
243
|
+
stop: typing.SupportsInt = 9223372036854775807,
|
|
241
244
|
) -> int: ...
|
|
242
245
|
@property
|
|
243
246
|
def base_block(self) -> Block:
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/block_component.pyi
RENAMED
|
@@ -17,7 +17,7 @@ class BlockComponentData:
|
|
|
17
17
|
def __init__(
|
|
18
18
|
self,
|
|
19
19
|
version_range: amulet.core.version.VersionRange,
|
|
20
|
-
array_shape: tuple[
|
|
20
|
+
array_shape: tuple[typing.SupportsInt, typing.SupportsInt, typing.SupportsInt],
|
|
21
21
|
default_block: amulet.core.block.BlockStack,
|
|
22
22
|
) -> None: ...
|
|
23
23
|
@property
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/section_array_map.pyi
RENAMED
|
@@ -6,7 +6,6 @@ import typing
|
|
|
6
6
|
|
|
7
7
|
import numpy
|
|
8
8
|
import numpy.typing
|
|
9
|
-
import typing_extensions
|
|
10
9
|
|
|
11
10
|
__all__ = ["IndexArray3D", "SectionArrayMap"]
|
|
12
11
|
|
|
@@ -16,13 +15,19 @@ class IndexArray3D:
|
|
|
16
15
|
"""
|
|
17
16
|
|
|
18
17
|
@typing.overload
|
|
19
|
-
def __init__(
|
|
18
|
+
def __init__(
|
|
19
|
+
self, shape: tuple[typing.SupportsInt, typing.SupportsInt, typing.SupportsInt]
|
|
20
|
+
) -> None: ...
|
|
20
21
|
@typing.overload
|
|
21
|
-
def __init__(
|
|
22
|
+
def __init__(
|
|
23
|
+
self,
|
|
24
|
+
shape: tuple[typing.SupportsInt, typing.SupportsInt, typing.SupportsInt],
|
|
25
|
+
value: typing.SupportsInt,
|
|
26
|
+
) -> None: ...
|
|
22
27
|
@typing.overload
|
|
23
28
|
def __init__(self, other: IndexArray3D) -> None: ...
|
|
24
29
|
@typing.overload
|
|
25
|
-
def __init__(self, arg0:
|
|
30
|
+
def __init__(self, arg0: collections.abc.Buffer) -> None: ...
|
|
26
31
|
@property
|
|
27
32
|
def shape(self) -> tuple[int, int, int]: ...
|
|
28
33
|
@property
|
|
@@ -33,35 +38,48 @@ class SectionArrayMap:
|
|
|
33
38
|
A container of sub-chunk arrays.
|
|
34
39
|
"""
|
|
35
40
|
|
|
36
|
-
def __contains__(self, arg0:
|
|
37
|
-
def __delitem__(self, arg0:
|
|
41
|
+
def __contains__(self, arg0: typing.SupportsInt) -> bool: ...
|
|
42
|
+
def __delitem__(self, arg0: typing.SupportsInt) -> None: ...
|
|
38
43
|
def __eq__(self, arg0: typing.Any) -> bool | types.NotImplementedType: ...
|
|
39
|
-
def __getitem__(
|
|
44
|
+
def __getitem__(
|
|
45
|
+
self, arg0: typing.SupportsInt
|
|
46
|
+
) -> numpy.typing.NDArray[numpy.uint32]: ...
|
|
40
47
|
def __hash__(self) -> int: ...
|
|
41
48
|
def __init__(
|
|
42
49
|
self,
|
|
43
|
-
array_shape: tuple[
|
|
44
|
-
default_array:
|
|
50
|
+
array_shape: tuple[typing.SupportsInt, typing.SupportsInt, typing.SupportsInt],
|
|
51
|
+
default_array: (
|
|
52
|
+
typing.SupportsInt
|
|
53
|
+
| amulet.core.chunk.component.section_array_map.IndexArray3D
|
|
54
|
+
| collections.abc.Buffer
|
|
55
|
+
),
|
|
45
56
|
) -> None: ...
|
|
46
57
|
def __iter__(self) -> collections.abc.Iterator[int]: ...
|
|
47
58
|
def __len__(self) -> int: ...
|
|
48
59
|
def __setitem__(
|
|
49
|
-
self,
|
|
60
|
+
self,
|
|
61
|
+
arg0: typing.SupportsInt,
|
|
62
|
+
arg1: (
|
|
63
|
+
amulet.core.chunk.component.section_array_map.IndexArray3D
|
|
64
|
+
| collections.abc.Buffer
|
|
65
|
+
),
|
|
50
66
|
) -> None: ...
|
|
51
67
|
def get(
|
|
52
|
-
self,
|
|
68
|
+
self,
|
|
69
|
+
key: typing.SupportsInt,
|
|
70
|
+
default: numpy.typing.NDArray[numpy.uint32] | None = None,
|
|
53
71
|
) -> numpy.typing.NDArray[numpy.uint32] | None: ...
|
|
54
72
|
def items(
|
|
55
73
|
self,
|
|
56
74
|
) -> collections.abc.ItemsView[int, numpy.typing.NDArray[numpy.uint32]]: ...
|
|
57
75
|
def keys(self) -> collections.abc.KeysView[int]: ...
|
|
58
76
|
def pop(
|
|
59
|
-
self, key:
|
|
77
|
+
self, key: typing.SupportsInt, default: numpy.typing.NDArray[numpy.uint32] = ...
|
|
60
78
|
) -> numpy.typing.NDArray[numpy.uint32]: ...
|
|
61
79
|
def popitem(self) -> tuple[int, numpy.typing.NDArray[numpy.uint32]]: ...
|
|
62
|
-
def populate(self, arg0:
|
|
80
|
+
def populate(self, arg0: typing.SupportsInt) -> None: ...
|
|
63
81
|
def setdefault(
|
|
64
|
-
self, arg0:
|
|
82
|
+
self, arg0: typing.SupportsInt, arg1: numpy.typing.NDArray[numpy.uint32] | None
|
|
65
83
|
) -> numpy.typing.NDArray[numpy.uint32] | None: ...
|
|
66
84
|
def update(self, other: typing.Any = (), **kwargs: typing.Any) -> None: ...
|
|
67
85
|
def values(
|
|
@@ -73,5 +91,10 @@ class SectionArrayMap:
|
|
|
73
91
|
def default_array(self) -> int | numpy.ndarray: ...
|
|
74
92
|
@default_array.setter
|
|
75
93
|
def default_array(
|
|
76
|
-
self,
|
|
94
|
+
self,
|
|
95
|
+
arg1: (
|
|
96
|
+
typing.SupportsInt
|
|
97
|
+
| amulet.core.chunk.component.section_array_map.IndexArray3D
|
|
98
|
+
| collections.abc.Buffer
|
|
99
|
+
),
|
|
77
100
|
) -> None: ...
|
|
@@ -24,9 +24,9 @@ class Entity(amulet.core.version.PlatformVersionContainer):
|
|
|
24
24
|
version: amulet.core.version.VersionNumber,
|
|
25
25
|
namespace: str,
|
|
26
26
|
base_name: str,
|
|
27
|
-
x:
|
|
28
|
-
y:
|
|
29
|
-
z:
|
|
27
|
+
x: typing.SupportsFloat,
|
|
28
|
+
y: typing.SupportsFloat,
|
|
29
|
+
z: typing.SupportsFloat,
|
|
30
30
|
nbt: amulet.nbt.NamedTag,
|
|
31
31
|
) -> None: ...
|
|
32
32
|
def __repr__(self) -> str: ...
|
|
@@ -86,7 +86,7 @@ class Entity(amulet.core.version.PlatformVersionContainer):
|
|
|
86
86
|
"""
|
|
87
87
|
|
|
88
88
|
@x.setter
|
|
89
|
-
def x(self, arg1:
|
|
89
|
+
def x(self, arg1: typing.SupportsFloat) -> None: ...
|
|
90
90
|
@property
|
|
91
91
|
def y(self) -> float:
|
|
92
92
|
"""
|
|
@@ -94,7 +94,7 @@ class Entity(amulet.core.version.PlatformVersionContainer):
|
|
|
94
94
|
"""
|
|
95
95
|
|
|
96
96
|
@y.setter
|
|
97
|
-
def y(self, arg1:
|
|
97
|
+
def y(self, arg1: typing.SupportsFloat) -> None: ...
|
|
98
98
|
@property
|
|
99
99
|
def z(self) -> float:
|
|
100
100
|
"""
|
|
@@ -102,4 +102,4 @@ class Entity(amulet.core.version.PlatformVersionContainer):
|
|
|
102
102
|
"""
|
|
103
103
|
|
|
104
104
|
@z.setter
|
|
105
|
-
def z(self, arg1:
|
|
105
|
+
def z(self, arg1: typing.SupportsFloat) -> None: ...
|
|
@@ -10,11 +10,11 @@ __all__ = ["BiomePalette"]
|
|
|
10
10
|
|
|
11
11
|
class BiomePalette(amulet.core.version.VersionRangeContainer):
|
|
12
12
|
@typing.overload
|
|
13
|
-
def __contains__(self, arg0:
|
|
13
|
+
def __contains__(self, arg0: typing.SupportsInt) -> bool: ...
|
|
14
14
|
@typing.overload
|
|
15
15
|
def __contains__(self, arg0: amulet.core.biome.Biome) -> bool: ...
|
|
16
16
|
@typing.overload
|
|
17
|
-
def __getitem__(self, arg0:
|
|
17
|
+
def __getitem__(self, arg0: typing.SupportsInt) -> amulet.core.biome.Biome: ...
|
|
18
18
|
@typing.overload
|
|
19
19
|
def __getitem__(self, arg0: slice) -> list: ...
|
|
20
20
|
def __init__(self, arg0: amulet.core.version.VersionRange) -> None: ...
|
|
@@ -33,9 +33,12 @@ class BiomePalette(amulet.core.version.VersionRangeContainer):
|
|
|
33
33
|
|
|
34
34
|
def count(self, value: typing.Any) -> int: ...
|
|
35
35
|
def index(
|
|
36
|
-
self,
|
|
36
|
+
self,
|
|
37
|
+
value: typing.Any,
|
|
38
|
+
start: typing.SupportsInt = 0,
|
|
39
|
+
stop: typing.SupportsInt = 9223372036854775807,
|
|
37
40
|
) -> int: ...
|
|
38
|
-
def index_to_biome(self, arg0:
|
|
41
|
+
def index_to_biome(self, arg0: typing.SupportsInt) -> amulet.core.biome.Biome:
|
|
39
42
|
"""
|
|
40
43
|
Get the biome at the specified palette index.
|
|
41
44
|
|
|
@@ -10,11 +10,11 @@ __all__ = ["BlockPalette"]
|
|
|
10
10
|
|
|
11
11
|
class BlockPalette(amulet.core.version.VersionRangeContainer):
|
|
12
12
|
@typing.overload
|
|
13
|
-
def __contains__(self, arg0:
|
|
13
|
+
def __contains__(self, arg0: typing.SupportsInt) -> bool: ...
|
|
14
14
|
@typing.overload
|
|
15
15
|
def __contains__(self, arg0: amulet.core.block.BlockStack) -> bool: ...
|
|
16
16
|
@typing.overload
|
|
17
|
-
def __getitem__(self, arg0:
|
|
17
|
+
def __getitem__(self, arg0: typing.SupportsInt) -> amulet.core.block.BlockStack: ...
|
|
18
18
|
@typing.overload
|
|
19
19
|
def __getitem__(self, arg0: slice) -> list: ...
|
|
20
20
|
def __init__(self, arg0: amulet.core.version.VersionRange) -> None: ...
|
|
@@ -35,9 +35,14 @@ class BlockPalette(amulet.core.version.VersionRangeContainer):
|
|
|
35
35
|
|
|
36
36
|
def count(self, value: typing.Any) -> int: ...
|
|
37
37
|
def index(
|
|
38
|
-
self,
|
|
38
|
+
self,
|
|
39
|
+
value: typing.Any,
|
|
40
|
+
start: typing.SupportsInt = 0,
|
|
41
|
+
stop: typing.SupportsInt = 9223372036854775807,
|
|
39
42
|
) -> int: ...
|
|
40
|
-
def index_to_block_stack(
|
|
43
|
+
def index_to_block_stack(
|
|
44
|
+
self, arg0: typing.SupportsInt
|
|
45
|
+
) -> amulet.core.block.BlockStack:
|
|
41
46
|
"""
|
|
42
47
|
Get the block stack at the specified palette index.
|
|
43
48
|
|
|
@@ -23,7 +23,13 @@ class SelectionBox:
|
|
|
23
23
|
def __hash__(self) -> int: ...
|
|
24
24
|
@typing.overload
|
|
25
25
|
def __init__(
|
|
26
|
-
self,
|
|
26
|
+
self,
|
|
27
|
+
min_x: typing.SupportsInt,
|
|
28
|
+
min_y: typing.SupportsInt,
|
|
29
|
+
min_z: typing.SupportsInt,
|
|
30
|
+
size_x: typing.SupportsInt,
|
|
31
|
+
size_y: typing.SupportsInt,
|
|
32
|
+
size_z: typing.SupportsInt,
|
|
27
33
|
) -> None:
|
|
28
34
|
"""
|
|
29
35
|
Construct a new SelectionBox instance.
|
|
@@ -41,7 +47,9 @@ class SelectionBox:
|
|
|
41
47
|
|
|
42
48
|
@typing.overload
|
|
43
49
|
def __init__(
|
|
44
|
-
self,
|
|
50
|
+
self,
|
|
51
|
+
point_1: tuple[typing.SupportsInt, typing.SupportsInt, typing.SupportsInt],
|
|
52
|
+
point_2: tuple[typing.SupportsInt, typing.SupportsInt, typing.SupportsInt],
|
|
45
53
|
) -> None:
|
|
46
54
|
"""
|
|
47
55
|
Construct a new SelectionBox instance.
|
|
@@ -57,7 +65,9 @@ class SelectionBox:
|
|
|
57
65
|
def __lt__(self, arg0: SelectionBox) -> bool: ...
|
|
58
66
|
def __repr__(self) -> str: ...
|
|
59
67
|
def __str__(self) -> str: ...
|
|
60
|
-
def contains_block(
|
|
68
|
+
def contains_block(
|
|
69
|
+
self, x: typing.SupportsInt, y: typing.SupportsInt, z: typing.SupportsInt
|
|
70
|
+
) -> bool:
|
|
61
71
|
"""
|
|
62
72
|
Is the block contained within the selection.
|
|
63
73
|
|
|
@@ -79,7 +89,9 @@ class SelectionBox:
|
|
|
79
89
|
:return: True if other fits in self, False otherwise.
|
|
80
90
|
"""
|
|
81
91
|
|
|
82
|
-
def contains_point(
|
|
92
|
+
def contains_point(
|
|
93
|
+
self, x: typing.SupportsFloat, y: typing.SupportsFloat, z: typing.SupportsFloat
|
|
94
|
+
) -> bool:
|
|
83
95
|
"""
|
|
84
96
|
Is the point contained within the selection.
|
|
85
97
|
|
|
@@ -120,7 +132,9 @@ class SelectionBox:
|
|
|
120
132
|
:return: True if the two :class:`SelectionBox` instances touch or intersect, False otherwise.
|
|
121
133
|
"""
|
|
122
134
|
|
|
123
|
-
def translate(
|
|
135
|
+
def translate(
|
|
136
|
+
self, x: typing.SupportsInt, y: typing.SupportsInt, z: typing.SupportsInt
|
|
137
|
+
) -> SelectionBox:
|
|
124
138
|
"""
|
|
125
139
|
Create a new :class:`SelectionBox` based on this one with the coordinates moved by the given offset.
|
|
126
140
|
|
|
@@ -63,7 +63,9 @@ class SelectionGroup:
|
|
|
63
63
|
>>> ])
|
|
64
64
|
"""
|
|
65
65
|
|
|
66
|
-
def __iter__(
|
|
66
|
+
def __iter__(
|
|
67
|
+
self,
|
|
68
|
+
) -> collections.abc.Iterator[amulet.core.selection.box.SelectionBox]:
|
|
67
69
|
"""
|
|
68
70
|
An iterable of all the :class:`SelectionBox` classes in the group.
|
|
69
71
|
"""
|
|
@@ -75,7 +77,9 @@ class SelectionGroup:
|
|
|
75
77
|
|
|
76
78
|
def __repr__(self) -> str: ...
|
|
77
79
|
def __str__(self) -> str: ...
|
|
78
|
-
def contains_block(
|
|
80
|
+
def contains_block(
|
|
81
|
+
self, x: typing.SupportsInt, y: typing.SupportsInt, z: typing.SupportsInt
|
|
82
|
+
) -> bool:
|
|
79
83
|
"""
|
|
80
84
|
Is the block contained within the selection.
|
|
81
85
|
|
|
@@ -89,7 +93,9 @@ class SelectionGroup:
|
|
|
89
93
|
:return: True if the block is in the selection.
|
|
90
94
|
"""
|
|
91
95
|
|
|
92
|
-
def contains_point(
|
|
96
|
+
def contains_point(
|
|
97
|
+
self, x: typing.SupportsFloat, y: typing.SupportsFloat, z: typing.SupportsFloat
|
|
98
|
+
) -> bool:
|
|
93
99
|
"""
|
|
94
100
|
Is the point contained within the selection.
|
|
95
101
|
|
|
@@ -114,7 +120,9 @@ class SelectionGroup:
|
|
|
114
120
|
|
|
115
121
|
@typing.overload
|
|
116
122
|
def intersects(self, other: SelectionGroup) -> bool: ...
|
|
117
|
-
def translate(
|
|
123
|
+
def translate(
|
|
124
|
+
self, x: typing.SupportsInt, y: typing.SupportsInt, z: typing.SupportsInt
|
|
125
|
+
) -> SelectionGroup:
|
|
118
126
|
"""
|
|
119
127
|
Create a new :class:`SelectionGroup` based on this one with the coordinates moved by the given offset.
|
|
120
128
|
|
|
@@ -207,7 +215,7 @@ class SelectionGroup:
|
|
|
207
215
|
@property
|
|
208
216
|
def selection_boxes(
|
|
209
217
|
self,
|
|
210
|
-
) ->
|
|
218
|
+
) -> collections.abc.Iterator[amulet.core.selection.box.SelectionBox]:
|
|
211
219
|
"""
|
|
212
220
|
An iterator of the :class:`SelectionBox` instances stored for this group.
|
|
213
221
|
"""
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
import collections.abc
|
|
3
4
|
import types
|
|
4
5
|
import typing
|
|
5
6
|
from builtins import str as PlatformType
|
|
@@ -48,7 +49,7 @@ class VersionNumber:
|
|
|
48
49
|
>>> v3 = VersionNumber(3578)
|
|
49
50
|
"""
|
|
50
51
|
|
|
51
|
-
def __contains__(self, arg0:
|
|
52
|
+
def __contains__(self, arg0: typing.SupportsInt) -> bool: ...
|
|
52
53
|
@typing.overload
|
|
53
54
|
def __eq__(self, arg0: VersionNumber) -> bool: ...
|
|
54
55
|
@typing.overload
|
|
@@ -61,23 +62,26 @@ class VersionNumber:
|
|
|
61
62
|
def __gt__(self, arg0: VersionNumber) -> bool: ...
|
|
62
63
|
def __hash__(self) -> int: ...
|
|
63
64
|
def __init__(self, *args: typing.SupportsInt) -> None: ...
|
|
64
|
-
def __iter__(self) ->
|
|
65
|
+
def __iter__(self) -> collections.abc.Iterator[int]: ...
|
|
65
66
|
def __le__(self, arg0: VersionNumber) -> bool: ...
|
|
66
67
|
def __len__(self) -> int: ...
|
|
67
68
|
def __lt__(self, arg0: VersionNumber) -> bool: ...
|
|
68
69
|
def __repr__(self) -> str: ...
|
|
69
|
-
def __reversed__(self) ->
|
|
70
|
+
def __reversed__(self) -> collections.abc.Iterator[int]: ...
|
|
70
71
|
def __str__(self) -> str: ...
|
|
71
|
-
def count(self, value:
|
|
72
|
+
def count(self, value: typing.SupportsInt) -> int: ...
|
|
72
73
|
def cropped_version(self) -> list[int]:
|
|
73
74
|
"""
|
|
74
75
|
The version number with trailing zeros cut off.
|
|
75
76
|
"""
|
|
76
77
|
|
|
77
78
|
def index(
|
|
78
|
-
self,
|
|
79
|
+
self,
|
|
80
|
+
value: typing.SupportsInt,
|
|
81
|
+
start: typing.SupportsInt = 0,
|
|
82
|
+
stop: typing.SupportsInt = 18446744073709551615,
|
|
79
83
|
) -> int: ...
|
|
80
|
-
def padded_version(self, len:
|
|
84
|
+
def padded_version(self, len: typing.SupportsInt) -> list[int]:
|
|
81
85
|
"""
|
|
82
86
|
Get the version number cropped or padded with zeros to the given length.
|
|
83
87
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: amulet-core
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.4a0
|
|
4
4
|
Summary: A Python library for reading/writing Minecraft's various save formats.
|
|
5
5
|
Author: James Clare, Ben Gothard
|
|
6
6
|
Project-URL: Homepage, https://www.amuletmc.com
|
|
@@ -12,11 +12,11 @@ Requires-Python: >=3.11
|
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
Requires-Dist: amulet-compiler-target==2.0
|
|
14
14
|
Requires-Dist: amulet-compiler-version==3.0.0
|
|
15
|
-
Requires-Dist: pybind11==
|
|
15
|
+
Requires-Dist: pybind11==3.0.0
|
|
16
16
|
Requires-Dist: amulet-pybind11-extensions~=1.1.0.0a0
|
|
17
17
|
Requires-Dist: amulet-io~=1.0
|
|
18
|
-
Requires-Dist: amulet-zlib~=1.0.
|
|
19
|
-
Requires-Dist: amulet-nbt~=5.0.
|
|
18
|
+
Requires-Dist: amulet-zlib~=1.0.1.0a0
|
|
19
|
+
Requires-Dist: amulet-nbt~=5.0.1.0a0
|
|
20
20
|
Requires-Dist: numpy~=2.0
|
|
21
21
|
Provides-Extra: docs
|
|
22
22
|
Requires-Dist: Sphinx>=1.7.4; extra == "docs"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
amulet-compiler-target==2.0
|
|
2
2
|
amulet-compiler-version==3.0.0
|
|
3
|
-
pybind11==
|
|
3
|
+
pybind11==3.0.0
|
|
4
4
|
amulet-pybind11-extensions~=1.1.0.0a0
|
|
5
5
|
amulet-io~=1.0
|
|
6
|
-
amulet-zlib~=1.0.
|
|
7
|
-
amulet-nbt~=5.0.
|
|
6
|
+
amulet-zlib~=1.0.1.0a0
|
|
7
|
+
amulet-nbt~=5.0.1.0a0
|
|
8
8
|
numpy~=2.0
|
|
9
9
|
|
|
10
10
|
[dev]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/__pyinstaller/hook-amulet.core.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/block_entity/block_entity.py.cpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/biome_3d_component.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/biome_3d_component.hpp
RENAMED
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/block_component.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/block_component.hpp
RENAMED
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/block_component.py.cpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/section_array_map.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/section_array_map.hpp
RENAMED
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/chunk/component/section_array_map.py.cpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amulet_core-2.0.3a3 → amulet_core-2.0.4a0}/src/amulet/core/selection/__init_selection.py.cpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|