pumpkin-api-py 0.1.0__py3-none-any.whl
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.
- componentize_py_async_support/__init__.py +570 -0
- componentize_py_async_support/futures.py +149 -0
- componentize_py_async_support/streams.py +345 -0
- componentize_py_runtime.pyi +40 -0
- componentize_py_types.py +32 -0
- poll_loop.py +440 -0
- pumpkin_api/__init__.py +41 -0
- pumpkin_api/build.py +68 -0
- pumpkin_api/impl.py +355 -0
- pumpkin_api/wit/advancement.wit +41 -0
- pumpkin_api/wit/attributes.wit +56 -0
- pumpkin_api/wit/bedrock-packets.wit +1709 -0
- pumpkin_api/wit/biomes.wit +72 -0
- pumpkin_api/wit/block-entity.wit +423 -0
- pumpkin_api/wit/boss-bar.wit +83 -0
- pumpkin_api/wit/command.wit +244 -0
- pumpkin_api/wit/common.wit +261 -0
- pumpkin_api/wit/context.wit +61 -0
- pumpkin_api/wit/damage-types.wit +57 -0
- pumpkin_api/wit/data-components.wit +117 -0
- pumpkin_api/wit/datapack.wit +54 -0
- pumpkin_api/wit/display.wit +171 -0
- pumpkin_api/wit/enchantments.wit +102 -0
- pumpkin_api/wit/entity-statuses.wit +68 -0
- pumpkin_api/wit/entity-types.wit +164 -0
- pumpkin_api/wit/entity.wit +1 -0
- pumpkin_api/wit/event.wit +2435 -0
- pumpkin_api/wit/forms.wit +51 -0
- pumpkin_api/wit/game-events.wit +67 -0
- pumpkin_api/wit/game-rules.wit +69 -0
- pumpkin_api/wit/gui.wit +39 -0
- pumpkin_api/wit/i18n.wit +21 -0
- pumpkin_api/wit/inventory.wit +78 -0
- pumpkin_api/wit/ipc.wit +7 -0
- pumpkin_api/wit/item-stack.wit +104 -0
- pumpkin_api/wit/java-dialogs.wit +155 -0
- pumpkin_api/wit/java-packets.wit +1838 -0
- pumpkin_api/wit/log.wit +14 -0
- pumpkin_api/wit/metadata.wit +19 -0
- pumpkin_api/wit/particles.wit +131 -0
- pumpkin_api/wit/permission.wit +46 -0
- pumpkin_api/wit/player.wit +1432 -0
- pumpkin_api/wit/plugin.wit +121 -0
- pumpkin_api/wit/potions.wit +52 -0
- pumpkin_api/wit/recipe.wit +88 -0
- pumpkin_api/wit/scheduler.wit +24 -0
- pumpkin_api/wit/scoreboard.wit +111 -0
- pumpkin_api/wit/screens.wit +31 -0
- pumpkin_api/wit/server.wit +286 -0
- pumpkin_api/wit/sounds.wit +1987 -0
- pumpkin_api/wit/statistics.wit +94 -0
- pumpkin_api/wit/status-effect.wit +54 -0
- pumpkin_api/wit/text.wit +68 -0
- pumpkin_api/wit/uuid.wit +16 -0
- pumpkin_api/wit/world.wit +1050 -0
- pumpkin_api_py-0.1.0.dist-info/METADATA +53 -0
- pumpkin_api_py-0.1.0.dist-info/RECORD +108 -0
- pumpkin_api_py-0.1.0.dist-info/WHEEL +4 -0
- pumpkin_api_py-0.1.0.dist-info/entry_points.txt +2 -0
- pumpkin_api_py-0.1.0.dist-info/licenses/LICENSE-APACHE +176 -0
- pumpkin_api_py-0.1.0.dist-info/licenses/LICENSE-MIT +21 -0
- wit_world/__init__.py +114 -0
- wit_world/exports/__init__.py +19 -0
- wit_world/exports/metadata.py +24 -0
- wit_world/imports/__init__.py +0 -0
- wit_world/imports/advancement.py +56 -0
- wit_world/imports/attributes.py +66 -0
- wit_world/imports/bedrock_packets.py +2413 -0
- wit_world/imports/biomes.py +81 -0
- wit_world/imports/block_entity.py +1353 -0
- wit_world/imports/boss_bar.py +137 -0
- wit_world/imports/command.py +705 -0
- wit_world/imports/common.py +335 -0
- wit_world/imports/context.py +91 -0
- wit_world/imports/damage_types.py +66 -0
- wit_world/imports/data_components.py +126 -0
- wit_world/imports/datapack.py +124 -0
- wit_world/imports/display.py +295 -0
- wit_world/imports/enchantments.py +129 -0
- wit_world/imports/entity_statuses.py +77 -0
- wit_world/imports/entity_types.py +173 -0
- wit_world/imports/event.py +3558 -0
- wit_world/imports/forms.py +98 -0
- wit_world/imports/game_events.py +76 -0
- wit_world/imports/game_rules.py +88 -0
- wit_world/imports/gui.py +81 -0
- wit_world/imports/i18n.py +35 -0
- wit_world/imports/inventory.py +159 -0
- wit_world/imports/ipc.py +20 -0
- wit_world/imports/item_stack.py +206 -0
- wit_world/imports/java_dialogs.py +208 -0
- wit_world/imports/java_packets.py +3560 -0
- wit_world/imports/logging.py +30 -0
- wit_world/imports/particles.py +140 -0
- wit_world/imports/permission.py +71 -0
- wit_world/imports/player.py +1753 -0
- wit_world/imports/potions.py +61 -0
- wit_world/imports/recipe.py +120 -0
- wit_world/imports/scheduler.py +44 -0
- wit_world/imports/scoreboard.py +167 -0
- wit_world/imports/screens.py +40 -0
- wit_world/imports/server.py +493 -0
- wit_world/imports/sounds.py +1996 -0
- wit_world/imports/statistics.py +103 -0
- wit_world/imports/status_effect.py +63 -0
- wit_world/imports/text.py +156 -0
- wit_world/imports/uuid.py +36 -0
- wit_world/imports/world.py +1640 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file is automatically generated by componentize-py
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
from typing import TypeVar, Generic, Union, Optional, Protocol, Tuple, List, Any, Self, Callable
|
|
4
|
+
from types import TracebackType
|
|
5
|
+
from enum import Flag, Enum, auto
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
from abc import abstractmethod
|
|
8
|
+
import weakref
|
|
9
|
+
|
|
10
|
+
from componentize_py_types import Result, Ok, Err, Some
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Level(Enum):
|
|
14
|
+
TRACE = 0
|
|
15
|
+
DEBUG = 1
|
|
16
|
+
INFO = 2
|
|
17
|
+
WARN = 3
|
|
18
|
+
ERROR = 4
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def log(level: Level, message: str) -> None:
|
|
22
|
+
"""
|
|
23
|
+
log any general purpose message
|
|
24
|
+
"""
|
|
25
|
+
raise NotImplementedError
|
|
26
|
+
def log_tracing(event: bytes) -> None:
|
|
27
|
+
"""
|
|
28
|
+
This function is meant to be used by the tracing crate.
|
|
29
|
+
"""
|
|
30
|
+
raise NotImplementedError
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# This file is automatically generated by componentize-py
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
from typing import TypeVar, Generic, Union, Optional, Protocol, Tuple, List, Any, Self, Callable
|
|
4
|
+
from types import TracebackType
|
|
5
|
+
from enum import Flag, Enum, auto
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
from abc import abstractmethod
|
|
8
|
+
import weakref
|
|
9
|
+
|
|
10
|
+
from componentize_py_types import Result, Ok, Err, Some
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Particle(Enum):
|
|
14
|
+
ANGRY_VILLAGER = 0
|
|
15
|
+
BLOCK = 1
|
|
16
|
+
BLOCK_MARKER = 2
|
|
17
|
+
BUBBLE = 3
|
|
18
|
+
SULFUR_BUBBLES = 4
|
|
19
|
+
NOXIOUS_GAS = 5
|
|
20
|
+
NOXIOUS_GAS_CLOUD = 6
|
|
21
|
+
GEYSER = 7
|
|
22
|
+
GEYSER_BASE = 8
|
|
23
|
+
GEYSER_POOF = 9
|
|
24
|
+
GEYSER_PLUME = 10
|
|
25
|
+
CLOUD = 11
|
|
26
|
+
COPPER_FIRE_FLAME = 12
|
|
27
|
+
CRIT = 13
|
|
28
|
+
DAMAGE_INDICATOR = 14
|
|
29
|
+
DRAGON_BREATH = 15
|
|
30
|
+
DRIPPING_LAVA = 16
|
|
31
|
+
FALLING_LAVA = 17
|
|
32
|
+
LANDING_LAVA = 18
|
|
33
|
+
DRIPPING_WATER = 19
|
|
34
|
+
FALLING_WATER = 20
|
|
35
|
+
DUST = 21
|
|
36
|
+
DUST_COLOR_TRANSITION = 22
|
|
37
|
+
EFFECT = 23
|
|
38
|
+
ELDER_GUARDIAN = 24
|
|
39
|
+
ENCHANTED_HIT = 25
|
|
40
|
+
ENCHANT = 26
|
|
41
|
+
END_ROD = 27
|
|
42
|
+
ENTITY_EFFECT = 28
|
|
43
|
+
EXPLOSION_EMITTER = 29
|
|
44
|
+
EXPLOSION = 30
|
|
45
|
+
GUST = 31
|
|
46
|
+
SMALL_GUST = 32
|
|
47
|
+
GUST_EMITTER_LARGE = 33
|
|
48
|
+
GUST_EMITTER_SMALL = 34
|
|
49
|
+
SONIC_BOOM = 35
|
|
50
|
+
FALLING_DUST = 36
|
|
51
|
+
FIREWORK = 37
|
|
52
|
+
FISHING = 38
|
|
53
|
+
FLAME = 39
|
|
54
|
+
INFESTED = 40
|
|
55
|
+
CHERRY_LEAVES = 41
|
|
56
|
+
PALE_OAK_LEAVES = 42
|
|
57
|
+
TINTED_LEAVES = 43
|
|
58
|
+
SCULK_SOUL = 44
|
|
59
|
+
SCULK_CHARGE = 45
|
|
60
|
+
SCULK_CHARGE_POP = 46
|
|
61
|
+
SOUL_FIRE_FLAME = 47
|
|
62
|
+
SOUL = 48
|
|
63
|
+
FLASH = 49
|
|
64
|
+
HAPPY_VILLAGER = 50
|
|
65
|
+
COMPOSTER = 51
|
|
66
|
+
HEART = 52
|
|
67
|
+
INSTANT_EFFECT = 53
|
|
68
|
+
ITEM = 54
|
|
69
|
+
VIBRATION = 55
|
|
70
|
+
TRAIL = 56
|
|
71
|
+
PAUSE_MOB_GROWTH = 57
|
|
72
|
+
RESET_MOB_GROWTH = 58
|
|
73
|
+
ITEM_SLIME = 59
|
|
74
|
+
ITEM_COBWEB = 60
|
|
75
|
+
ITEM_SNOWBALL = 61
|
|
76
|
+
LARGE_SMOKE = 62
|
|
77
|
+
LAVA = 63
|
|
78
|
+
MYCELIUM = 64
|
|
79
|
+
NOTE = 65
|
|
80
|
+
POOF = 66
|
|
81
|
+
PORTAL = 67
|
|
82
|
+
RAIN = 68
|
|
83
|
+
SMOKE = 69
|
|
84
|
+
WHITE_SMOKE = 70
|
|
85
|
+
SNEEZE = 71
|
|
86
|
+
SPIT = 72
|
|
87
|
+
SQUID_INK = 73
|
|
88
|
+
SWEEP_ATTACK = 74
|
|
89
|
+
TOTEM_OF_UNDYING = 75
|
|
90
|
+
UNDERWATER = 76
|
|
91
|
+
SPLASH = 77
|
|
92
|
+
WITCH = 78
|
|
93
|
+
BUBBLE_POP = 79
|
|
94
|
+
CURRENT_DOWN = 80
|
|
95
|
+
BUBBLE_COLUMN_UP = 81
|
|
96
|
+
NAUTILUS = 82
|
|
97
|
+
DOLPHIN = 83
|
|
98
|
+
CAMPFIRE_COSY_SMOKE = 84
|
|
99
|
+
CAMPFIRE_SIGNAL_SMOKE = 85
|
|
100
|
+
DRIPPING_HONEY = 86
|
|
101
|
+
FALLING_HONEY = 87
|
|
102
|
+
LANDING_HONEY = 88
|
|
103
|
+
FALLING_NECTAR = 89
|
|
104
|
+
FALLING_SPORE_BLOSSOM = 90
|
|
105
|
+
ASH = 91
|
|
106
|
+
CRIMSON_SPORE = 92
|
|
107
|
+
WARPED_SPORE = 93
|
|
108
|
+
SPORE_BLOSSOM_AIR = 94
|
|
109
|
+
DRIPPING_OBSIDIAN_TEAR = 95
|
|
110
|
+
FALLING_OBSIDIAN_TEAR = 96
|
|
111
|
+
LANDING_OBSIDIAN_TEAR = 97
|
|
112
|
+
REVERSE_PORTAL = 98
|
|
113
|
+
WHITE_ASH = 99
|
|
114
|
+
SMALL_FLAME = 100
|
|
115
|
+
SNOWFLAKE = 101
|
|
116
|
+
DRIPPING_DRIPSTONE_LAVA = 102
|
|
117
|
+
FALLING_DRIPSTONE_LAVA = 103
|
|
118
|
+
DRIPPING_DRIPSTONE_WATER = 104
|
|
119
|
+
FALLING_DRIPSTONE_WATER = 105
|
|
120
|
+
GLOW_SQUID_INK = 106
|
|
121
|
+
GLOW = 107
|
|
122
|
+
WAX_ON = 108
|
|
123
|
+
WAX_OFF = 109
|
|
124
|
+
ELECTRIC_SPARK = 110
|
|
125
|
+
SCRAPE = 111
|
|
126
|
+
SHRIEK = 112
|
|
127
|
+
EGG_CRACK = 113
|
|
128
|
+
DUST_PLUME = 114
|
|
129
|
+
TRIAL_SPAWNER_DETECTION = 115
|
|
130
|
+
TRIAL_SPAWNER_DETECTION_OMINOUS = 116
|
|
131
|
+
VAULT_CONNECTION = 117
|
|
132
|
+
DUST_PILLAR = 118
|
|
133
|
+
OMINOUS_SPAWNING = 119
|
|
134
|
+
RAID_OMEN = 120
|
|
135
|
+
TRIAL_OMEN = 121
|
|
136
|
+
BLOCK_CRUMBLE = 122
|
|
137
|
+
FIREFLY = 123
|
|
138
|
+
SULFUR_CUBE_GOO = 124
|
|
139
|
+
|
|
140
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# This file is automatically generated by componentize-py
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
from typing import TypeVar, Generic, Union, Optional, Protocol, Tuple, List, Any, Self, Callable
|
|
4
|
+
from types import TracebackType
|
|
5
|
+
from enum import Flag, Enum, auto
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
from abc import abstractmethod
|
|
8
|
+
import weakref
|
|
9
|
+
|
|
10
|
+
from componentize_py_types import Result, Ok, Err, Some
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class PermissionLevel(Enum):
|
|
14
|
+
"""
|
|
15
|
+
Represents the player's permission level
|
|
16
|
+
|
|
17
|
+
Permission levels determine the player's access to commands and server operations.
|
|
18
|
+
Each numeric level corresponds to a specific role:
|
|
19
|
+
- `Zero`: `normal`: Player can use basic commands.
|
|
20
|
+
- `One`: `moderator`: Player can bypass spawn protection.
|
|
21
|
+
- `Two`: `gamemaster`: Player or executor can use more commands and player can use command blocks.
|
|
22
|
+
- `Three`: `admin`: Player or executor can use commands related to multiplayer management.
|
|
23
|
+
- `Four`: `owner`: Player or executor can use all of the commands, including commands related to server management.
|
|
24
|
+
"""
|
|
25
|
+
ZERO = 0
|
|
26
|
+
ONE = 1
|
|
27
|
+
TWO = 2
|
|
28
|
+
THREE = 3
|
|
29
|
+
FOUR = 4
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@dataclass
|
|
33
|
+
class PermissionDefault_Deny:
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@dataclass
|
|
38
|
+
class PermissionDefault_Allow:
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@dataclass
|
|
43
|
+
class PermissionDefault_Op:
|
|
44
|
+
value: PermissionLevel
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
PermissionDefault = Union[PermissionDefault_Deny, PermissionDefault_Allow, PermissionDefault_Op]
|
|
48
|
+
"""
|
|
49
|
+
Describes the default behavior for permissions
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@dataclass
|
|
54
|
+
class PermissionChild:
|
|
55
|
+
"""
|
|
56
|
+
A child permission entry
|
|
57
|
+
"""
|
|
58
|
+
node: str
|
|
59
|
+
value: bool
|
|
60
|
+
|
|
61
|
+
@dataclass
|
|
62
|
+
class Permission:
|
|
63
|
+
"""
|
|
64
|
+
Defines a permission node in the system
|
|
65
|
+
"""
|
|
66
|
+
node: str
|
|
67
|
+
description: str
|
|
68
|
+
default: PermissionDefault
|
|
69
|
+
children: List[PermissionChild]
|
|
70
|
+
|
|
71
|
+
|