py2hackCraft2 1.1.38__tar.gz → 1.1.41__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.
- py2hackcraft2-1.1.41/PKG-INFO +70 -0
- py2hackcraft2-1.1.41/README.md +43 -0
- {py2hackcraft2-1.1.38 → py2hackcraft2-1.1.41}/py2hackCraft/modules.py +86 -5
- py2hackcraft2-1.1.41/py2hackCraft2.egg-info/PKG-INFO +70 -0
- {py2hackcraft2-1.1.38 → py2hackcraft2-1.1.41}/setup.py +1 -1
- py2hackcraft2-1.1.38/PKG-INFO +0 -111
- py2hackcraft2-1.1.38/README.md +0 -84
- py2hackcraft2-1.1.38/py2hackCraft2.egg-info/PKG-INFO +0 -111
- {py2hackcraft2-1.1.38 → py2hackcraft2-1.1.41}/py2hackCraft/__init__.py +0 -0
- {py2hackcraft2-1.1.38 → py2hackcraft2-1.1.41}/py2hackCraft/material.py +0 -0
- {py2hackcraft2-1.1.38 → py2hackcraft2-1.1.41}/py2hackCraft2.egg-info/SOURCES.txt +0 -0
- {py2hackcraft2-1.1.38 → py2hackcraft2-1.1.41}/py2hackCraft2.egg-info/dependency_links.txt +0 -0
- {py2hackcraft2-1.1.38 → py2hackcraft2-1.1.41}/py2hackCraft2.egg-info/requires.txt +0 -0
- {py2hackcraft2-1.1.38 → py2hackcraft2-1.1.41}/py2hackCraft2.egg-info/top_level.txt +0 -0
- {py2hackcraft2-1.1.38 → py2hackcraft2-1.1.41}/pyproject.toml +0 -0
- {py2hackcraft2-1.1.38 → py2hackcraft2-1.1.41}/setup.cfg +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: py2hackCraft2
|
|
3
|
+
Version: 1.1.41
|
|
4
|
+
Summary: Python client library for hackCraft2
|
|
5
|
+
Home-page: https://github.com/0x48lab/hackCraft2-python
|
|
6
|
+
Author: masafumi_t
|
|
7
|
+
Author-email: masafumi_t@0x48lab.com
|
|
8
|
+
Project-URL: Documentation, https://0x48lab.github.io/hackCraft2-python/
|
|
9
|
+
Project-URL: Source, https://github.com/0x48lab/hackCraft2-python
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/0x48lab/hackCraft2-python/issues
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Requires-Python: >=3.7
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
Requires-Dist: websocket-client>=1.6.0
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: author-email
|
|
19
|
+
Dynamic: classifier
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: description-content-type
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: project-url
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: requires-python
|
|
26
|
+
Dynamic: summary
|
|
27
|
+
|
|
28
|
+
# py2hackCraft2
|
|
29
|
+
|
|
30
|
+
Python client library for hackCraft2
|
|
31
|
+
|
|
32
|
+
## 概要
|
|
33
|
+
|
|
34
|
+
py2hackCraft2は、hackCraft2にPythonから接続して命令を送るためのライブラリです。
|
|
35
|
+
|
|
36
|
+
hackCraft2はMinecraft Java Editionのサーバープラグインで、このプラグインを導入することで、Minecraft上でプログラミングが可能になります。hackCraft2の詳細については、[hackCraft2のダウンロードページ](https://github.com/yokmama/8x9Craft-download)をご参照ください。
|
|
37
|
+
|
|
38
|
+
Minecraftについての詳細は、インターネットで検索していただければと思います。
|
|
39
|
+
|
|
40
|
+
py2hackCraft2を使用することで、hackCraft2が導入されたMinecraftサーバーに対して、Pythonから直接命令を送ることができます。
|
|
41
|
+
|
|
42
|
+
## ドキュメント
|
|
43
|
+
|
|
44
|
+
詳細なAPIリファレンスと使用例は[ドキュメント](https://0x48lab.github.io/hackCraft2-python/)を参照してください。
|
|
45
|
+
|
|
46
|
+
## インストール方法
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install py2hackCraft2
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 使用方法
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from py2hackCraft2.modules import Player, Volume, LocationFactory
|
|
56
|
+
|
|
57
|
+
# プレイヤーの接続
|
|
58
|
+
player = Player("your_name")
|
|
59
|
+
player.login("localhost", 25570)
|
|
60
|
+
|
|
61
|
+
# エンティティの取得と操作
|
|
62
|
+
entity = player.get_entity("entity_name")
|
|
63
|
+
entity.set_event_area(Volume.local(10, 10, 10, -10, -10, -10))
|
|
64
|
+
|
|
65
|
+
# その他の操作...
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## ライセンス
|
|
69
|
+
|
|
70
|
+
MIT License
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# py2hackCraft2
|
|
2
|
+
|
|
3
|
+
Python client library for hackCraft2
|
|
4
|
+
|
|
5
|
+
## 概要
|
|
6
|
+
|
|
7
|
+
py2hackCraft2は、hackCraft2にPythonから接続して命令を送るためのライブラリです。
|
|
8
|
+
|
|
9
|
+
hackCraft2はMinecraft Java Editionのサーバープラグインで、このプラグインを導入することで、Minecraft上でプログラミングが可能になります。hackCraft2の詳細については、[hackCraft2のダウンロードページ](https://github.com/yokmama/8x9Craft-download)をご参照ください。
|
|
10
|
+
|
|
11
|
+
Minecraftについての詳細は、インターネットで検索していただければと思います。
|
|
12
|
+
|
|
13
|
+
py2hackCraft2を使用することで、hackCraft2が導入されたMinecraftサーバーに対して、Pythonから直接命令を送ることができます。
|
|
14
|
+
|
|
15
|
+
## ドキュメント
|
|
16
|
+
|
|
17
|
+
詳細なAPIリファレンスと使用例は[ドキュメント](https://0x48lab.github.io/hackCraft2-python/)を参照してください。
|
|
18
|
+
|
|
19
|
+
## インストール方法
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pip install py2hackCraft2
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## 使用方法
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
from py2hackCraft2.modules import Player, Volume, LocationFactory
|
|
29
|
+
|
|
30
|
+
# プレイヤーの接続
|
|
31
|
+
player = Player("your_name")
|
|
32
|
+
player.login("localhost", 25570)
|
|
33
|
+
|
|
34
|
+
# エンティティの取得と操作
|
|
35
|
+
entity = player.get_entity("entity_name")
|
|
36
|
+
entity.set_event_area(Volume.local(10, 10, 10, -10, -10, -10))
|
|
37
|
+
|
|
38
|
+
# その他の操作...
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## ライセンス
|
|
42
|
+
|
|
43
|
+
MIT License
|
|
@@ -585,7 +585,7 @@ class Inventory:
|
|
|
585
585
|
"""
|
|
586
586
|
self.client.send_call(self.entity_uuid, "moveInventoryItem", [self.location.x, self.location.y, self.location.z, from_slot, to_slot])
|
|
587
587
|
|
|
588
|
-
def
|
|
588
|
+
def retrieve_to_self(self, from_slot: int, to_slot: int):
|
|
589
589
|
"""
|
|
590
590
|
チェストから自分のインベントリにアイテムを取り出す
|
|
591
591
|
|
|
@@ -601,7 +601,7 @@ class Inventory:
|
|
|
601
601
|
"""
|
|
602
602
|
self.client.send_call(self.entity_uuid, "retrieveInventoryItem", [self.location.x, self.location.y, self.location.z, to_slot, from_slot])
|
|
603
603
|
|
|
604
|
-
def
|
|
604
|
+
def store_from_self(self, from_slot: int, to_slot: int):
|
|
605
605
|
"""
|
|
606
606
|
自分のインベントリからチェストにアイテムを格納する
|
|
607
607
|
|
|
@@ -1295,12 +1295,37 @@ class Entity:
|
|
|
1295
1295
|
|
|
1296
1296
|
def harvest(self) -> bool:
|
|
1297
1297
|
"""
|
|
1298
|
-
|
|
1298
|
+
自分の位置または足元の作物を収穫する
|
|
1299
|
+
(0, 0, 0) または (0, -1, 0) の位置にある収穫可能な作物を自動的に収穫します
|
|
1299
1300
|
|
|
1300
1301
|
Returns:
|
|
1301
|
-
bool:
|
|
1302
|
+
bool: 収穫が成功した場合はTrue、失敗した場合はFalse
|
|
1303
|
+
"""
|
|
1304
|
+
self.client.send_call(self.uuid, "harvest")
|
|
1305
|
+
return str_to_bool(self.client.result)
|
|
1306
|
+
|
|
1307
|
+
def plant(self) -> bool:
|
|
1308
|
+
"""
|
|
1309
|
+
自分の足元に作物を植える
|
|
1310
|
+
常に無限で、インベントリチェックなし
|
|
1311
|
+
(0, -1, 0) の位置にある耕地に作物を植えます
|
|
1312
|
+
|
|
1313
|
+
Returns:
|
|
1314
|
+
bool: 植えるのが成功した場合はTrue、失敗した場合はFalse
|
|
1315
|
+
"""
|
|
1316
|
+
self.client.send_call(self.uuid, "plant")
|
|
1317
|
+
return str_to_bool(self.client.result)
|
|
1318
|
+
|
|
1319
|
+
def fertilizer(self) -> bool:
|
|
1320
|
+
"""
|
|
1321
|
+
自分の足元の作物に肥料(骨粉)を与える
|
|
1322
|
+
常に無限で、インベントリチェックなし
|
|
1323
|
+
(0, -1, 0) または (0, 0, 0) の位置にある作物に肥料を与えます
|
|
1324
|
+
|
|
1325
|
+
Returns:
|
|
1326
|
+
bool: 肥料を与えるのが成功した場合はTrue、失敗した場合はFalse
|
|
1302
1327
|
"""
|
|
1303
|
-
self.client.send_call(self.uuid, "
|
|
1328
|
+
self.client.send_call(self.uuid, "fertilizer")
|
|
1304
1329
|
return str_to_bool(self.client.result)
|
|
1305
1330
|
|
|
1306
1331
|
def dig(self) -> bool:
|
|
@@ -1356,6 +1381,62 @@ class Entity:
|
|
|
1356
1381
|
self.client.send_call(self.uuid, "plantX", [loc.x, loc.y, loc.z, loc.cord])
|
|
1357
1382
|
return str_to_bool(self.client.result)
|
|
1358
1383
|
|
|
1384
|
+
def harvest_at(self, loc: Location) -> bool:
|
|
1385
|
+
"""
|
|
1386
|
+
指定した座標の作物を収穫する
|
|
1387
|
+
常に無限で、インベントリチェックなし
|
|
1388
|
+
指定された位置にある収穫可能な作物を収穫します
|
|
1389
|
+
|
|
1390
|
+
Args:
|
|
1391
|
+
loc (Location): 座標情報(LocationFactory.absolute/relative/localで生成)
|
|
1392
|
+
|
|
1393
|
+
Returns:
|
|
1394
|
+
bool: 収穫が成功した場合はTrue、失敗した場合はFalse
|
|
1395
|
+
|
|
1396
|
+
Example:
|
|
1397
|
+
.. code-block:: python
|
|
1398
|
+
|
|
1399
|
+
# 絶対座標(100, 64, -200)の作物を収穫
|
|
1400
|
+
loc = LocationFactory.absolute(100, 64, -200)
|
|
1401
|
+
entity.harvest_at(loc)
|
|
1402
|
+
|
|
1403
|
+
.. code-block:: python
|
|
1404
|
+
|
|
1405
|
+
# 自分の足元の作物を収穫
|
|
1406
|
+
loc = LocationFactory.local(0, -1, 0)
|
|
1407
|
+
entity.harvest_at(loc)
|
|
1408
|
+
"""
|
|
1409
|
+
self.client.send_call(self.uuid, "harvestAt", [loc.x, loc.y, loc.z, loc.cord])
|
|
1410
|
+
return str_to_bool(self.client.result)
|
|
1411
|
+
|
|
1412
|
+
def fertilizer_at(self, loc: Location) -> bool:
|
|
1413
|
+
"""
|
|
1414
|
+
指定した座標の作物に肥料(骨粉)を与える
|
|
1415
|
+
常に無限で、インベントリチェックなし
|
|
1416
|
+
指定された位置にある作物に肥料を与えます
|
|
1417
|
+
|
|
1418
|
+
Args:
|
|
1419
|
+
loc (Location): 座標情報(LocationFactory.absolute/relative/localで生成)
|
|
1420
|
+
|
|
1421
|
+
Returns:
|
|
1422
|
+
bool: 肥料を与えるのが成功した場合はTrue、失敗した場合はFalse
|
|
1423
|
+
|
|
1424
|
+
Example:
|
|
1425
|
+
.. code-block:: python
|
|
1426
|
+
|
|
1427
|
+
# 絶対座標(100, 64, -200)の作物に肥料を与える
|
|
1428
|
+
loc = LocationFactory.absolute(100, 64, -200)
|
|
1429
|
+
entity.fertilizer_at(loc)
|
|
1430
|
+
|
|
1431
|
+
.. code-block:: python
|
|
1432
|
+
|
|
1433
|
+
# 自分の足元の作物に肥料を与える
|
|
1434
|
+
loc = LocationFactory.local(0, -1, 0)
|
|
1435
|
+
entity.fertilizer_at(loc)
|
|
1436
|
+
"""
|
|
1437
|
+
self.client.send_call(self.uuid, "fertilizerAt", [loc.x, loc.y, loc.z, loc.cord])
|
|
1438
|
+
return str_to_bool(self.client.result)
|
|
1439
|
+
|
|
1359
1440
|
def till_at(self, loc: Location) -> bool:
|
|
1360
1441
|
"""
|
|
1361
1442
|
指定した座標のブロックを耕す
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: py2hackCraft2
|
|
3
|
+
Version: 1.1.41
|
|
4
|
+
Summary: Python client library for hackCraft2
|
|
5
|
+
Home-page: https://github.com/0x48lab/hackCraft2-python
|
|
6
|
+
Author: masafumi_t
|
|
7
|
+
Author-email: masafumi_t@0x48lab.com
|
|
8
|
+
Project-URL: Documentation, https://0x48lab.github.io/hackCraft2-python/
|
|
9
|
+
Project-URL: Source, https://github.com/0x48lab/hackCraft2-python
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/0x48lab/hackCraft2-python/issues
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Requires-Python: >=3.7
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
Requires-Dist: websocket-client>=1.6.0
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: author-email
|
|
19
|
+
Dynamic: classifier
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: description-content-type
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: project-url
|
|
24
|
+
Dynamic: requires-dist
|
|
25
|
+
Dynamic: requires-python
|
|
26
|
+
Dynamic: summary
|
|
27
|
+
|
|
28
|
+
# py2hackCraft2
|
|
29
|
+
|
|
30
|
+
Python client library for hackCraft2
|
|
31
|
+
|
|
32
|
+
## 概要
|
|
33
|
+
|
|
34
|
+
py2hackCraft2は、hackCraft2にPythonから接続して命令を送るためのライブラリです。
|
|
35
|
+
|
|
36
|
+
hackCraft2はMinecraft Java Editionのサーバープラグインで、このプラグインを導入することで、Minecraft上でプログラミングが可能になります。hackCraft2の詳細については、[hackCraft2のダウンロードページ](https://github.com/yokmama/8x9Craft-download)をご参照ください。
|
|
37
|
+
|
|
38
|
+
Minecraftについての詳細は、インターネットで検索していただければと思います。
|
|
39
|
+
|
|
40
|
+
py2hackCraft2を使用することで、hackCraft2が導入されたMinecraftサーバーに対して、Pythonから直接命令を送ることができます。
|
|
41
|
+
|
|
42
|
+
## ドキュメント
|
|
43
|
+
|
|
44
|
+
詳細なAPIリファレンスと使用例は[ドキュメント](https://0x48lab.github.io/hackCraft2-python/)を参照してください。
|
|
45
|
+
|
|
46
|
+
## インストール方法
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install py2hackCraft2
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 使用方法
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from py2hackCraft2.modules import Player, Volume, LocationFactory
|
|
56
|
+
|
|
57
|
+
# プレイヤーの接続
|
|
58
|
+
player = Player("your_name")
|
|
59
|
+
player.login("localhost", 25570)
|
|
60
|
+
|
|
61
|
+
# エンティティの取得と操作
|
|
62
|
+
entity = player.get_entity("entity_name")
|
|
63
|
+
entity.set_event_area(Volume.local(10, 10, 10, -10, -10, -10))
|
|
64
|
+
|
|
65
|
+
# その他の操作...
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## ライセンス
|
|
69
|
+
|
|
70
|
+
MIT License
|
py2hackcraft2-1.1.38/PKG-INFO
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: py2hackCraft2
|
|
3
|
-
Version: 1.1.38
|
|
4
|
-
Summary: Python client library for hackCraft2
|
|
5
|
-
Home-page: https://github.com/0x48lab/hackCraft2-python
|
|
6
|
-
Author: masafumi_t
|
|
7
|
-
Author-email: masafumi_t@0x48lab.com
|
|
8
|
-
Project-URL: Documentation, https://0x48lab.github.io/hackCraft2-python/
|
|
9
|
-
Project-URL: Source, https://github.com/0x48lab/hackCraft2-python
|
|
10
|
-
Project-URL: Bug Tracker, https://github.com/0x48lab/hackCraft2-python/issues
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
-
Classifier: Operating System :: OS Independent
|
|
14
|
-
Requires-Python: >=3.7
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
Requires-Dist: websocket-client>=1.6.0
|
|
17
|
-
Dynamic: author
|
|
18
|
-
Dynamic: author-email
|
|
19
|
-
Dynamic: classifier
|
|
20
|
-
Dynamic: description
|
|
21
|
-
Dynamic: description-content-type
|
|
22
|
-
Dynamic: home-page
|
|
23
|
-
Dynamic: project-url
|
|
24
|
-
Dynamic: requires-dist
|
|
25
|
-
Dynamic: requires-python
|
|
26
|
-
Dynamic: summary
|
|
27
|
-
|
|
28
|
-
# py2hackCraft
|
|
29
|
-
|
|
30
|
-
Python client library for hackCraft2
|
|
31
|
-
|
|
32
|
-
## ドキュメント
|
|
33
|
-
|
|
34
|
-
詳細なAPIリファレンスと使用例は[ドキュメント](https://github.com/0x48lab/hackCraft2-python)を参照してください。
|
|
35
|
-
|
|
36
|
-
## デプロイ手順
|
|
37
|
-
|
|
38
|
-
### 事前準備
|
|
39
|
-
|
|
40
|
-
1. PyPIアカウントの設定
|
|
41
|
-
- [PyPI](https://pypi.org)でアカウントを作成(まだの場合)
|
|
42
|
-
- Account Settings → API tokens で新しいトークンを生成
|
|
43
|
-
- トークンをGitHubリポジトリのSecretsに追加
|
|
44
|
-
- GitHubリポジトリの Settings → Secrets → New repository secret
|
|
45
|
-
- 名前: `PYPI_API_TOKEN`
|
|
46
|
-
- 値: PyPIで生成したトークン
|
|
47
|
-
|
|
48
|
-
2. パッケージ情報の更新
|
|
49
|
-
- `setup.py`の以下の項目を確認・更新
|
|
50
|
-
- `version`: 新しいバージョン番号(セマンティックバージョニング推奨)
|
|
51
|
-
- `author`: 作者名
|
|
52
|
-
- `author_email`: 連絡先メールアドレス
|
|
53
|
-
- `url`: GitHubリポジトリのURL
|
|
54
|
-
- `description`: パッケージの説明
|
|
55
|
-
- `README.md`の更新(必要に応じて)
|
|
56
|
-
- ドキュメントの更新(必要に応じて)
|
|
57
|
-
|
|
58
|
-
### デプロイ方法
|
|
59
|
-
|
|
60
|
-
1. 変更をコミット
|
|
61
|
-
```bash
|
|
62
|
-
git add .
|
|
63
|
-
git commit -m "Update package information and documentation"
|
|
64
|
-
git push origin main
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
2. 新しいバージョンのタグを作成してプッシュ
|
|
68
|
-
```bash
|
|
69
|
-
git tag v0.1.0 # バージョン番号を適切に設定
|
|
70
|
-
git push origin v0.1.0
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
3. GitHub Actionsの実行
|
|
74
|
-
- タグがプッシュされると、自動的にGitHub Actionsが実行されます
|
|
75
|
-
- Actionsタブでデプロイの進行状況を確認できます
|
|
76
|
-
- 成功すると、新しいバージョンがPyPIに公開されます
|
|
77
|
-
- ドキュメントがGitHub Pagesに自動的にデプロイされます
|
|
78
|
-
|
|
79
|
-
### 注意事項
|
|
80
|
-
|
|
81
|
-
- バージョン番号は必ず更新してください(同じバージョンでの再デプロイはできません)
|
|
82
|
-
- PyPIトークンは安全に管理し、GitHub Secretsとして保存してください
|
|
83
|
-
- デプロイ前に`setup.py`と`README.md`の内容が正しいことを確認してください
|
|
84
|
-
- テストを実行して、パッケージが正しく動作することを確認してください
|
|
85
|
-
- ドキュメントの更新が必要な場合は、`docs/`ディレクトリ内のファイルを編集してください
|
|
86
|
-
|
|
87
|
-
## インストール方法
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
pip install py2hackCraft
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## 使用方法
|
|
94
|
-
|
|
95
|
-
```python
|
|
96
|
-
from py2hackCraft.modules import Player, Volume, LocationFactory
|
|
97
|
-
|
|
98
|
-
# プレイヤーの接続
|
|
99
|
-
player = Player("your_name")
|
|
100
|
-
player.login("localhost", 25570)
|
|
101
|
-
|
|
102
|
-
# エンティティの取得と操作
|
|
103
|
-
entity = player.get_entity("entity_name")
|
|
104
|
-
entity.set_event_area(Volume.local(10, 10, 10, -10, -10, -10))
|
|
105
|
-
|
|
106
|
-
# その他の操作...
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## ライセンス
|
|
110
|
-
|
|
111
|
-
MIT License
|
py2hackcraft2-1.1.38/README.md
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# py2hackCraft
|
|
2
|
-
|
|
3
|
-
Python client library for hackCraft2
|
|
4
|
-
|
|
5
|
-
## ドキュメント
|
|
6
|
-
|
|
7
|
-
詳細なAPIリファレンスと使用例は[ドキュメント](https://github.com/0x48lab/hackCraft2-python)を参照してください。
|
|
8
|
-
|
|
9
|
-
## デプロイ手順
|
|
10
|
-
|
|
11
|
-
### 事前準備
|
|
12
|
-
|
|
13
|
-
1. PyPIアカウントの設定
|
|
14
|
-
- [PyPI](https://pypi.org)でアカウントを作成(まだの場合)
|
|
15
|
-
- Account Settings → API tokens で新しいトークンを生成
|
|
16
|
-
- トークンをGitHubリポジトリのSecretsに追加
|
|
17
|
-
- GitHubリポジトリの Settings → Secrets → New repository secret
|
|
18
|
-
- 名前: `PYPI_API_TOKEN`
|
|
19
|
-
- 値: PyPIで生成したトークン
|
|
20
|
-
|
|
21
|
-
2. パッケージ情報の更新
|
|
22
|
-
- `setup.py`の以下の項目を確認・更新
|
|
23
|
-
- `version`: 新しいバージョン番号(セマンティックバージョニング推奨)
|
|
24
|
-
- `author`: 作者名
|
|
25
|
-
- `author_email`: 連絡先メールアドレス
|
|
26
|
-
- `url`: GitHubリポジトリのURL
|
|
27
|
-
- `description`: パッケージの説明
|
|
28
|
-
- `README.md`の更新(必要に応じて)
|
|
29
|
-
- ドキュメントの更新(必要に応じて)
|
|
30
|
-
|
|
31
|
-
### デプロイ方法
|
|
32
|
-
|
|
33
|
-
1. 変更をコミット
|
|
34
|
-
```bash
|
|
35
|
-
git add .
|
|
36
|
-
git commit -m "Update package information and documentation"
|
|
37
|
-
git push origin main
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
2. 新しいバージョンのタグを作成してプッシュ
|
|
41
|
-
```bash
|
|
42
|
-
git tag v0.1.0 # バージョン番号を適切に設定
|
|
43
|
-
git push origin v0.1.0
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
3. GitHub Actionsの実行
|
|
47
|
-
- タグがプッシュされると、自動的にGitHub Actionsが実行されます
|
|
48
|
-
- Actionsタブでデプロイの進行状況を確認できます
|
|
49
|
-
- 成功すると、新しいバージョンがPyPIに公開されます
|
|
50
|
-
- ドキュメントがGitHub Pagesに自動的にデプロイされます
|
|
51
|
-
|
|
52
|
-
### 注意事項
|
|
53
|
-
|
|
54
|
-
- バージョン番号は必ず更新してください(同じバージョンでの再デプロイはできません)
|
|
55
|
-
- PyPIトークンは安全に管理し、GitHub Secretsとして保存してください
|
|
56
|
-
- デプロイ前に`setup.py`と`README.md`の内容が正しいことを確認してください
|
|
57
|
-
- テストを実行して、パッケージが正しく動作することを確認してください
|
|
58
|
-
- ドキュメントの更新が必要な場合は、`docs/`ディレクトリ内のファイルを編集してください
|
|
59
|
-
|
|
60
|
-
## インストール方法
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
pip install py2hackCraft
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## 使用方法
|
|
67
|
-
|
|
68
|
-
```python
|
|
69
|
-
from py2hackCraft.modules import Player, Volume, LocationFactory
|
|
70
|
-
|
|
71
|
-
# プレイヤーの接続
|
|
72
|
-
player = Player("your_name")
|
|
73
|
-
player.login("localhost", 25570)
|
|
74
|
-
|
|
75
|
-
# エンティティの取得と操作
|
|
76
|
-
entity = player.get_entity("entity_name")
|
|
77
|
-
entity.set_event_area(Volume.local(10, 10, 10, -10, -10, -10))
|
|
78
|
-
|
|
79
|
-
# その他の操作...
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## ライセンス
|
|
83
|
-
|
|
84
|
-
MIT License
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: py2hackCraft2
|
|
3
|
-
Version: 1.1.38
|
|
4
|
-
Summary: Python client library for hackCraft2
|
|
5
|
-
Home-page: https://github.com/0x48lab/hackCraft2-python
|
|
6
|
-
Author: masafumi_t
|
|
7
|
-
Author-email: masafumi_t@0x48lab.com
|
|
8
|
-
Project-URL: Documentation, https://0x48lab.github.io/hackCraft2-python/
|
|
9
|
-
Project-URL: Source, https://github.com/0x48lab/hackCraft2-python
|
|
10
|
-
Project-URL: Bug Tracker, https://github.com/0x48lab/hackCraft2-python/issues
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
-
Classifier: Operating System :: OS Independent
|
|
14
|
-
Requires-Python: >=3.7
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
Requires-Dist: websocket-client>=1.6.0
|
|
17
|
-
Dynamic: author
|
|
18
|
-
Dynamic: author-email
|
|
19
|
-
Dynamic: classifier
|
|
20
|
-
Dynamic: description
|
|
21
|
-
Dynamic: description-content-type
|
|
22
|
-
Dynamic: home-page
|
|
23
|
-
Dynamic: project-url
|
|
24
|
-
Dynamic: requires-dist
|
|
25
|
-
Dynamic: requires-python
|
|
26
|
-
Dynamic: summary
|
|
27
|
-
|
|
28
|
-
# py2hackCraft
|
|
29
|
-
|
|
30
|
-
Python client library for hackCraft2
|
|
31
|
-
|
|
32
|
-
## ドキュメント
|
|
33
|
-
|
|
34
|
-
詳細なAPIリファレンスと使用例は[ドキュメント](https://github.com/0x48lab/hackCraft2-python)を参照してください。
|
|
35
|
-
|
|
36
|
-
## デプロイ手順
|
|
37
|
-
|
|
38
|
-
### 事前準備
|
|
39
|
-
|
|
40
|
-
1. PyPIアカウントの設定
|
|
41
|
-
- [PyPI](https://pypi.org)でアカウントを作成(まだの場合)
|
|
42
|
-
- Account Settings → API tokens で新しいトークンを生成
|
|
43
|
-
- トークンをGitHubリポジトリのSecretsに追加
|
|
44
|
-
- GitHubリポジトリの Settings → Secrets → New repository secret
|
|
45
|
-
- 名前: `PYPI_API_TOKEN`
|
|
46
|
-
- 値: PyPIで生成したトークン
|
|
47
|
-
|
|
48
|
-
2. パッケージ情報の更新
|
|
49
|
-
- `setup.py`の以下の項目を確認・更新
|
|
50
|
-
- `version`: 新しいバージョン番号(セマンティックバージョニング推奨)
|
|
51
|
-
- `author`: 作者名
|
|
52
|
-
- `author_email`: 連絡先メールアドレス
|
|
53
|
-
- `url`: GitHubリポジトリのURL
|
|
54
|
-
- `description`: パッケージの説明
|
|
55
|
-
- `README.md`の更新(必要に応じて)
|
|
56
|
-
- ドキュメントの更新(必要に応じて)
|
|
57
|
-
|
|
58
|
-
### デプロイ方法
|
|
59
|
-
|
|
60
|
-
1. 変更をコミット
|
|
61
|
-
```bash
|
|
62
|
-
git add .
|
|
63
|
-
git commit -m "Update package information and documentation"
|
|
64
|
-
git push origin main
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
2. 新しいバージョンのタグを作成してプッシュ
|
|
68
|
-
```bash
|
|
69
|
-
git tag v0.1.0 # バージョン番号を適切に設定
|
|
70
|
-
git push origin v0.1.0
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
3. GitHub Actionsの実行
|
|
74
|
-
- タグがプッシュされると、自動的にGitHub Actionsが実行されます
|
|
75
|
-
- Actionsタブでデプロイの進行状況を確認できます
|
|
76
|
-
- 成功すると、新しいバージョンがPyPIに公開されます
|
|
77
|
-
- ドキュメントがGitHub Pagesに自動的にデプロイされます
|
|
78
|
-
|
|
79
|
-
### 注意事項
|
|
80
|
-
|
|
81
|
-
- バージョン番号は必ず更新してください(同じバージョンでの再デプロイはできません)
|
|
82
|
-
- PyPIトークンは安全に管理し、GitHub Secretsとして保存してください
|
|
83
|
-
- デプロイ前に`setup.py`と`README.md`の内容が正しいことを確認してください
|
|
84
|
-
- テストを実行して、パッケージが正しく動作することを確認してください
|
|
85
|
-
- ドキュメントの更新が必要な場合は、`docs/`ディレクトリ内のファイルを編集してください
|
|
86
|
-
|
|
87
|
-
## インストール方法
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
pip install py2hackCraft
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## 使用方法
|
|
94
|
-
|
|
95
|
-
```python
|
|
96
|
-
from py2hackCraft.modules import Player, Volume, LocationFactory
|
|
97
|
-
|
|
98
|
-
# プレイヤーの接続
|
|
99
|
-
player = Player("your_name")
|
|
100
|
-
player.login("localhost", 25570)
|
|
101
|
-
|
|
102
|
-
# エンティティの取得と操作
|
|
103
|
-
entity = player.get_entity("entity_name")
|
|
104
|
-
entity.set_event_area(Volume.local(10, 10, 10, -10, -10, -10))
|
|
105
|
-
|
|
106
|
-
# その他の操作...
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## ライセンス
|
|
110
|
-
|
|
111
|
-
MIT License
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|