py2hackCraft2 1.0.18__tar.gz → 1.0.19__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.18
3
+ Version: 1.0.19
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
@@ -10,3 +10,7 @@ build:
10
10
  deploy:
11
11
  <command>
12
12
  twine upload --repository-url https://upload.pypi.org/legacy/ dist/* -u "__token__"
13
+
14
+ doc:
15
+ <command>
16
+ make html
@@ -937,6 +937,34 @@ class Entity:
937
937
  self.client.sendCall(self.uuid, "isBlockedDown")
938
938
  return str_to_bool(self.client.result)
939
939
 
940
+
941
+ def canDig(self) -> bool :
942
+ """
943
+ 自分の前方のブロックが壊せるかどうか調べる。
944
+ Returns:
945
+ bool: 調べた結果。
946
+ """
947
+ self.client.sendCall(self.uuid, "isCanDigFront")
948
+ return str_to_bool(self.client.result)
949
+
950
+ def canDigUp(self) -> bool :
951
+ """
952
+ 自分の上のブロックが壊せるかどうか調べる。
953
+ Returns:
954
+ bool: 調べた結果。
955
+ """
956
+ self.client.sendCall(self.uuid, "isCanDigUp")
957
+ return str_to_bool(self.client.result)
958
+
959
+ def canDigDown(self) -> bool :
960
+ """
961
+ 自分の下のブロックが壊せるかどうか調べる。
962
+ Returns:
963
+ bool: 調べた結果。
964
+ """
965
+ self.client.sendCall(self.uuid, "isCanDigDown")
966
+ return str_to_bool(self.client.result)
967
+
940
968
  def lookAtTarget(self, uuid) -> bool:
941
969
  """
942
970
  指定されたエンティティを見る。
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2hackCraft2
3
- Version: 1.0.18
3
+ Version: 1.0.19
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.18",
8
+ version="1.0.19",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "websocket-client" # websocketライブラリの追加
File without changes