py2hackCraft2 1.0.27__tar.gz → 1.0.29__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.
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/PKG-INFO +1 -1
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/py2hackCraft/modules.py +24 -1
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/py2hackCraft2.egg-info/PKG-INFO +1 -1
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/setup.py +1 -1
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/README.md +0 -0
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/py2hackCraft/__init__.py +0 -0
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/py2hackCraft/material.py +0 -0
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/py2hackCraft2.egg-info/SOURCES.txt +0 -0
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/py2hackCraft2.egg-info/dependency_links.txt +0 -0
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/py2hackCraft2.egg-info/requires.txt +0 -0
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/py2hackCraft2.egg-info/top_level.txt +0 -0
- {py2hackcraft2-1.0.27 → py2hackcraft2-1.0.29}/setup.cfg +0 -0
|
@@ -879,6 +879,29 @@ class Entity:
|
|
|
879
879
|
"""
|
|
880
880
|
self.client.sendCall(self.uuid, "sendChat", [message])
|
|
881
881
|
|
|
882
|
+
def findNearbyBlockX(self, x: int, y: int, z: int, cord: Coordinates, block: str, maxDepth: int) -> Block :
|
|
883
|
+
"""
|
|
884
|
+
指定された座標を中心に近くのブロックを取得する
|
|
885
|
+
|
|
886
|
+
Args:
|
|
887
|
+
x (int): X座標
|
|
888
|
+
y (int): Y座標
|
|
889
|
+
z (int): Z座標
|
|
890
|
+
cord (Coordinates): 座標の種類('', '^', '~')
|
|
891
|
+
block (str): ブロックの名前( "water:0" など)
|
|
892
|
+
maxDepth (int): 探索する最大の深さ
|
|
893
|
+
Returns:
|
|
894
|
+
Block: 調べたブロックの情報
|
|
895
|
+
"""
|
|
896
|
+
self.client.sendCall(self.uuid, "findNearbyBlockX", [x, y, z, cord, block, maxDepth])
|
|
897
|
+
result = json.loads(self.client.result)
|
|
898
|
+
|
|
899
|
+
if not result: # resultが空の辞書であれば
|
|
900
|
+
return None
|
|
901
|
+
|
|
902
|
+
block = Block(**result)
|
|
903
|
+
return block
|
|
904
|
+
|
|
882
905
|
def inspectX(self, x: int, y: int, z: int, cord: Coordinates = Coordinates.local) -> Block :
|
|
883
906
|
"""
|
|
884
907
|
指定された座標のブロックを調べる
|
|
@@ -912,7 +935,7 @@ class Entity:
|
|
|
912
935
|
|
|
913
936
|
def inspect(self) -> Block :
|
|
914
937
|
"""
|
|
915
|
-
|
|
938
|
+
自分の前方のブロックを調べる
|
|
916
939
|
|
|
917
940
|
Returns:
|
|
918
941
|
Block: 調べたブロックの情報
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|