py2hackCraft2 1.0.13__tar.gz → 1.0.14__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.13
3
+ Version: 1.0.14
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
@@ -620,6 +620,13 @@ class Entity:
620
620
  self.client.sendCall(self.uuid, "digX", [0, 0, 0])
621
621
  return str_to_bool(self.client.result)
622
622
 
623
+ def attack(self) -> bool :
624
+ """
625
+ 自分の前方を攻撃する。
626
+ """
627
+ self.client.sendCall(self.uuid, "attack")
628
+ return str_to_bool(self.client.result)
629
+
623
630
  def dig(self) -> bool :
624
631
  """
625
632
  自分の前方のブロックを壊す。
@@ -648,6 +655,27 @@ class Entity:
648
655
  self.client.sendCall(self.uuid, "digX", [x, y, z])
649
656
  return str_to_bool(self.client.result)
650
657
 
658
+ def action(self) -> bool :
659
+ """
660
+ 自分の前方の装置を使う。
661
+ """
662
+ self.client.sendCall(self.uuid, "actionFront")
663
+ return str_to_bool(self.client.result)
664
+
665
+ def actionUp(self) -> bool :
666
+ """
667
+ 自分の真上の装置を使う。
668
+ """
669
+ self.client.sendCall(self.uuid, "actionUp")
670
+ return str_to_bool(self.client.result)
671
+
672
+ def actionDown(self) -> bool :
673
+ """
674
+ 自分の真下の装置を使う。
675
+ """
676
+ self.client.sendCall(self.uuid, "actionDown")
677
+ return str_to_bool(self.client.result)
678
+
651
679
  def setItem(self, slot: int, block: str) -> bool :
652
680
  """
653
681
  自分のインベントリにアイテムを設定する。
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py2hackCraft2
3
- Version: 1.0.13
3
+ Version: 1.0.14
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.13",
8
+ version="1.0.14",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "websocket-client" # websocketライブラリの追加
File without changes
File without changes