py2hackCraft2 1.0.31__tar.gz → 1.0.32__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.31
3
+ Version: 1.0.32
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,6 +5,7 @@ import json
5
5
  import logging
6
6
  from dataclasses import dataclass
7
7
  from typing import Callable, Any
8
+ from typing import Optional
8
9
 
9
10
  def str_to_bool(s):
10
11
  """
@@ -879,7 +880,7 @@ class Entity:
879
880
  """
880
881
  self.client.sendCall(self.uuid, "sendChat", [message])
881
882
 
882
- def findNearbyBlockX(self, x: int, y: int, z: int, cord: Coordinates, block: str, maxDepth: int) -> Block :
883
+ def findNearbyBlockX(self, x: int, y: int, z: int, cord: Coordinates, block: str, maxDepth: int) -> Optional[Block]:
883
884
  """
884
885
  指定された座標を中心に近くのブロックを取得する
885
886
 
@@ -895,6 +896,7 @@ class Entity:
895
896
  """
896
897
  self.client.sendCall(self.uuid, "findNearbyBlockX", [x, y, z, cord, block, maxDepth])
897
898
 
899
+ print('result = ', self.client.result)
898
900
  # resultがNoneまたは空のケースに対応
899
901
  if not self.client.result:
900
902
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2hackCraft2
3
- Version: 1.0.31
3
+ Version: 1.0.32
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.31",
8
+ version="1.0.32",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "websocket-client" # websocketライブラリの追加
File without changes
File without changes