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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2hackCraft2
3
- Version: 1.0.22
3
+ Version: 1.0.23
4
4
  Summary: These are APIs that connect to the hackCraft2 server from Python to manipulate pets.
5
5
  Home-page: https://pypi.org/project/py2hackCraft2/
6
6
  Author: Masafumi Terazono
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2hackCraft2
3
- Version: 1.0.22
3
+ Version: 1.0.23
4
4
  Summary: These are APIs that connect to the hackCraft2 server from Python to manipulate pets.
5
5
  Home-page: https://pypi.org/project/py2hackCraft2/
6
6
  Author: Masafumi Terazono
@@ -5,7 +5,7 @@ long_description = (this_directory / "py2hackCraft/README.md").read_text()
5
5
 
6
6
  setup(
7
7
  name="py2hackCraft2",
8
- version="1.0.22",
8
+ version="1.0.23",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "websocket-client" # websocketライブラリの追加
File without changes
File without changes