levistone 0.9.3__cp313-cp313-win_amd64.whl → 0.10.6__cp313-cp313-win_amd64.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.
Potentially problematic release.
This version of levistone might be problematic. Click here for more details.
- endstone/__init__.py +1 -1
- endstone/_internal/bootstrap/base.py +23 -0
- endstone/_internal/bootstrap/linux.py +0 -4
- endstone/_internal/bootstrap/windows.py +137 -9
- endstone/_internal/endstone_python.cp313-win_amd64.pyd +0 -0
- endstone/_internal/endstone_python.pyi +362 -81
- endstone/_internal/plugin_loader.py +13 -2
- endstone/_internal/version.py +2 -2
- endstone/actor.py +2 -2
- endstone/command.py +2 -2
- endstone/config/endstone.toml +9 -0
- endstone/event.py +20 -0
- endstone/form.py +2 -0
- endstone/permissions.py +9 -1
- endstone_runtime.dll +0 -0
- endstone_runtime.pdb +0 -0
- levistone-0.10.6.dist-info/METADATA +49 -0
- levistone-0.10.6.dist-info/RECORD +40 -0
- manifest.json +1 -1
- endstone/_internal/endstone_python.cp39-win_amd64.pyd +0 -0
- levistone-0.9.3.dist-info/METADATA +0 -250
- levistone-0.9.3.dist-info/RECORD +0 -39
- {levistone-0.9.3.dist-info → levistone-0.10.6.dist-info}/WHEEL +0 -0
- {levistone-0.9.3.dist-info → levistone-0.10.6.dist-info}/entry_points.txt +0 -0
- {levistone-0.9.3.dist-info → levistone-0.10.6.dist-info}/licenses/LICENSE +0 -0
- {levistone-0.9.3.dist-info → levistone-0.10.6.dist-info}/top_level.txt +0 -0
|
@@ -4,42 +4,12 @@ import numpy
|
|
|
4
4
|
import os
|
|
5
5
|
import typing
|
|
6
6
|
import uuid
|
|
7
|
-
__all__ = ['ActionForm', 'Actor', 'ActorDamageEvent', 'ActorDeathEvent', 'ActorEvent', 'ActorExplodeEvent', 'ActorKnockbackEvent', 'ActorRemoveEvent', 'ActorSpawnEvent', 'ActorTeleportEvent', 'BanEntry', 'BarColor', 'BarFlag', 'BarStyle', 'Block', 'BlockBreakEvent', 'BlockData', 'BlockEvent', 'BlockFace', 'BlockPlaceEvent', 'BlockState', 'BossBar', 'BroadcastMessageEvent', 'Cancellable', 'Chunk', 'ChunkEvent', 'ChunkLoadEvent', 'ChunkUnloadEvent', 'ColorFormat', 'Command', 'CommandExecutor', 'CommandSender', 'CommandSenderWrapper', 'ConsoleCommandSender', 'Criteria', 'DamageSource', 'Dimension', 'DimensionEvent', 'DisplaySlot', 'Divider', 'Dropdown', 'Enchantment', 'EnchantmentRegistry', 'EquipmentSlot', 'Event', 'EventPriority', 'GameMode', 'Header', 'Inventory', 'IpBanEntry', 'IpBanList', 'ItemFactory', 'ItemMeta', 'ItemRegistry', 'ItemStack', 'ItemType', 'Label', 'Language', 'Level', 'LevelEvent', 'Location', 'Logger', 'MapCanvas', 'MapMeta', 'MapRenderer', 'MapView', 'MessageForm', 'Mob', 'MobEvent', 'ModalForm', 'NamespacedKey', 'Objective', 'ObjectiveSortOrder', 'OfflinePlayer', 'PacketReceiveEvent', 'PacketSendEvent', 'Permissible', 'Permission', 'PermissionAttachment', 'PermissionAttachmentInfo', 'PermissionDefault', 'Player', 'PlayerBanEntry', 'PlayerBanList', 'PlayerChatEvent', 'PlayerCommandEvent', 'PlayerDeathEvent', 'PlayerDropItemEvent', 'PlayerEmoteEvent', 'PlayerEvent', 'PlayerGameModeChangeEvent', 'PlayerInteractActorEvent', 'PlayerInteractEvent', 'PlayerInventory', 'PlayerItemConsumeEvent', 'PlayerJoinEvent', 'PlayerJumpEvent', 'PlayerKickEvent', 'PlayerLoginEvent', 'PlayerMoveEvent', 'PlayerPickupItemEvent', 'PlayerQuitEvent', 'PlayerRespawnEvent', 'PlayerTeleportEvent', 'Plugin', 'PluginCommand', 'PluginDescription', 'PluginDisableEvent', 'PluginEnableEvent', 'PluginLoadOrder', 'PluginLoader', 'PluginManager', 'Position', '
|
|
7
|
+
__all__: list[str] = ['ActionForm', 'Actor', 'ActorDamageEvent', 'ActorDeathEvent', 'ActorEvent', 'ActorExplodeEvent', 'ActorKnockbackEvent', 'ActorRemoveEvent', 'ActorSpawnEvent', 'ActorTeleportEvent', 'BanEntry', 'BarColor', 'BarFlag', 'BarStyle', 'Block', 'BlockBreakEvent', 'BlockCommandSender', 'BlockCookEvent', 'BlockData', 'BlockEvent', 'BlockFace', 'BlockPistonEvent', 'BlockPistonExtendEvent', 'BlockPistonRetractEvent', 'BlockPlaceEvent', 'BlockState', 'BossBar', 'BroadcastMessageEvent', 'Button', 'Cancellable', 'Chunk', 'ChunkEvent', 'ChunkLoadEvent', 'ChunkUnloadEvent', 'ColorFormat', 'Command', 'CommandExecutor', 'CommandSender', 'CommandSenderWrapper', 'ConsoleCommandSender', 'Criteria', 'DamageSource', 'Dimension', 'DimensionEvent', 'DisplaySlot', 'Divider', 'Dropdown', 'Enchantment', 'EnchantmentRegistry', 'EquipmentSlot', 'Event', 'EventPriority', 'EventResult', 'GameMode', 'Header', 'Inventory', 'IpBanEntry', 'IpBanList', 'Item', 'ItemFactory', 'ItemMeta', 'ItemRegistry', 'ItemStack', 'ItemType', 'Label', 'Language', 'LeavesDecayEvent', 'Level', 'LevelEvent', 'Location', 'Logger', 'MapCanvas', 'MapMeta', 'MapRenderer', 'MapView', 'MessageForm', 'Mob', 'MobEvent', 'ModalForm', 'NamespacedKey', 'Objective', 'ObjectiveSortOrder', 'OfflinePlayer', 'PacketReceiveEvent', 'PacketSendEvent', 'Permissible', 'Permission', 'PermissionAttachment', 'PermissionAttachmentInfo', 'PermissionDefault', 'PermissionLevel', 'Player', 'PlayerBanEntry', 'PlayerBanList', 'PlayerBedEnterEvent', 'PlayerBedLeaveEvent', 'PlayerChatEvent', 'PlayerCommandEvent', 'PlayerDeathEvent', 'PlayerDropItemEvent', 'PlayerEmoteEvent', 'PlayerEvent', 'PlayerGameModeChangeEvent', 'PlayerInteractActorEvent', 'PlayerInteractEvent', 'PlayerInventory', 'PlayerItemConsumeEvent', 'PlayerItemHeldEvent', 'PlayerJoinEvent', 'PlayerJumpEvent', 'PlayerKickEvent', 'PlayerLoginEvent', 'PlayerMoveEvent', 'PlayerPickupItemEvent', 'PlayerQuitEvent', 'PlayerRespawnEvent', 'PlayerSkinChangeEvent', 'PlayerTeleportEvent', 'Plugin', 'PluginCommand', 'PluginDescription', 'PluginDisableEvent', 'PluginEnableEvent', 'PluginLoadOrder', 'PluginLoader', 'PluginManager', 'Position', 'RenderType', 'Scheduler', 'Score', 'Scoreboard', 'ScriptMessageEvent', 'Server', 'ServerCommandEvent', 'ServerEvent', 'ServerListPingEvent', 'ServerLoadEvent', 'Service', 'ServiceManager', 'ServicePriority', 'Skin', 'Slider', 'SocketAddress', 'StepSlider', 'Task', 'TextInput', 'ThunderChangeEvent', 'Toggle', 'Translatable', 'Vector', 'WeatherChangeEvent', 'WeatherEvent']
|
|
8
8
|
class ActionForm:
|
|
9
9
|
"""
|
|
10
10
|
Represents a form with buttons that let the player take action.
|
|
11
11
|
"""
|
|
12
|
-
|
|
13
|
-
"""
|
|
14
|
-
Represents a button with text and an optional icon.
|
|
15
|
-
"""
|
|
16
|
-
def __init__(self, text: str | Translatable = '', icon: str | None = None, on_click: typing.Callable[[Player], None] = None) -> None:
|
|
17
|
-
...
|
|
18
|
-
@property
|
|
19
|
-
def icon(self) -> str | None:
|
|
20
|
-
"""
|
|
21
|
-
Gets or sets the icon path or URL of the button
|
|
22
|
-
"""
|
|
23
|
-
@icon.setter
|
|
24
|
-
def icon(self, arg1: str) -> ActionForm.Button:
|
|
25
|
-
...
|
|
26
|
-
@property
|
|
27
|
-
def on_click(self) -> typing.Callable[[Player], None]:
|
|
28
|
-
"""
|
|
29
|
-
Gets or sets the on click callback.
|
|
30
|
-
"""
|
|
31
|
-
@on_click.setter
|
|
32
|
-
def on_click(self, arg1: typing.Callable[[Player], None]) -> ActionForm.Button:
|
|
33
|
-
...
|
|
34
|
-
@property
|
|
35
|
-
def text(self) -> str | Translatable:
|
|
36
|
-
"""
|
|
37
|
-
Gets or sets the text of the button
|
|
38
|
-
"""
|
|
39
|
-
@text.setter
|
|
40
|
-
def text(self, arg1: str | Translatable) -> ActionForm.Button:
|
|
41
|
-
...
|
|
42
|
-
def __init__(self, title: str | Translatable = '', content: str | Translatable = '', buttons: list[ActionForm.Button | Divider | Header | Label] | None = None, on_submit: typing.Callable[[Player, int], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
|
|
12
|
+
def __init__(self, title: str | Translatable = '', content: str | Translatable = '', buttons: list[Button | Divider | Header | Label] | None = None, on_submit: typing.Callable[[Player, int], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
|
|
43
13
|
...
|
|
44
14
|
def add_button(self, text: str | Translatable, icon: str | None = None, on_click: typing.Callable[[Player], None] = None) -> ActionForm:
|
|
45
15
|
"""
|
|
@@ -66,12 +36,12 @@ class ActionForm:
|
|
|
66
36
|
def content(self, arg1: str | Translatable) -> ActionForm:
|
|
67
37
|
...
|
|
68
38
|
@property
|
|
69
|
-
def controls(self) -> list[
|
|
39
|
+
def controls(self) -> list[Button | Divider | Header | Label]:
|
|
70
40
|
"""
|
|
71
41
|
Gets or sets the controls of the action form.
|
|
72
42
|
"""
|
|
73
43
|
@controls.setter
|
|
74
|
-
def controls(self, arg1: list[
|
|
44
|
+
def controls(self, arg1: list[Button | Divider | Header | Label]) -> ActionForm:
|
|
75
45
|
...
|
|
76
46
|
@property
|
|
77
47
|
def on_close(self) -> typing.Callable[[Player], None]:
|
|
@@ -540,6 +510,32 @@ class BlockBreakEvent(BlockEvent, Cancellable):
|
|
|
540
510
|
"""
|
|
541
511
|
Gets the Player that is breaking the block involved in this event.
|
|
542
512
|
"""
|
|
513
|
+
class BlockCommandSender(CommandSender):
|
|
514
|
+
"""
|
|
515
|
+
Represents a block command sender.
|
|
516
|
+
"""
|
|
517
|
+
@property
|
|
518
|
+
def block(self) -> Block:
|
|
519
|
+
"""
|
|
520
|
+
Returns the block this command sender belongs to
|
|
521
|
+
"""
|
|
522
|
+
class BlockCookEvent(BlockEvent, Cancellable):
|
|
523
|
+
"""
|
|
524
|
+
Called when an ItemStack is successfully cooked in a block.
|
|
525
|
+
"""
|
|
526
|
+
@property
|
|
527
|
+
def result(self) -> ItemStack:
|
|
528
|
+
"""
|
|
529
|
+
Gets or sets the resultant ItemStack for this event
|
|
530
|
+
"""
|
|
531
|
+
@result.setter
|
|
532
|
+
def result(self, arg1: ItemStack) -> None:
|
|
533
|
+
...
|
|
534
|
+
@property
|
|
535
|
+
def source(self) -> ItemStack:
|
|
536
|
+
"""
|
|
537
|
+
Gets the smelted ItemStack for this event
|
|
538
|
+
"""
|
|
543
539
|
class BlockData:
|
|
544
540
|
"""
|
|
545
541
|
Represents the data related to a live block
|
|
@@ -604,6 +600,23 @@ class BlockFace:
|
|
|
604
600
|
@property
|
|
605
601
|
def value(self) -> int:
|
|
606
602
|
...
|
|
603
|
+
class BlockPistonEvent(BlockEvent, Cancellable):
|
|
604
|
+
"""
|
|
605
|
+
Called when a piston block is triggered
|
|
606
|
+
"""
|
|
607
|
+
@property
|
|
608
|
+
def direction(self) -> BlockFace:
|
|
609
|
+
"""
|
|
610
|
+
Return the direction in which the piston will operate.
|
|
611
|
+
"""
|
|
612
|
+
class BlockPistonExtendEvent(BlockPistonEvent):
|
|
613
|
+
"""
|
|
614
|
+
Called when a piston extends.
|
|
615
|
+
"""
|
|
616
|
+
class BlockPistonRetractEvent(BlockPistonEvent):
|
|
617
|
+
"""
|
|
618
|
+
Called when a piston retracts.
|
|
619
|
+
"""
|
|
607
620
|
class BlockPlaceEvent(BlockEvent, Cancellable):
|
|
608
621
|
"""
|
|
609
622
|
Called when a block is placed by a player.
|
|
@@ -774,6 +787,36 @@ class BroadcastMessageEvent(ServerEvent, Cancellable):
|
|
|
774
787
|
"""
|
|
775
788
|
Gets a set of recipients that this broadcast message will be displayed to.
|
|
776
789
|
"""
|
|
790
|
+
class Button:
|
|
791
|
+
"""
|
|
792
|
+
Represents a button with text and an optional icon.
|
|
793
|
+
"""
|
|
794
|
+
def __init__(self, text: str | Translatable = '', icon: str | None = None, on_click: typing.Callable[[Player], None] = None) -> None:
|
|
795
|
+
...
|
|
796
|
+
@property
|
|
797
|
+
def icon(self) -> str | None:
|
|
798
|
+
"""
|
|
799
|
+
Gets or sets the icon path or URL of the button
|
|
800
|
+
"""
|
|
801
|
+
@icon.setter
|
|
802
|
+
def icon(self, arg1: str) -> Button:
|
|
803
|
+
...
|
|
804
|
+
@property
|
|
805
|
+
def on_click(self) -> typing.Callable[[Player], None]:
|
|
806
|
+
"""
|
|
807
|
+
Gets or sets the on click callback.
|
|
808
|
+
"""
|
|
809
|
+
@on_click.setter
|
|
810
|
+
def on_click(self, arg1: typing.Callable[[Player], None]) -> Button:
|
|
811
|
+
...
|
|
812
|
+
@property
|
|
813
|
+
def text(self) -> str | Translatable:
|
|
814
|
+
"""
|
|
815
|
+
Gets or sets the text of the button
|
|
816
|
+
"""
|
|
817
|
+
@text.setter
|
|
818
|
+
def text(self, arg1: str | Translatable) -> Button:
|
|
819
|
+
...
|
|
777
820
|
class Cancellable:
|
|
778
821
|
"""
|
|
779
822
|
Represents an event that may be cancelled by a plugin or the server.
|
|
@@ -1362,6 +1405,37 @@ class EventPriority:
|
|
|
1362
1405
|
@property
|
|
1363
1406
|
def value(self) -> int:
|
|
1364
1407
|
...
|
|
1408
|
+
class EventResult:
|
|
1409
|
+
ALLOW: typing.ClassVar[EventResult] # value = <EventResult.ALLOW: 2>
|
|
1410
|
+
DEFAULT: typing.ClassVar[EventResult] # value = <EventResult.DEFAULT: 1>
|
|
1411
|
+
DENY: typing.ClassVar[EventResult] # value = <EventResult.DENY: 0>
|
|
1412
|
+
__members__: typing.ClassVar[dict[str, EventResult]] # value = {'DENY': <EventResult.DENY: 0>, 'DEFAULT': <EventResult.DEFAULT: 1>, 'ALLOW': <EventResult.ALLOW: 2>}
|
|
1413
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
1414
|
+
...
|
|
1415
|
+
def __getstate__(self) -> int:
|
|
1416
|
+
...
|
|
1417
|
+
def __hash__(self) -> int:
|
|
1418
|
+
...
|
|
1419
|
+
def __index__(self) -> int:
|
|
1420
|
+
...
|
|
1421
|
+
def __init__(self, value: int) -> None:
|
|
1422
|
+
...
|
|
1423
|
+
def __int__(self) -> int:
|
|
1424
|
+
...
|
|
1425
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
1426
|
+
...
|
|
1427
|
+
def __repr__(self) -> str:
|
|
1428
|
+
...
|
|
1429
|
+
def __setstate__(self, state: int) -> None:
|
|
1430
|
+
...
|
|
1431
|
+
def __str__(self) -> str:
|
|
1432
|
+
...
|
|
1433
|
+
@property
|
|
1434
|
+
def name(self) -> str:
|
|
1435
|
+
...
|
|
1436
|
+
@property
|
|
1437
|
+
def value(self) -> int:
|
|
1438
|
+
...
|
|
1365
1439
|
class GameMode:
|
|
1366
1440
|
"""
|
|
1367
1441
|
Represents the various type of game modes that Players may have.
|
|
@@ -1599,6 +1673,42 @@ class IpBanList:
|
|
|
1599
1673
|
"""
|
|
1600
1674
|
Gets a vector of pointers to entries in the ban list.
|
|
1601
1675
|
"""
|
|
1676
|
+
class Item(Actor):
|
|
1677
|
+
"""
|
|
1678
|
+
Represents a base actor in the level.
|
|
1679
|
+
"""
|
|
1680
|
+
@property
|
|
1681
|
+
def is_unlimited_lifetime(self) -> bool:
|
|
1682
|
+
"""
|
|
1683
|
+
Gets or sets if this Item lives forever
|
|
1684
|
+
"""
|
|
1685
|
+
@is_unlimited_lifetime.setter
|
|
1686
|
+
def is_unlimited_lifetime(self, arg1: bool) -> None:
|
|
1687
|
+
...
|
|
1688
|
+
@property
|
|
1689
|
+
def item_stack(self) -> ItemStack:
|
|
1690
|
+
"""
|
|
1691
|
+
Gets or sets the item stack associated with this item drop.
|
|
1692
|
+
"""
|
|
1693
|
+
@item_stack.setter
|
|
1694
|
+
def item_stack(self, arg1: ItemStack) -> None:
|
|
1695
|
+
...
|
|
1696
|
+
@property
|
|
1697
|
+
def pickup_delay(self) -> int:
|
|
1698
|
+
"""
|
|
1699
|
+
Gets or sets the delay before this Item is available to be picked up by players.
|
|
1700
|
+
"""
|
|
1701
|
+
@pickup_delay.setter
|
|
1702
|
+
def pickup_delay(self, arg1: int) -> None:
|
|
1703
|
+
...
|
|
1704
|
+
@property
|
|
1705
|
+
def thrower(self) -> int | None:
|
|
1706
|
+
"""
|
|
1707
|
+
Gets or sets the thrower of this item.
|
|
1708
|
+
"""
|
|
1709
|
+
@thrower.setter
|
|
1710
|
+
def thrower(self, arg1: int | None) -> None:
|
|
1711
|
+
...
|
|
1602
1712
|
class ItemFactory:
|
|
1603
1713
|
def as_meta_for(self, meta: ItemMeta, type: ItemType) -> ItemMeta:
|
|
1604
1714
|
"""
|
|
@@ -1740,7 +1850,7 @@ class ItemStack:
|
|
|
1740
1850
|
__hash__: typing.ClassVar[None] = None
|
|
1741
1851
|
def __eq__(self, arg0: ItemStack) -> bool:
|
|
1742
1852
|
...
|
|
1743
|
-
def __init__(self, type:
|
|
1853
|
+
def __init__(self, type: str, amount: int = 1, data: int = 0) -> None:
|
|
1744
1854
|
...
|
|
1745
1855
|
def __ne__(self, arg0: ItemStack) -> bool:
|
|
1746
1856
|
...
|
|
@@ -1763,6 +1873,14 @@ class ItemStack:
|
|
|
1763
1873
|
def amount(self, arg1: int) -> None:
|
|
1764
1874
|
...
|
|
1765
1875
|
@property
|
|
1876
|
+
def data(self) -> int:
|
|
1877
|
+
"""
|
|
1878
|
+
Gets or sets the data for this stack of items.
|
|
1879
|
+
"""
|
|
1880
|
+
@data.setter
|
|
1881
|
+
def data(self, arg1: int) -> None:
|
|
1882
|
+
...
|
|
1883
|
+
@property
|
|
1766
1884
|
def item_meta(self) -> ItemMeta:
|
|
1767
1885
|
"""
|
|
1768
1886
|
Gets a copy of the ItemMeta of this ItemStack.
|
|
@@ -1778,7 +1896,7 @@ class ItemStack:
|
|
|
1778
1896
|
Gets or sets the type of this item.
|
|
1779
1897
|
"""
|
|
1780
1898
|
@type.setter
|
|
1781
|
-
def type(self, arg1:
|
|
1899
|
+
def type(self, arg1: str) -> None:
|
|
1782
1900
|
...
|
|
1783
1901
|
class ItemType:
|
|
1784
1902
|
"""
|
|
@@ -1862,6 +1980,11 @@ class Language:
|
|
|
1862
1980
|
"""
|
|
1863
1981
|
Gets the current locale.
|
|
1864
1982
|
"""
|
|
1983
|
+
class LeavesDecayEvent(BlockEvent, Cancellable):
|
|
1984
|
+
"""
|
|
1985
|
+
Called when leaves are decaying naturally.
|
|
1986
|
+
If a Leaves Decay event is cancelled, the leaves will not decay.
|
|
1987
|
+
"""
|
|
1865
1988
|
class Level:
|
|
1866
1989
|
def get_dimension(self, name: str) -> Dimension:
|
|
1867
1990
|
"""
|
|
@@ -1883,6 +2006,11 @@ class Level:
|
|
|
1883
2006
|
Gets the unique name of this level
|
|
1884
2007
|
"""
|
|
1885
2008
|
@property
|
|
2009
|
+
def seed(self) -> int:
|
|
2010
|
+
"""
|
|
2011
|
+
Gets the Seed for this level.
|
|
2012
|
+
"""
|
|
2013
|
+
@property
|
|
1886
2014
|
def time(self) -> int:
|
|
1887
2015
|
"""
|
|
1888
2016
|
Gets and sets the relative in-game time on the server
|
|
@@ -2361,8 +2489,11 @@ class Objective:
|
|
|
2361
2489
|
@property
|
|
2362
2490
|
def display_slot(self) -> DisplaySlot | None:
|
|
2363
2491
|
"""
|
|
2364
|
-
Gets the display slot this objective is displayed at
|
|
2492
|
+
Gets or sets the display slot this objective is displayed at
|
|
2365
2493
|
"""
|
|
2494
|
+
@display_slot.setter
|
|
2495
|
+
def display_slot(self, arg1: DisplaySlot | None) -> None:
|
|
2496
|
+
...
|
|
2366
2497
|
@property
|
|
2367
2498
|
def is_displayed(self) -> bool:
|
|
2368
2499
|
"""
|
|
@@ -2381,11 +2512,8 @@ class Objective:
|
|
|
2381
2512
|
@property
|
|
2382
2513
|
def render_type(self) -> RenderType:
|
|
2383
2514
|
"""
|
|
2384
|
-
Gets
|
|
2515
|
+
Gets the manner in which this objective will be rendered.
|
|
2385
2516
|
"""
|
|
2386
|
-
@render_type.setter
|
|
2387
|
-
def render_type(self, arg1: RenderType) -> None:
|
|
2388
|
-
...
|
|
2389
2517
|
@property
|
|
2390
2518
|
def scoreboard(self) -> Scoreboard:
|
|
2391
2519
|
"""
|
|
@@ -2394,8 +2522,11 @@ class Objective:
|
|
|
2394
2522
|
@property
|
|
2395
2523
|
def sort_order(self) -> ObjectiveSortOrder | None:
|
|
2396
2524
|
"""
|
|
2397
|
-
Gets
|
|
2525
|
+
Gets or sets the sort order for this objective
|
|
2398
2526
|
"""
|
|
2527
|
+
@sort_order.setter
|
|
2528
|
+
def sort_order(self, arg1: ObjectiveSortOrder) -> None:
|
|
2529
|
+
...
|
|
2399
2530
|
class ObjectiveSortOrder:
|
|
2400
2531
|
"""
|
|
2401
2532
|
Represents the sort order of objectives on a DisplaySlot.
|
|
@@ -2557,13 +2688,10 @@ class Permissible:
|
|
|
2557
2688
|
Gets effective permissions.
|
|
2558
2689
|
"""
|
|
2559
2690
|
@property
|
|
2560
|
-
def
|
|
2691
|
+
def permission_level(self) -> PermissionLevel:
|
|
2561
2692
|
"""
|
|
2562
|
-
|
|
2693
|
+
Gets the permission level of this object
|
|
2563
2694
|
"""
|
|
2564
|
-
@is_op.setter
|
|
2565
|
-
def is_op(self, arg1: bool) -> None:
|
|
2566
|
-
...
|
|
2567
2695
|
class Permission:
|
|
2568
2696
|
"""
|
|
2569
2697
|
Represents a unique permission that may be attached to a Permissible
|
|
@@ -2698,13 +2826,46 @@ class PermissionDefault:
|
|
|
2698
2826
|
"""
|
|
2699
2827
|
Represents the possible default values for permissions
|
|
2700
2828
|
"""
|
|
2829
|
+
CONSOLE: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.CONSOLE: 4>
|
|
2701
2830
|
FALSE: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.FALSE: 1>
|
|
2702
2831
|
NOT_OP: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.NOT_OP: 3>
|
|
2703
2832
|
NOT_OPERATOR: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.NOT_OP: 3>
|
|
2704
2833
|
OP: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.OP: 2>
|
|
2705
2834
|
OPERATOR: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.OP: 2>
|
|
2706
2835
|
TRUE: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.TRUE: 0>
|
|
2707
|
-
__members__: typing.ClassVar[dict[str, PermissionDefault]] # value = {'TRUE': <PermissionDefault.TRUE: 0>, 'FALSE': <PermissionDefault.FALSE: 1>, 'OP': <PermissionDefault.OP: 2>, 'OPERATOR': <PermissionDefault.OP: 2>, 'NOT_OP': <PermissionDefault.NOT_OP: 3>, 'NOT_OPERATOR': <PermissionDefault.NOT_OP: 3>}
|
|
2836
|
+
__members__: typing.ClassVar[dict[str, PermissionDefault]] # value = {'TRUE': <PermissionDefault.TRUE: 0>, 'FALSE': <PermissionDefault.FALSE: 1>, 'OP': <PermissionDefault.OP: 2>, 'OPERATOR': <PermissionDefault.OP: 2>, 'NOT_OP': <PermissionDefault.NOT_OP: 3>, 'NOT_OPERATOR': <PermissionDefault.NOT_OP: 3>, 'CONSOLE': <PermissionDefault.CONSOLE: 4>}
|
|
2837
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
2838
|
+
...
|
|
2839
|
+
def __getstate__(self) -> int:
|
|
2840
|
+
...
|
|
2841
|
+
def __hash__(self) -> int:
|
|
2842
|
+
...
|
|
2843
|
+
def __index__(self) -> int:
|
|
2844
|
+
...
|
|
2845
|
+
def __init__(self, value: int) -> None:
|
|
2846
|
+
...
|
|
2847
|
+
def __int__(self) -> int:
|
|
2848
|
+
...
|
|
2849
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
2850
|
+
...
|
|
2851
|
+
def __repr__(self) -> str:
|
|
2852
|
+
...
|
|
2853
|
+
def __setstate__(self, state: int) -> None:
|
|
2854
|
+
...
|
|
2855
|
+
def __str__(self) -> str:
|
|
2856
|
+
...
|
|
2857
|
+
@property
|
|
2858
|
+
def name(self) -> str:
|
|
2859
|
+
...
|
|
2860
|
+
@property
|
|
2861
|
+
def value(self) -> int:
|
|
2862
|
+
...
|
|
2863
|
+
class PermissionLevel:
|
|
2864
|
+
CONSOLE: typing.ClassVar[PermissionLevel] # value = <PermissionLevel.CONSOLE: 2>
|
|
2865
|
+
DEFAULT: typing.ClassVar[PermissionLevel] # value = <PermissionLevel.DEFAULT: 0>
|
|
2866
|
+
OP: typing.ClassVar[PermissionLevel] # value = <PermissionLevel.OP: 1>
|
|
2867
|
+
OPERATOR: typing.ClassVar[PermissionLevel] # value = <PermissionLevel.OP: 1>
|
|
2868
|
+
__members__: typing.ClassVar[dict[str, PermissionLevel]] # value = {'DEFAULT': <PermissionLevel.DEFAULT: 0>, 'OP': <PermissionLevel.OP: 1>, 'OPERATOR': <PermissionLevel.OP: 1>, 'CONSOLE': <PermissionLevel.CONSOLE: 2>}
|
|
2708
2869
|
def __eq__(self, other: typing.Any) -> bool:
|
|
2709
2870
|
...
|
|
2710
2871
|
def __getstate__(self) -> int:
|
|
@@ -2837,6 +2998,11 @@ class Player(Mob, OfflinePlayer):
|
|
|
2837
2998
|
Get the player's current device's operation system (OS).
|
|
2838
2999
|
"""
|
|
2839
3000
|
@property
|
|
3001
|
+
def ender_chest(self) -> Inventory:
|
|
3002
|
+
"""
|
|
3003
|
+
Get the player's EnderChest inventory.
|
|
3004
|
+
"""
|
|
3005
|
+
@property
|
|
2840
3006
|
def exp_level(self) -> int:
|
|
2841
3007
|
"""
|
|
2842
3008
|
Gets or sets the players current experience level.
|
|
@@ -2887,6 +3053,14 @@ class Player(Mob, OfflinePlayer):
|
|
|
2887
3053
|
def is_flying(self, arg1: bool) -> None:
|
|
2888
3054
|
...
|
|
2889
3055
|
@property
|
|
3056
|
+
def is_op(self) -> bool:
|
|
3057
|
+
"""
|
|
3058
|
+
The operator status of this playerall
|
|
3059
|
+
"""
|
|
3060
|
+
@is_op.setter
|
|
3061
|
+
def is_op(self, arg1: bool) -> None:
|
|
3062
|
+
...
|
|
3063
|
+
@property
|
|
2890
3064
|
def is_sneaking(self) -> bool:
|
|
2891
3065
|
"""
|
|
2892
3066
|
Gets or sets the sneak mode of the player
|
|
@@ -2999,11 +3173,37 @@ class PlayerBanList:
|
|
|
2999
3173
|
"""
|
|
3000
3174
|
Gets a vector of pointers to entries in the ban list.
|
|
3001
3175
|
"""
|
|
3176
|
+
class PlayerBedEnterEvent(PlayerEvent, Cancellable):
|
|
3177
|
+
"""
|
|
3178
|
+
Called when a player is almost about to enter the bed.
|
|
3179
|
+
"""
|
|
3180
|
+
@property
|
|
3181
|
+
def bed(self) -> Block:
|
|
3182
|
+
"""
|
|
3183
|
+
Returns the bed block involved in this event.
|
|
3184
|
+
"""
|
|
3185
|
+
class PlayerBedLeaveEvent(PlayerEvent):
|
|
3186
|
+
"""
|
|
3187
|
+
Called when a player is leaving a bed.
|
|
3188
|
+
"""
|
|
3189
|
+
@property
|
|
3190
|
+
def bed(self) -> Block:
|
|
3191
|
+
"""
|
|
3192
|
+
Returns the bed block involved in this event.
|
|
3193
|
+
"""
|
|
3002
3194
|
class PlayerChatEvent(PlayerEvent, Cancellable):
|
|
3003
3195
|
"""
|
|
3004
3196
|
Called when a player sends a chat message.
|
|
3005
3197
|
"""
|
|
3006
3198
|
@property
|
|
3199
|
+
def format(self) -> str:
|
|
3200
|
+
"""
|
|
3201
|
+
Sets the format to use to display this chat message
|
|
3202
|
+
"""
|
|
3203
|
+
@format.setter
|
|
3204
|
+
def format(self, arg1: str) -> None:
|
|
3205
|
+
...
|
|
3206
|
+
@property
|
|
3007
3207
|
def message(self) -> str:
|
|
3008
3208
|
"""
|
|
3009
3209
|
Gets or sets the message that the player will send.
|
|
@@ -3011,6 +3211,19 @@ class PlayerChatEvent(PlayerEvent, Cancellable):
|
|
|
3011
3211
|
@message.setter
|
|
3012
3212
|
def message(self, arg1: str) -> None:
|
|
3013
3213
|
...
|
|
3214
|
+
@property
|
|
3215
|
+
def player(self) -> Player:
|
|
3216
|
+
"""
|
|
3217
|
+
Gets or sets the player that this message will display as
|
|
3218
|
+
"""
|
|
3219
|
+
@player.setter
|
|
3220
|
+
def player(self, arg1: Player) -> None:
|
|
3221
|
+
...
|
|
3222
|
+
@property
|
|
3223
|
+
def recipients(self) -> list[Player]:
|
|
3224
|
+
"""
|
|
3225
|
+
Gets a set of recipients that this chat message will be displayed to
|
|
3226
|
+
"""
|
|
3014
3227
|
class PlayerCommandEvent(PlayerEvent, Cancellable):
|
|
3015
3228
|
"""
|
|
3016
3229
|
Called whenever a player runs a command.
|
|
@@ -3028,12 +3241,12 @@ class PlayerDeathEvent(ActorDeathEvent, PlayerEvent):
|
|
|
3028
3241
|
Called when a player dies
|
|
3029
3242
|
"""
|
|
3030
3243
|
@property
|
|
3031
|
-
def death_message(self) -> str:
|
|
3244
|
+
def death_message(self) -> str | Translatable | None:
|
|
3032
3245
|
"""
|
|
3033
3246
|
Gets or sets the death message that will appear to everyone on the server.
|
|
3034
3247
|
"""
|
|
3035
3248
|
@death_message.setter
|
|
3036
|
-
def death_message(self, arg1: str) -> None:
|
|
3249
|
+
def death_message(self, arg1: str | Translatable | None) -> None:
|
|
3037
3250
|
...
|
|
3038
3251
|
class PlayerDropItemEvent(PlayerEvent, Cancellable):
|
|
3039
3252
|
"""
|
|
@@ -3044,15 +3257,23 @@ class PlayerDropItemEvent(PlayerEvent, Cancellable):
|
|
|
3044
3257
|
"""
|
|
3045
3258
|
Gets the ItemStack dropped by the player
|
|
3046
3259
|
"""
|
|
3047
|
-
class PlayerEmoteEvent(PlayerEvent):
|
|
3260
|
+
class PlayerEmoteEvent(PlayerEvent, Cancellable):
|
|
3048
3261
|
"""
|
|
3049
3262
|
Called when a player uses and emote
|
|
3050
3263
|
"""
|
|
3051
3264
|
@property
|
|
3052
3265
|
def emote_id(self) -> str:
|
|
3053
3266
|
"""
|
|
3054
|
-
Gets the emote ID
|
|
3267
|
+
Gets the emote piece ID
|
|
3055
3268
|
"""
|
|
3269
|
+
@property
|
|
3270
|
+
def is_muted(self) -> bool:
|
|
3271
|
+
"""
|
|
3272
|
+
Gets or sets the muted state for the emote.
|
|
3273
|
+
"""
|
|
3274
|
+
@is_muted.setter
|
|
3275
|
+
def is_muted(self, arg1: bool) -> None:
|
|
3276
|
+
...
|
|
3056
3277
|
class PlayerEvent(Event):
|
|
3057
3278
|
"""
|
|
3058
3279
|
Represents a player related event
|
|
@@ -3084,6 +3305,43 @@ class PlayerInteractEvent(PlayerEvent, Cancellable):
|
|
|
3084
3305
|
"""
|
|
3085
3306
|
Represents an event that is called when a player right-clicks a block.
|
|
3086
3307
|
"""
|
|
3308
|
+
class Action:
|
|
3309
|
+
LEFT_CLICK_AIR: typing.ClassVar[PlayerInteractEvent.Action] # value = <Action.LEFT_CLICK_AIR: 2>
|
|
3310
|
+
LEFT_CLICK_BLOCK: typing.ClassVar[PlayerInteractEvent.Action] # value = <Action.LEFT_CLICK_BLOCK: 0>
|
|
3311
|
+
RIGHT_CLICK_AIR: typing.ClassVar[PlayerInteractEvent.Action] # value = <Action.RIGHT_CLICK_AIR: 3>
|
|
3312
|
+
RIGHT_CLICK_BLOCK: typing.ClassVar[PlayerInteractEvent.Action] # value = <Action.RIGHT_CLICK_BLOCK: 1>
|
|
3313
|
+
__members__: typing.ClassVar[dict[str, PlayerInteractEvent.Action]] # value = {'LEFT_CLICK_BLOCK': <Action.LEFT_CLICK_BLOCK: 0>, 'RIGHT_CLICK_BLOCK': <Action.RIGHT_CLICK_BLOCK: 1>, 'LEFT_CLICK_AIR': <Action.LEFT_CLICK_AIR: 2>, 'RIGHT_CLICK_AIR': <Action.RIGHT_CLICK_AIR: 3>}
|
|
3314
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
3315
|
+
...
|
|
3316
|
+
def __getstate__(self) -> int:
|
|
3317
|
+
...
|
|
3318
|
+
def __hash__(self) -> int:
|
|
3319
|
+
...
|
|
3320
|
+
def __index__(self) -> int:
|
|
3321
|
+
...
|
|
3322
|
+
def __init__(self, value: int) -> None:
|
|
3323
|
+
...
|
|
3324
|
+
def __int__(self) -> int:
|
|
3325
|
+
...
|
|
3326
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
3327
|
+
...
|
|
3328
|
+
def __repr__(self) -> str:
|
|
3329
|
+
...
|
|
3330
|
+
def __setstate__(self, state: int) -> None:
|
|
3331
|
+
...
|
|
3332
|
+
def __str__(self) -> str:
|
|
3333
|
+
...
|
|
3334
|
+
@property
|
|
3335
|
+
def name(self) -> str:
|
|
3336
|
+
...
|
|
3337
|
+
@property
|
|
3338
|
+
def value(self) -> int:
|
|
3339
|
+
...
|
|
3340
|
+
@property
|
|
3341
|
+
def action(self) -> PlayerInteractEvent.Action:
|
|
3342
|
+
"""
|
|
3343
|
+
Returns the action type of interaction
|
|
3344
|
+
"""
|
|
3087
3345
|
@property
|
|
3088
3346
|
def block(self) -> Block:
|
|
3089
3347
|
"""
|
|
@@ -3095,7 +3353,7 @@ class PlayerInteractEvent(PlayerEvent, Cancellable):
|
|
|
3095
3353
|
Returns the face of the block that was clicked
|
|
3096
3354
|
"""
|
|
3097
3355
|
@property
|
|
3098
|
-
def clicked_position(self) -> Vector:
|
|
3356
|
+
def clicked_position(self) -> Vector | None:
|
|
3099
3357
|
"""
|
|
3100
3358
|
Gets the exact position on the block the player interacted with.
|
|
3101
3359
|
"""
|
|
@@ -3188,17 +3446,31 @@ class PlayerItemConsumeEvent(PlayerEvent, Cancellable):
|
|
|
3188
3446
|
"""
|
|
3189
3447
|
Gets or sets the item that is being consumed.
|
|
3190
3448
|
"""
|
|
3449
|
+
class PlayerItemHeldEvent(PlayerEvent, Cancellable):
|
|
3450
|
+
"""
|
|
3451
|
+
Called when a player changes their currently held item.
|
|
3452
|
+
"""
|
|
3453
|
+
@property
|
|
3454
|
+
def new_slot(self) -> int:
|
|
3455
|
+
"""
|
|
3456
|
+
Gets the new held slot index
|
|
3457
|
+
"""
|
|
3458
|
+
@property
|
|
3459
|
+
def previous_slot(self) -> int:
|
|
3460
|
+
"""
|
|
3461
|
+
Gets the previous held slot index.
|
|
3462
|
+
"""
|
|
3191
3463
|
class PlayerJoinEvent(PlayerEvent):
|
|
3192
3464
|
"""
|
|
3193
3465
|
Called when a player joins a server
|
|
3194
3466
|
"""
|
|
3195
3467
|
@property
|
|
3196
|
-
def join_message(self) -> str:
|
|
3468
|
+
def join_message(self) -> str | Translatable | None:
|
|
3197
3469
|
"""
|
|
3198
3470
|
Gets or sets the join message to send to all online players.
|
|
3199
3471
|
"""
|
|
3200
3472
|
@join_message.setter
|
|
3201
|
-
def join_message(self, arg1: str) -> None:
|
|
3473
|
+
def join_message(self, arg1: str | Translatable | None) -> None:
|
|
3202
3474
|
...
|
|
3203
3475
|
class PlayerJumpEvent(PlayerMoveEvent):
|
|
3204
3476
|
"""
|
|
@@ -3253,7 +3525,7 @@ class PlayerPickupItemEvent(PlayerEvent, Cancellable):
|
|
|
3253
3525
|
Called when a player picks an item up from the ground.
|
|
3254
3526
|
"""
|
|
3255
3527
|
@property
|
|
3256
|
-
def item(self) ->
|
|
3528
|
+
def item(self) -> Item:
|
|
3257
3529
|
"""
|
|
3258
3530
|
Gets the Item picked up by the entity.
|
|
3259
3531
|
"""
|
|
@@ -3262,17 +3534,34 @@ class PlayerQuitEvent(PlayerEvent):
|
|
|
3262
3534
|
Called when a player leaves a server.
|
|
3263
3535
|
"""
|
|
3264
3536
|
@property
|
|
3265
|
-
def quit_message(self) -> str:
|
|
3537
|
+
def quit_message(self) -> str | Translatable | None:
|
|
3266
3538
|
"""
|
|
3267
3539
|
Gets or sets the quit message to send to all online players.
|
|
3268
3540
|
"""
|
|
3269
3541
|
@quit_message.setter
|
|
3270
|
-
def quit_message(self, arg1: str) -> None:
|
|
3542
|
+
def quit_message(self, arg1: str | Translatable | None) -> None:
|
|
3271
3543
|
...
|
|
3272
3544
|
class PlayerRespawnEvent(PlayerEvent):
|
|
3273
3545
|
"""
|
|
3274
3546
|
Called when a player respawns.
|
|
3275
3547
|
"""
|
|
3548
|
+
class PlayerSkinChangeEvent(PlayerEvent, Cancellable):
|
|
3549
|
+
"""
|
|
3550
|
+
Called when a player changes their skin.
|
|
3551
|
+
"""
|
|
3552
|
+
@property
|
|
3553
|
+
def new_skin(self) -> Skin:
|
|
3554
|
+
"""
|
|
3555
|
+
Gets the player's new skin.
|
|
3556
|
+
"""
|
|
3557
|
+
@property
|
|
3558
|
+
def skin_change_message(self) -> str | Translatable | None:
|
|
3559
|
+
"""
|
|
3560
|
+
Gets or sets the message to send to all online players for this skin change.
|
|
3561
|
+
"""
|
|
3562
|
+
@skin_change_message.setter
|
|
3563
|
+
def skin_change_message(self, arg1: str | Translatable | None) -> None:
|
|
3564
|
+
...
|
|
3276
3565
|
class PlayerTeleportEvent(PlayerMoveEvent):
|
|
3277
3566
|
"""
|
|
3278
3567
|
Called when a player is teleported from one location to another.
|
|
@@ -3546,13 +3835,13 @@ class PluginManager:
|
|
|
3546
3835
|
"""
|
|
3547
3836
|
Enable all the loaded plugins
|
|
3548
3837
|
"""
|
|
3549
|
-
def get_default_perm_subscriptions(self,
|
|
3838
|
+
def get_default_perm_subscriptions(self, level: PermissionLevel) -> set[Permissible]:
|
|
3550
3839
|
"""
|
|
3551
|
-
Gets a set containing all subscribed Permissibles to the given default list, by
|
|
3840
|
+
Gets a set containing all subscribed Permissibles to the given default list, by permission level.
|
|
3552
3841
|
"""
|
|
3553
|
-
def get_default_permissions(self,
|
|
3842
|
+
def get_default_permissions(self, level: PermissionLevel) -> list[Permission]:
|
|
3554
3843
|
"""
|
|
3555
|
-
Gets the default permissions for the given
|
|
3844
|
+
Gets the default permissions for the given permission level.
|
|
3556
3845
|
"""
|
|
3557
3846
|
def get_permission(self, name: str) -> Permission:
|
|
3558
3847
|
"""
|
|
@@ -3608,17 +3897,17 @@ class PluginManager:
|
|
|
3608
3897
|
"""
|
|
3609
3898
|
Removes a Permission registration from this plugin manager by name.
|
|
3610
3899
|
"""
|
|
3611
|
-
def subscribe_to_default_perms(self,
|
|
3900
|
+
def subscribe_to_default_perms(self, level: PermissionLevel, permissible: Permissible) -> None:
|
|
3612
3901
|
"""
|
|
3613
|
-
Subscribes to the given Default permissions by
|
|
3902
|
+
Subscribes to the given Default permissions by permission level.
|
|
3614
3903
|
"""
|
|
3615
3904
|
def subscribe_to_permission(self, permission: str, permissible: Permissible) -> None:
|
|
3616
3905
|
"""
|
|
3617
3906
|
Subscribes the given Permissible for information about the requested Permission.
|
|
3618
3907
|
"""
|
|
3619
|
-
def unsubscribe_from_default_perms(self,
|
|
3908
|
+
def unsubscribe_from_default_perms(self, level: PermissionLevel, permissible: Permissible) -> None:
|
|
3620
3909
|
"""
|
|
3621
|
-
Unsubscribes from the given Default permissions by
|
|
3910
|
+
Unsubscribes from the given Default permissions by permission level.
|
|
3622
3911
|
"""
|
|
3623
3912
|
def unsubscribe_from_permission(self, permission: str, permissible: Permissible) -> None:
|
|
3624
3913
|
"""
|
|
@@ -3667,26 +3956,13 @@ class Position(Vector):
|
|
|
3667
3956
|
@dimension.setter
|
|
3668
3957
|
def dimension(self, arg1: Dimension) -> None:
|
|
3669
3958
|
...
|
|
3670
|
-
class ProxiedCommandSender(CommandSender):
|
|
3671
|
-
"""
|
|
3672
|
-
Represents a proxied command sender.
|
|
3673
|
-
"""
|
|
3674
|
-
@property
|
|
3675
|
-
def callee(self) -> CommandSender:
|
|
3676
|
-
"""
|
|
3677
|
-
Returns the CommandSender which is being used to call the command.
|
|
3678
|
-
"""
|
|
3679
|
-
@property
|
|
3680
|
-
def caller(self) -> CommandSender:
|
|
3681
|
-
"""
|
|
3682
|
-
Returns the CommandSender which triggered this proxied command.
|
|
3683
|
-
"""
|
|
3684
3959
|
class RenderType:
|
|
3685
3960
|
"""
|
|
3686
3961
|
Controls the way in which an Objective is rendered on the client side.
|
|
3687
3962
|
"""
|
|
3963
|
+
HEARTS: typing.ClassVar[RenderType] # value = <RenderType.HEARTS: 1>
|
|
3688
3964
|
INTEGER: typing.ClassVar[RenderType] # value = <RenderType.INTEGER: 0>
|
|
3689
|
-
__members__: typing.ClassVar[dict[str, RenderType]] # value = {'INTEGER': <RenderType.INTEGER: 0>}
|
|
3965
|
+
__members__: typing.ClassVar[dict[str, RenderType]] # value = {'INTEGER': <RenderType.INTEGER: 0>, 'HEARTS': <RenderType.HEARTS: 1>}
|
|
3690
3966
|
def __eq__(self, other: typing.Any) -> bool:
|
|
3691
3967
|
...
|
|
3692
3968
|
def __getstate__(self) -> int:
|
|
@@ -4009,6 +4285,11 @@ class Server:
|
|
|
4009
4285
|
Get the game port (IPv6) that the server runs on.
|
|
4010
4286
|
"""
|
|
4011
4287
|
@property
|
|
4288
|
+
def protocol_version(self) -> int:
|
|
4289
|
+
"""
|
|
4290
|
+
Gets the network protocol version that this server supports.
|
|
4291
|
+
"""
|
|
4292
|
+
@property
|
|
4012
4293
|
def scheduler(self) -> Scheduler:
|
|
4013
4294
|
"""
|
|
4014
4295
|
Gets the scheduler for managing scheduled events.
|