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/_version.py CHANGED
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2025-09-17T11:29:24+0100",
11
+ "date": "2025-10-16T14:53:07+0100",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "7ed2b2b5421e7cb0691779cf4861faf812f8cee3",
15
- "version": "2.0.5a1"
14
+ "full-revisionid": "c3e4c826d97d6d0ca38d45bbd0595499626b71df",
15
+ "version": "2.0.6a0"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
Binary file
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
- "BlockComponentData",
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 Biome3DComponentData {
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
- Biome3DComponentData(
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
- Biome3DComponentData(
47
+ Biome3DStorage(
48
48
  VersionRangeT&& version_range,
49
49
  const SectionShape& array_shape,
50
50
  const Biome& default_biome)
51
- : Biome3DComponentData(
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 Biome3DComponentData deserialise(BinaryReader&);
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<Biome3DComponentData>> _value;
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<Biome3DComponentData>(
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<Biome3DComponentData> get_biome();
96
- AMULET_CORE_EXPORT void set_biome(std::shared_ptr<Biome3DComponentData> component);
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 BlockComponentData {
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
- BlockComponentData(
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
- BlockComponentData(
49
+ BlockStorage(
50
50
  VersionRangeT&& version_range,
51
51
  const SectionShape& array_shape,
52
52
  const BlockStack& default_block)
53
- : BlockComponentData(
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 BlockComponentData deserialise(BinaryReader&);
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<BlockComponentData>> _value;
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<BlockComponentData>(
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<BlockComponentData> get_block();
98
- AMULET_CORE_EXPORT void set_block(std::shared_ptr<BlockComponentData> component);
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", "BlockComponentData"]
10
+ __all__: list[str] = ["BlockComponent", "BlockStorage"]
11
11
 
12
12
  class BlockComponent:
13
13
  ComponentID: typing.ClassVar[str] = "Amulet::BlockComponent"
14
- block: BlockComponentData
14
+ block_storage: BlockStorage
15
15
 
16
- class BlockComponentData:
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 BlockEntityComponentData : public VersionRangeContainer {
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
- BlockEntityComponentData(
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 BlockEntityComponentData deserialise(BinaryReader&);
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
- block_entity->get_platform(),
83
- block_entity->get_version()))) {
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(block_entity));
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<BlockEntityComponentData>> _value;
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<BlockEntityComponentData> get_block_entity();
117
- AMULET_CORE_EXPORT void set_block_entity(std::shared_ptr<BlockEntityComponentData> component);
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.5a1
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.0a1
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=jPBl81_vfx17zN8CmNhpRepxFlymNDv0aghOJEu9VUU,763904
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=mETEQ4ANIIYXuyFSMhjSZwGmU0K2PsT92z1OcojPoxE,520
6
- amulet/core/amulet_core.dll,sha256=Wt1g99mdXKzAcJzd6exF2XyB9FeTzG1fJ841zyY5hlM,221696
7
- amulet/core/amulet_core.lib,sha256=oiaTgzWvQtrPfiFcz6zG6rH1Nz2kCjkpQAu71dbmoN0,98444
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=U_-nIa6YXnTMnrj2BQCt-sU2mSu8klfvf9-m9722Xj0,461
22
- amulet/core/chunk/component/biome_3d_component.hpp,sha256=qtBGznXfxGh44GMrm5QwjyooCLhIXySuozyRWuBo1cA,3281
23
- amulet/core/chunk/component/block_component.hpp,sha256=JFk1O1IBWWX9-blvQN0Kv1xNUuWYWpMxkPB6jzIoG2w,3361
24
- amulet/core/chunk/component/block_component.pyi,sha256=Yc2ACyeHLOacLqdpA9WyoWkgelLoJNhZa88d2rKSD60,895
25
- amulet/core/chunk/component/block_entity_component.hpp,sha256=wCv7Im03GqPoTLmtt0bmvxrS12kJN_qjzqONuRZ2YmE,3918
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.5a1.dist-info/METADATA,sha256=2YgrjPzDCZRNuATe0fEXZuJ0O2ZJIf4OUXyRSRszOgw,5025
51
- amulet_core-2.0.5a1.dist-info/WHEEL,sha256=JLOMsP7F5qtkAkINx5UnzbFguf8CqZeraV8o04b0I8I,101
52
- amulet_core-2.0.5a1.dist-info/entry_points.txt,sha256=a64mqk_dgbzVyk-pz0WKpK6kNAhIGdVT9DO2VqDIAc8,68
53
- amulet_core-2.0.5a1.dist-info/top_level.txt,sha256=3ZqHzNDiIb9kV8TwSeeXxK_9haSrsu631Qe4ndDo0rc,7
54
- amulet_core-2.0.5a1.dist-info/RECORD,,
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,,