mcapibridge 0.2.0__tar.gz → 0.2.2__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.
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/PKG-INFO +3 -1
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/README.MD +2 -0
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/pyproject.toml +1 -1
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/src/mc/__init__.py +2 -1
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/src/mc/minecraft.py +0 -16
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/src/mcapibridge.egg-info/PKG-INFO +3 -1
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/LICENSE +0 -0
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/setup.cfg +0 -0
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/src/mcapibridge.egg-info/SOURCES.txt +0 -0
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/src/mcapibridge.egg-info/dependency_links.txt +0 -0
- {mcapibridge-0.2.0 → mcapibridge-0.2.2}/src/mcapibridge.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcapibridge
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Python libary for MCAPIBridge
|
|
5
5
|
Author: TaotianZhufang
|
|
6
6
|
License: MIT License
|
|
@@ -39,6 +39,8 @@ MCAPIBridge is a mod for Minecraft loaded with Fabric.This libary offers some wa
|
|
|
39
39
|
### Install
|
|
40
40
|
Ensure your mod loaded.
|
|
41
41
|
|
|
42
|
+
**Please ensure you are using the latest libary.Now version is 0.2.1.**
|
|
43
|
+
|
|
42
44
|
Use pip to install this.
|
|
43
45
|
```
|
|
44
46
|
pip install mcapibridge
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from .minecraft import Minecraft, Vec3, PlayerPos, BlockHit, ChatPost
|
|
1
|
+
from .minecraft import Minecraft, Vec3, PlayerPos, BlockHit, ChatPost, AudioManager
|
|
2
2
|
|
|
3
3
|
__all__ = [
|
|
4
4
|
"Minecraft",
|
|
@@ -6,4 +6,5 @@ __all__ = [
|
|
|
6
6
|
"PlayerPos",
|
|
7
7
|
"BlockHit",
|
|
8
8
|
"ChatPost",
|
|
9
|
+
"AudioManager",
|
|
9
10
|
]
|
|
@@ -452,20 +452,4 @@ class Minecraft:
|
|
|
452
452
|
cmd = f"block.setNbt({int(x)},{int(y)},{int(z)},{nbt_string})"
|
|
453
453
|
if dimension: cmd += f",{dimension}"
|
|
454
454
|
self._send(cmd)
|
|
455
|
-
|
|
456
|
-
def drawHandMap(self, pixels, target=None):
|
|
457
|
-
"""
|
|
458
|
-
绘制指定玩家手中的地图
|
|
459
|
-
"""
|
|
460
|
-
CHUNK_SIZE = 1024
|
|
461
|
-
for i in range(0, len(pixels), CHUNK_SIZE):
|
|
462
|
-
chunk = pixels[i : i + CHUNK_SIZE]
|
|
463
|
-
data_str = ",".join(map(str, chunk))
|
|
464
|
-
|
|
465
|
-
cmd = f"map.drawHand({i},{data_str})"
|
|
466
|
-
if target:
|
|
467
|
-
cmd += f",{target}"
|
|
468
|
-
|
|
469
|
-
self._send(cmd)
|
|
470
|
-
time.sleep(0.01)
|
|
471
455
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcapibridge
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Python libary for MCAPIBridge
|
|
5
5
|
Author: TaotianZhufang
|
|
6
6
|
License: MIT License
|
|
@@ -39,6 +39,8 @@ MCAPIBridge is a mod for Minecraft loaded with Fabric.This libary offers some wa
|
|
|
39
39
|
### Install
|
|
40
40
|
Ensure your mod loaded.
|
|
41
41
|
|
|
42
|
+
**Please ensure you are using the latest libary.Now version is 0.2.1.**
|
|
43
|
+
|
|
42
44
|
Use pip to install this.
|
|
43
45
|
```
|
|
44
46
|
pip install mcapibridge
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|