py2hackCraft2 1.0.23__tar.gz → 1.0.24__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.23 → py2hackcraft2-1.0.24}/PKG-INFO +1 -1
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/py2hackCraft/modules.py +0 -36
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/py2hackCraft2.egg-info/PKG-INFO +1 -1
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/setup.py +1 -1
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/README.md +0 -0
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/py2hackCraft/__init__.py +0 -0
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/py2hackCraft/material.py +0 -0
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/py2hackCraft2.egg-info/SOURCES.txt +0 -0
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/py2hackCraft2.egg-info/dependency_links.txt +0 -0
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/py2hackCraft2.egg-info/requires.txt +0 -0
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/py2hackCraft2.egg-info/top_level.txt +0 -0
- {py2hackcraft2-1.0.23 → py2hackcraft2-1.0.24}/setup.cfg +0 -0
|
@@ -1015,17 +1015,6 @@ class Entity:
|
|
|
1015
1015
|
self.client.sendCall(self.uuid, "isCanDigDown")
|
|
1016
1016
|
return str_to_bool(self.client.result)
|
|
1017
1017
|
|
|
1018
|
-
def lookAtTarget(self, uuid) -> bool:
|
|
1019
|
-
"""
|
|
1020
|
-
指定されたエンティティを見る
|
|
1021
|
-
Args:
|
|
1022
|
-
uuid (str): エンティティのUUID
|
|
1023
|
-
Returns:
|
|
1024
|
-
bool: 調べた結果
|
|
1025
|
-
"""
|
|
1026
|
-
self.client.sendCall(self.uuid, "lookAtTarget", [uuid])
|
|
1027
|
-
return str_to_bool(self.client.result)
|
|
1028
|
-
|
|
1029
1018
|
def getDistance(self) -> float :
|
|
1030
1019
|
"""
|
|
1031
1020
|
自分と前方のなにかとの距離を調べる
|
|
@@ -1054,31 +1043,6 @@ class Entity:
|
|
|
1054
1043
|
self.client.sendCall(self.uuid, "getTargetDistance", [uuid])
|
|
1055
1044
|
return self.client.result
|
|
1056
1045
|
|
|
1057
|
-
def setBlock(self, x: int, y: int, z: int, block: str, data: int = 0):
|
|
1058
|
-
"""
|
|
1059
|
-
指定された座標にブロックを設置する(クリエイティブ)
|
|
1060
|
-
|
|
1061
|
-
Args:
|
|
1062
|
-
x (int): 絶対的なX座標
|
|
1063
|
-
y (int): 絶対的なY座標
|
|
1064
|
-
z (int): 絶対的なZ座標
|
|
1065
|
-
block (str): 設置するブロックの種類
|
|
1066
|
-
"""
|
|
1067
|
-
self.client.sendCall(self.uuid, "setBlock", [x, y, z, "", block, data])
|
|
1068
|
-
|
|
1069
|
-
def getBlock(self, x: int, y: int, z: int) -> Block :
|
|
1070
|
-
"""
|
|
1071
|
-
指定された座標のブロックを取得する
|
|
1072
|
-
|
|
1073
|
-
Args:
|
|
1074
|
-
x (int): 絶対的なX座標
|
|
1075
|
-
y (int): 絶対的なY座標
|
|
1076
|
-
z (int): 絶対的なZ座標
|
|
1077
|
-
"""
|
|
1078
|
-
self.client.sendCall(self.uuid, "getBlock", [x, y, z])
|
|
1079
|
-
block = Block(** json.loads(self.client.result))
|
|
1080
|
-
return block
|
|
1081
|
-
|
|
1082
1046
|
def getBlockByColor(self, color: str) -> Block :
|
|
1083
1047
|
"""
|
|
1084
1048
|
指定された色に近いブロックを取得する
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|