amulet-core 2.0.5a1__cp311-cp311-win_amd64.whl → 2.0.6a0__cp311-cp311-win_amd64.whl
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/_amulet_core.cp311-win_amd64.pyd +0 -0
- amulet/core/_version.py +3 -3
- amulet/core/amulet_core.dll +0 -0
- amulet/core/amulet_core.lib +0 -0
- amulet/core/chunk/component/__init__.pyi +2 -5
- amulet/core/chunk/component/biome_3d_component.hpp +9 -9
- amulet/core/chunk/component/block_component.hpp +9 -9
- amulet/core/chunk/component/block_component.pyi +3 -3
- amulet/core/chunk/component/block_entity_component.hpp +9 -9
- {amulet_core-2.0.5a1.dist-info → amulet_core-2.0.6a0.dist-info}/METADATA +2 -2
- {amulet_core-2.0.5a1.dist-info → amulet_core-2.0.6a0.dist-info}/RECORD +14 -14
- {amulet_core-2.0.5a1.dist-info → amulet_core-2.0.6a0.dist-info}/WHEEL +0 -0
- {amulet_core-2.0.5a1.dist-info → amulet_core-2.0.6a0.dist-info}/entry_points.txt +0 -0
- {amulet_core-2.0.5a1.dist-info → amulet_core-2.0.6a0.dist-info}/top_level.txt +0 -0
|
Binary file
|
amulet/core/_version.py
CHANGED
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2025-
|
|
11
|
+
"date": "2025-10-16T14:53:07+0100",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "2.0.
|
|
14
|
+
"full-revisionid": "c3e4c826d97d6d0ca38d45bbd0595499626b71df",
|
|
15
|
+
"version": "2.0.6a0"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
amulet/core/amulet_core.dll
CHANGED
|
Binary file
|
amulet/core/amulet_core.lib
CHANGED
|
Binary file
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from amulet.core.chunk.component.block_component import
|
|
4
|
-
BlockComponent,
|
|
5
|
-
BlockComponentData,
|
|
6
|
-
)
|
|
3
|
+
from amulet.core.chunk.component.block_component import BlockComponent, BlockStorage
|
|
7
4
|
from amulet.core.chunk.component.section_array_map import IndexArray3D, SectionArrayMap
|
|
8
5
|
|
|
9
6
|
from . import block_component, section_array_map
|
|
10
7
|
|
|
11
8
|
__all__: list[str] = [
|
|
12
9
|
"BlockComponent",
|
|
13
|
-
"
|
|
10
|
+
"BlockStorage",
|
|
14
11
|
"IndexArray3D",
|
|
15
12
|
"SectionArrayMap",
|
|
16
13
|
"block_component",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
namespace Amulet {
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class Biome3DStorage {
|
|
18
18
|
private:
|
|
19
19
|
std::shared_ptr<BiomePalette> _palette;
|
|
20
20
|
std::shared_ptr<SectionArrayMap> _sections;
|
|
21
21
|
|
|
22
22
|
public:
|
|
23
23
|
template <typename PaletteT, typename SectionsT>
|
|
24
|
-
|
|
24
|
+
Biome3DStorage(
|
|
25
25
|
PaletteT&& palette,
|
|
26
26
|
SectionsT&& sections)
|
|
27
27
|
: _palette(
|
|
@@ -44,11 +44,11 @@ public:
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
template <typename VersionRangeT>
|
|
47
|
-
|
|
47
|
+
Biome3DStorage(
|
|
48
48
|
VersionRangeT&& version_range,
|
|
49
49
|
const SectionShape& array_shape,
|
|
50
50
|
const Biome& default_biome)
|
|
51
|
-
:
|
|
51
|
+
: Biome3DStorage(
|
|
52
52
|
std::make_shared<BiomePalette>(std::forward<VersionRangeT>(version_range)),
|
|
53
53
|
std::make_shared<SectionArrayMap>(array_shape, static_cast<std::uint32_t>(0)))
|
|
54
54
|
{
|
|
@@ -61,12 +61,12 @@ public:
|
|
|
61
61
|
std::shared_ptr<SectionArrayMap> get_sections_ptr() { return _sections; }
|
|
62
62
|
|
|
63
63
|
AMULET_CORE_EXPORT void serialise(BinaryWriter&) const;
|
|
64
|
-
AMULET_CORE_EXPORT static
|
|
64
|
+
AMULET_CORE_EXPORT static Biome3DStorage deserialise(BinaryReader&);
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
class Biome3DComponent {
|
|
68
68
|
private:
|
|
69
|
-
std::optional<std::shared_ptr<
|
|
69
|
+
std::optional<std::shared_ptr<Biome3DStorage>> _value;
|
|
70
70
|
|
|
71
71
|
protected:
|
|
72
72
|
// Null constructor
|
|
@@ -79,7 +79,7 @@ protected:
|
|
|
79
79
|
const SectionShape& array_shape,
|
|
80
80
|
const Biome& default_biome)
|
|
81
81
|
{
|
|
82
|
-
_value = std::make_shared<
|
|
82
|
+
_value = std::make_shared<Biome3DStorage>(
|
|
83
83
|
std::forward<VersionRangeT>(version_range),
|
|
84
84
|
array_shape,
|
|
85
85
|
default_biome);
|
|
@@ -92,8 +92,8 @@ protected:
|
|
|
92
92
|
|
|
93
93
|
public:
|
|
94
94
|
AMULET_CORE_EXPORT static const std::string ComponentID;
|
|
95
|
-
AMULET_CORE_EXPORT std::shared_ptr<
|
|
96
|
-
AMULET_CORE_EXPORT void
|
|
95
|
+
AMULET_CORE_EXPORT std::shared_ptr<Biome3DStorage> get_biome_storage();
|
|
96
|
+
AMULET_CORE_EXPORT void set_biome_storage(std::shared_ptr<Biome3DStorage> component);
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
} // namespace Amulet
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
|
|
17
17
|
namespace Amulet {
|
|
18
18
|
|
|
19
|
-
class
|
|
19
|
+
class BlockStorage {
|
|
20
20
|
private:
|
|
21
21
|
std::shared_ptr<BlockPalette> _palette;
|
|
22
22
|
std::shared_ptr<SectionArrayMap> _sections;
|
|
23
23
|
|
|
24
24
|
public:
|
|
25
25
|
template <typename PaletteT, typename SectionsT>
|
|
26
|
-
|
|
26
|
+
BlockStorage(
|
|
27
27
|
PaletteT&& palette,
|
|
28
28
|
SectionsT&& sections)
|
|
29
29
|
: _palette(
|
|
@@ -46,11 +46,11 @@ public:
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
template <typename VersionRangeT>
|
|
49
|
-
|
|
49
|
+
BlockStorage(
|
|
50
50
|
VersionRangeT&& version_range,
|
|
51
51
|
const SectionShape& array_shape,
|
|
52
52
|
const BlockStack& default_block)
|
|
53
|
-
:
|
|
53
|
+
: BlockStorage(
|
|
54
54
|
std::make_shared<BlockPalette>(std::forward<VersionRangeT>(version_range)),
|
|
55
55
|
std::make_shared<SectionArrayMap>(array_shape, static_cast<std::uint32_t>(0)))
|
|
56
56
|
{
|
|
@@ -58,7 +58,7 @@ public:
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
AMULET_CORE_EXPORT void serialise(BinaryWriter&) const;
|
|
61
|
-
AMULET_CORE_EXPORT static
|
|
61
|
+
AMULET_CORE_EXPORT static BlockStorage deserialise(BinaryReader&);
|
|
62
62
|
|
|
63
63
|
BlockPalette& get_palette() const { return *_palette; }
|
|
64
64
|
std::shared_ptr<BlockPalette> get_palette_ptr() const { return _palette; }
|
|
@@ -68,7 +68,7 @@ public:
|
|
|
68
68
|
|
|
69
69
|
class BlockComponent {
|
|
70
70
|
private:
|
|
71
|
-
std::optional<std::shared_ptr<
|
|
71
|
+
std::optional<std::shared_ptr<BlockStorage>> _value;
|
|
72
72
|
|
|
73
73
|
protected:
|
|
74
74
|
// Null constructor
|
|
@@ -81,7 +81,7 @@ protected:
|
|
|
81
81
|
const SectionShape& array_shape,
|
|
82
82
|
const BlockStack& default_block)
|
|
83
83
|
{
|
|
84
|
-
_value = std::make_shared<
|
|
84
|
+
_value = std::make_shared<BlockStorage>(
|
|
85
85
|
std::forward<VersionRangeT>(version_range),
|
|
86
86
|
array_shape,
|
|
87
87
|
default_block);
|
|
@@ -94,8 +94,8 @@ protected:
|
|
|
94
94
|
|
|
95
95
|
public:
|
|
96
96
|
AMULET_CORE_EXPORT static const std::string ComponentID;
|
|
97
|
-
AMULET_CORE_EXPORT std::shared_ptr<
|
|
98
|
-
AMULET_CORE_EXPORT void
|
|
97
|
+
AMULET_CORE_EXPORT std::shared_ptr<BlockStorage> get_block_storage();
|
|
98
|
+
AMULET_CORE_EXPORT void set_block_storage(std::shared_ptr<BlockStorage> component);
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
} // namespace Amulet
|
|
@@ -7,13 +7,13 @@ import amulet.core.chunk.component.section_array_map
|
|
|
7
7
|
import amulet.core.palette.block_palette
|
|
8
8
|
import amulet.core.version
|
|
9
9
|
|
|
10
|
-
__all__: list[str] = ["BlockComponent", "
|
|
10
|
+
__all__: list[str] = ["BlockComponent", "BlockStorage"]
|
|
11
11
|
|
|
12
12
|
class BlockComponent:
|
|
13
13
|
ComponentID: typing.ClassVar[str] = "Amulet::BlockComponent"
|
|
14
|
-
|
|
14
|
+
block_storage: BlockStorage
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class BlockStorage:
|
|
17
17
|
def __init__(
|
|
18
18
|
self,
|
|
19
19
|
version_range: amulet.core.version.VersionRange,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
namespace Amulet {
|
|
14
14
|
typedef std::tuple<std::uint16_t, std::int64_t, std::uint16_t> BlockEntityChunkCoord;
|
|
15
|
-
class
|
|
15
|
+
class BlockEntityStorage : public VersionRangeContainer {
|
|
16
16
|
private:
|
|
17
17
|
std::uint16_t _x_size;
|
|
18
18
|
std::uint16_t _z_size;
|
|
@@ -23,7 +23,7 @@ private:
|
|
|
23
23
|
|
|
24
24
|
public:
|
|
25
25
|
template <typename VersionRangeT>
|
|
26
|
-
|
|
26
|
+
BlockEntityStorage(
|
|
27
27
|
VersionRangeT&& version_range,
|
|
28
28
|
std::uint16_t x_size,
|
|
29
29
|
std::uint16_t z_size)
|
|
@@ -35,7 +35,7 @@ public:
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
AMULET_CORE_EXPORT void serialise(BinaryWriter&) const;
|
|
38
|
-
AMULET_CORE_EXPORT static
|
|
38
|
+
AMULET_CORE_EXPORT static BlockEntityStorage deserialise(BinaryReader&);
|
|
39
39
|
|
|
40
40
|
std::uint16_t get_x_size() const { return _x_size; }
|
|
41
41
|
std::uint16_t get_z_size() const { return _z_size; }
|
|
@@ -79,12 +79,12 @@ public:
|
|
|
79
79
|
}
|
|
80
80
|
if (!(
|
|
81
81
|
get_version_range().contains(
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
block_entity_ptr->get_platform(),
|
|
83
|
+
block_entity_ptr->get_version()))) {
|
|
84
84
|
throw std::invalid_argument(
|
|
85
85
|
"BlockEntity is incompatible with VersionRange.");
|
|
86
86
|
}
|
|
87
|
-
_block_entities.insert_or_assign(coord, std::move(
|
|
87
|
+
_block_entities.insert_or_assign(coord, std::move(block_entity_ptr));
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
void del(const BlockEntityChunkCoord& coord)
|
|
@@ -95,7 +95,7 @@ public:
|
|
|
95
95
|
|
|
96
96
|
class BlockEntityComponent {
|
|
97
97
|
private:
|
|
98
|
-
std::optional<std::shared_ptr<
|
|
98
|
+
std::optional<std::shared_ptr<BlockEntityStorage>> _value;
|
|
99
99
|
|
|
100
100
|
protected:
|
|
101
101
|
// Null constructor
|
|
@@ -113,7 +113,7 @@ protected:
|
|
|
113
113
|
|
|
114
114
|
public:
|
|
115
115
|
AMULET_CORE_EXPORT static const std::string ComponentID;
|
|
116
|
-
AMULET_CORE_EXPORT std::shared_ptr<
|
|
117
|
-
AMULET_CORE_EXPORT void
|
|
116
|
+
AMULET_CORE_EXPORT std::shared_ptr<BlockEntityStorage> get_block_entities();
|
|
117
|
+
AMULET_CORE_EXPORT void set_block_entities(std::shared_ptr<BlockEntityStorage> component);
|
|
118
118
|
};
|
|
119
119
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: amulet-core
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6a0
|
|
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
|
|
@@ -15,7 +15,7 @@ Requires-Dist: amulet-compiler-version==4.1297307203.19
|
|
|
15
15
|
Requires-Dist: pybind11==3.0.0
|
|
16
16
|
Requires-Dist: amulet-pybind11-extensions~=1.2.0.0a0
|
|
17
17
|
Requires-Dist: amulet-io~=1.0.0.0
|
|
18
|
-
Requires-Dist: amulet-utils~=1.1.3.
|
|
18
|
+
Requires-Dist: amulet-utils~=1.1.3.0a2
|
|
19
19
|
Requires-Dist: amulet-zlib~=1.0.8.0a2
|
|
20
20
|
Requires-Dist: amulet-nbt~=5.0.2.0a1
|
|
21
21
|
Requires-Dist: numpy~=2.0
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
amulet/core/__init__.py,sha256=3OSfdYsczg_YNIY2Vv_Rit2Ob61sNt3Bo9mE1Ixx8Sg,978
|
|
2
2
|
amulet/core/__init__.pyi,sha256=qhxaM6yfnVWokiy9uzRktnKtWJYc2zy_gH3_rh4SxKI,456
|
|
3
|
-
amulet/core/_amulet_core.cp311-win_amd64.pyd,sha256=
|
|
3
|
+
amulet/core/_amulet_core.cp311-win_amd64.pyd,sha256=0pta-Gdx7StJ5K47goE-7wkjk1roIzbqsdSUQEU_yG0,763904
|
|
4
4
|
amulet/core/_amulet_core.pyi,sha256=ysIiVDNTMxy3kdBKGkDXr0EDyhZqMITrH_ywsm0HAwM,134
|
|
5
|
-
amulet/core/_version.py,sha256=
|
|
6
|
-
amulet/core/amulet_core.dll,sha256=
|
|
7
|
-
amulet/core/amulet_core.lib,sha256=
|
|
5
|
+
amulet/core/_version.py,sha256=4VlcR3MwixePIWVdPcYWPOYVcGnykFOQRgcrIx3c4i8,520
|
|
6
|
+
amulet/core/amulet_core.dll,sha256=1wrfimRSTka-fCVvReX63oKuhoUem5Iwp_6PyO2irtk,221696
|
|
7
|
+
amulet/core/amulet_core.lib,sha256=NepODRQicyGo15YPJbsVLLhpvUgJBSUr3XJO7Nx48VA,98264
|
|
8
8
|
amulet/core/amulet_coreConfig.cmake,sha256=iwFn1KmAr-rFh3jafs52FAnTArYjPEd2eVs0w2gidEA,987
|
|
9
9
|
amulet/core/dll.hpp,sha256=pyhd9lh570R1Qi7TPPnKoiB-fAFmQan8Vnk-oZmuK70,586
|
|
10
10
|
amulet/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -18,11 +18,11 @@ amulet/core/block_entity/__init__.pyi,sha256=QQ-3_RywLfvpEbN7SGgmTdVNwHb9xZxo56D
|
|
|
18
18
|
amulet/core/block_entity/block_entity.hpp,sha256=q_8rzz4JCQ-L4q025G-ooQ2G47Hf6hyn3Wou4GZZ1Dc,2277
|
|
19
19
|
amulet/core/chunk/__init__.pyi,sha256=35RyNsGhktLv6LfJkQRJ-OONR947y1HHac6D4NjaOGo,1957
|
|
20
20
|
amulet/core/chunk/chunk.hpp,sha256=r3s5nPd60XwTyulG8xA7VdPH72OwDFwD-32faKp75ds,3915
|
|
21
|
-
amulet/core/chunk/component/__init__.pyi,sha256=
|
|
22
|
-
amulet/core/chunk/component/biome_3d_component.hpp,sha256=
|
|
23
|
-
amulet/core/chunk/component/block_component.hpp,sha256=
|
|
24
|
-
amulet/core/chunk/component/block_component.pyi,sha256=
|
|
25
|
-
amulet/core/chunk/component/block_entity_component.hpp,sha256=
|
|
21
|
+
amulet/core/chunk/component/__init__.pyi,sha256=v98Vp36DdTOMPFeJOiFTezD0yMT9iZlMLGvG-zvt9kc,433
|
|
22
|
+
amulet/core/chunk/component/biome_3d_component.hpp,sha256=cqhXF2hnj6y0FRtpaBjcH4UqS--ivCbT5r89eTBIai8,3243
|
|
23
|
+
amulet/core/chunk/component/block_component.hpp,sha256=LLOezLLDF-TZGfLx9fkb4-Xzlswo1WE_R_U-nKhlLHI,3323
|
|
24
|
+
amulet/core/chunk/component/block_component.pyi,sha256=iOnFtHMAUKC9orzh7JFnnbhuQ4WHFsk0Y9iaUrsdg20,885
|
|
25
|
+
amulet/core/chunk/component/block_entity_component.hpp,sha256=0gWLkqrBYSugXY_Ilu-xL5gz5d42po7e7ELrwcpM0us,3898
|
|
26
26
|
amulet/core/chunk/component/section_array_map.hpp,sha256=V_WAG56rz3SAUWMMLgoPAhY3faH3t4Egg9_PsSERueE,3855
|
|
27
27
|
amulet/core/chunk/component/section_array_map.pyi,sha256=H2pNAew6qkqKlWPvHW70jMHVIic9wqDT6GcsBuNpW-4,4072
|
|
28
28
|
amulet/core/entity/__init__.pyi,sha256=KGtjf-QjJijeutbvkhK7S4bwwjrelaUdrR2DqVaA6NI,2676
|
|
@@ -47,8 +47,8 @@ amulet/core/selection/shape_group.hpp,sha256=Cn1Wo4bHLjcVcqo9IF8jdMaH9LSCx4Jv6SR
|
|
|
47
47
|
amulet/core/selection/shape_group.pyi,sha256=Ik1sWCC0vJ8MHGJmvPiXtQEZkU2HVCFeb_7Q4lGycTE,3927
|
|
48
48
|
amulet/core/version/__init__.pyi,sha256=yBPn3RivWayjrFGm9WhuIgjt0Aro6ubWAUBcb-ZUwZ0,4279
|
|
49
49
|
amulet/core/version/version.hpp,sha256=yVc_uhBgmHQ0Evo73rXXoRwSQMHakUQxSYR3_fu2KH4,6506
|
|
50
|
-
amulet_core-2.0.
|
|
51
|
-
amulet_core-2.0.
|
|
52
|
-
amulet_core-2.0.
|
|
53
|
-
amulet_core-2.0.
|
|
54
|
-
amulet_core-2.0.
|
|
50
|
+
amulet_core-2.0.6a0.dist-info/METADATA,sha256=cLDiiVnhw_dvqLBy3FgldGTOwX0RPqa64IqHYrnyOE0,5025
|
|
51
|
+
amulet_core-2.0.6a0.dist-info/WHEEL,sha256=JLOMsP7F5qtkAkINx5UnzbFguf8CqZeraV8o04b0I8I,101
|
|
52
|
+
amulet_core-2.0.6a0.dist-info/entry_points.txt,sha256=a64mqk_dgbzVyk-pz0WKpK6kNAhIGdVT9DO2VqDIAc8,68
|
|
53
|
+
amulet_core-2.0.6a0.dist-info/top_level.txt,sha256=3ZqHzNDiIb9kV8TwSeeXxK_9haSrsu631Qe4ndDo0rc,7
|
|
54
|
+
amulet_core-2.0.6a0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|