py2hackCraft2 1.0.23__tar.gz → 1.0.25__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.23
3
+ Version: 1.0.25
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
@@ -578,7 +578,7 @@ class Entity:
578
578
  self.client.sendCall(self.uuid, "addForce", [x, y, z])
579
579
  return str_to_bool(self.client.result)
580
580
 
581
- def jump(self, degrees: int):
581
+ def jump(self):
582
582
  """
583
583
  ジャンプさせる
584
584
  """
@@ -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
  指定された色に近いブロックを取得する
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2hackCraft2
3
- Version: 1.0.23
3
+ Version: 1.0.25
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.23",
8
+ version="1.0.25",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "websocket-client" # websocketライブラリの追加
File without changes
File without changes