py2hackCraft2 1.0.21__tar.gz → 1.0.22__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.21
3
+ Version: 1.0.22
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
@@ -612,7 +612,7 @@ class Entity:
612
612
  """
613
613
  self.client.sendCall(self.uuid, "turn", [degrees])
614
614
 
615
- def placeX(self, x: int, y: int, z: int, cord: Coordinates, block=None, side=None,) -> bool :
615
+ def placeX(self, x: int, y: int, z: int, cord: Coordinates=Coordinates.local, side=None,) -> bool :
616
616
  """
617
617
  指定した座標にブロックを設置する
618
618
 
@@ -621,13 +621,12 @@ class Entity:
621
621
  y (int): Y座標
622
622
  z (int): Z座標
623
623
  cord (Coordinates): 座標の種類('', '^', '~')
624
- block (str): 設置するブロックの種類
625
624
  side (str): 設置する面
626
625
  """
627
- self.client.sendCall(self.uuid, "placeX", [x, y, z, cord, side, block])
626
+ self.client.sendCall(self.uuid, "placeX", [x, y, z, cord, side])
628
627
  return str_to_bool(self.client.result)
629
628
 
630
- def placeHere(self, x: int, y: int, z: int, block=None, side=None) -> bool :
629
+ def placeHere(self, x: int, y: int, z: int, side=None) -> bool :
631
630
  """
632
631
  自分を中心に指定した座標にブロックを設置する
633
632
 
@@ -635,10 +634,9 @@ class Entity:
635
634
  x (int): X座標
636
635
  y (int): Y座標
637
636
  z (int): Z座標
638
- block (str): 設置するブロックの種類
639
637
  side (str): 設置する面
640
638
  """
641
- self.client.sendCall(self.uuid, "placeX", [x, y, z, "^", side, block])
639
+ self.client.sendCall(self.uuid, "placeX", [x, y, z, "^", side])
642
640
  return str_to_bool(self.client.result)
643
641
 
644
642
  def place(self, side=None) -> bool :
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2hackCraft2
3
- Version: 1.0.21
3
+ Version: 1.0.22
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.21",
8
+ version="1.0.22",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "websocket-client" # websocketライブラリの追加
File without changes
File without changes