py2hackCraft2 1.0.22__tar.gz → 1.0.23__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.22 → py2hackcraft2-1.0.23}/PKG-INFO +1 -1
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/py2hackCraft/modules.py +3 -22
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/py2hackCraft2.egg-info/PKG-INFO +1 -1
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/setup.py +1 -1
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/README.md +0 -0
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/py2hackCraft/__init__.py +0 -0
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/py2hackCraft/material.py +0 -0
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/py2hackCraft2.egg-info/SOURCES.txt +0 -0
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/py2hackCraft2.egg-info/dependency_links.txt +0 -0
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/py2hackCraft2.egg-info/requires.txt +0 -0
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/py2hackCraft2.egg-info/top_level.txt +0 -0
- {py2hackcraft2-1.0.22 → py2hackcraft2-1.0.23}/setup.cfg +0 -0
|
@@ -450,25 +450,6 @@ class Entity:
|
|
|
450
450
|
self.client.waitFor(self.uuid, 'onEntityRedstone')
|
|
451
451
|
return RedstonePower(** self.client.result)
|
|
452
452
|
|
|
453
|
-
def waitForBreakBlock(self):
|
|
454
|
-
"""
|
|
455
|
-
プレイヤーがブロックをこわすまで待つ
|
|
456
|
-
"""
|
|
457
|
-
self.client.waitFor(self.uuid, 'onPlayerBlockBreak')
|
|
458
|
-
return Block(** self.client.result)
|
|
459
|
-
|
|
460
|
-
def setOnInteractEvent(self, callbackFunc: Callable[['Entity', 'InteractEvent'], Any]):
|
|
461
|
-
"""
|
|
462
|
-
プレイヤーがイベントアイテムを使った時に呼び出されるコールバック関数を設定する
|
|
463
|
-
"""
|
|
464
|
-
def callbackWrapper(data):
|
|
465
|
-
logging.debug("onInteractEvent callbackWrapper '%s'" % data)
|
|
466
|
-
if(data['entityUuid'] == self.uuid):
|
|
467
|
-
logging.debug("callbackWrapper '%s'" % data)
|
|
468
|
-
event = InteractEvent(**data["event"])
|
|
469
|
-
callbackFunc(self, event)
|
|
470
|
-
self.client.setCallback('onInteractEvent', callbackWrapper)
|
|
471
|
-
|
|
472
453
|
def setOnMessage(self, callbackFunc: Callable[['Entity', str], Any]):
|
|
473
454
|
"""
|
|
474
455
|
カスタムイベントメッセージを受信したときに呼び出されるコールバック関数を設定する
|
|
@@ -1047,21 +1028,21 @@ class Entity:
|
|
|
1047
1028
|
|
|
1048
1029
|
def getDistance(self) -> float :
|
|
1049
1030
|
"""
|
|
1050
|
-
|
|
1031
|
+
自分と前方のなにかとの距離を調べる
|
|
1051
1032
|
"""
|
|
1052
1033
|
self.client.sendCall(self.uuid, "getTargetDistanceFront")
|
|
1053
1034
|
return self.client.result
|
|
1054
1035
|
|
|
1055
1036
|
def getDistanceUp(self) -> float :
|
|
1056
1037
|
"""
|
|
1057
|
-
|
|
1038
|
+
自分と真上のなにかとの距離を調べる
|
|
1058
1039
|
"""
|
|
1059
1040
|
self.client.sendCall(self.uuid, "getTargetDistanceUp")
|
|
1060
1041
|
return float(self.client.result)
|
|
1061
1042
|
|
|
1062
1043
|
def getDistanceDown(self) -> float :
|
|
1063
1044
|
"""
|
|
1064
|
-
|
|
1045
|
+
自分と真下のなにかとの距離を調べる
|
|
1065
1046
|
"""
|
|
1066
1047
|
self.client.sendCall(self.uuid, "getTargetDistanceDown")
|
|
1067
1048
|
return self.client.result
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|