levistone 0.6.2.dev58__cp39-cp39-win_amd64.whl → 0.7.1__cp39-cp39-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/__init__.py +6 -1
- endstone/_internal/bootstrap/base.py +35 -48
- endstone/_internal/bootstrap/linux.py +23 -5
- endstone/_internal/bootstrap/windows.py +19 -167
- endstone/_internal/endstone_python.pyd +0 -0
- endstone/_internal/endstone_python.pyi +228 -90
- endstone/_internal/metrics.py +2 -2
- endstone/_internal/plugin_loader.py +5 -1
- endstone/_internal/version.py +2 -2
- endstone/event.py +4 -4
- endstone/inventory.py +2 -2
- endstone/plugin.py +6 -0
- endstone_runtime.dll +0 -0
- endstone_runtime.pdb +0 -0
- levistone-0.7.1.dist-info/METADATA +250 -0
- levistone-0.7.1.dist-info/RECORD +37 -0
- {levistone-0.6.2.dev58.dist-info → levistone-0.7.1.dist-info}/WHEEL +1 -1
- levistone-0.7.1.dist-info/licenses/LICENSE +201 -0
- manifest.json +1 -1
- endstone/network.py +0 -3
- levistone-0.6.2.dev58.dist-info/METADATA +0 -47
- levistone-0.6.2.dev58.dist-info/RECORD +0 -37
- {levistone-0.6.2.dev58.dist-info → levistone-0.7.1.dist-info}/entry_points.txt +0 -0
- {levistone-0.6.2.dev58.dist-info → levistone-0.7.1.dist-info}/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ 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', 'ColorFormat', 'Command', 'CommandExecutor', 'CommandSender', 'CommandSenderWrapper', 'ConsoleCommandSender', 'Criteria', 'DamageSource', '
|
|
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', 'ColorFormat', 'Command', 'CommandExecutor', 'CommandSender', 'CommandSenderWrapper', 'ConsoleCommandSender', 'Criteria', 'DamageSource', 'Dimension', 'DisplaySlot', 'Dropdown', 'Event', 'EventPriority', 'GameMode', 'Inventory', 'IpBanEntry', 'IpBanList', 'ItemMeta', 'ItemStack', 'Label', 'Language', 'Level', 'Location', 'Logger', 'MapMeta', 'MessageForm', 'Mob', 'MobEvent', 'ModalForm', 'Objective', 'ObjectiveSortOrder', 'OfflinePlayer', 'PacketReceiveEvent', 'PacketSendEvent', 'Permissible', 'Permission', 'PermissionAttachment', 'PermissionAttachmentInfo', 'PermissionDefault', 'Player', 'PlayerBanEntry', 'PlayerBanList', 'PlayerChatEvent', 'PlayerCommandEvent', 'PlayerDeathEvent', 'PlayerEmoteEvent', 'PlayerEvent', 'PlayerGameModeChangeEvent', 'PlayerInteractActorEvent', 'PlayerInteractEvent', 'PlayerInventory', 'PlayerJoinEvent', 'PlayerKickEvent', 'PlayerLoginEvent', 'PlayerQuitEvent', 'PlayerRespawnEvent', 'PlayerTeleportEvent', 'Plugin', 'PluginCommand', 'PluginDescription', 'PluginDisableEvent', 'PluginEnableEvent', 'PluginLoadOrder', 'PluginLoader', 'PluginManager', 'Position', 'ProxiedCommandSender', '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.
|
|
@@ -535,11 +535,8 @@ class Block:
|
|
|
535
535
|
@property
|
|
536
536
|
def data(self) -> BlockData:
|
|
537
537
|
"""
|
|
538
|
-
Gets
|
|
538
|
+
Gets the complete data for this block
|
|
539
539
|
"""
|
|
540
|
-
@data.setter
|
|
541
|
-
def data(self, arg1: BlockData) -> None:
|
|
542
|
-
...
|
|
543
540
|
@property
|
|
544
541
|
def dimension(self) -> Dimension:
|
|
545
542
|
"""
|
|
@@ -555,9 +552,6 @@ class Block:
|
|
|
555
552
|
"""
|
|
556
553
|
Gets or sets the type of the block.
|
|
557
554
|
"""
|
|
558
|
-
@type.setter
|
|
559
|
-
def type(self, arg1: str) -> None:
|
|
560
|
-
...
|
|
561
555
|
@property
|
|
562
556
|
def x(self) -> int:
|
|
563
557
|
"""
|
|
@@ -1129,40 +1123,6 @@ class DamageSource:
|
|
|
1129
1123
|
"""
|
|
1130
1124
|
Get the damage type.
|
|
1131
1125
|
"""
|
|
1132
|
-
class DataPacketReceiveEvent(ServerEvent, Cancellable):
|
|
1133
|
-
"""
|
|
1134
|
-
Called when the server receives a packet from a connected client.
|
|
1135
|
-
"""
|
|
1136
|
-
@staticmethod
|
|
1137
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1138
|
-
...
|
|
1139
|
-
@property
|
|
1140
|
-
def data(self) -> bytes:
|
|
1141
|
-
"""
|
|
1142
|
-
Gets the raw packet data
|
|
1143
|
-
"""
|
|
1144
|
-
@property
|
|
1145
|
-
def player(self) -> Player:
|
|
1146
|
-
"""
|
|
1147
|
-
Gets the player involved in this event
|
|
1148
|
-
"""
|
|
1149
|
-
class DataPacketSendEvent(ServerEvent, Cancellable):
|
|
1150
|
-
"""
|
|
1151
|
-
Called when the server sends a packet to a connected client.
|
|
1152
|
-
"""
|
|
1153
|
-
@staticmethod
|
|
1154
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1155
|
-
...
|
|
1156
|
-
@property
|
|
1157
|
-
def data(self) -> bytes:
|
|
1158
|
-
"""
|
|
1159
|
-
Gets the raw packet data
|
|
1160
|
-
"""
|
|
1161
|
-
@property
|
|
1162
|
-
def player(self) -> Player:
|
|
1163
|
-
"""
|
|
1164
|
-
Gets the player involved in this event
|
|
1165
|
-
"""
|
|
1166
1126
|
class Dimension:
|
|
1167
1127
|
"""
|
|
1168
1128
|
Represents a dimension within a Level.
|
|
@@ -1440,7 +1400,7 @@ class Inventory:
|
|
|
1440
1400
|
"""
|
|
1441
1401
|
Returns the size of the inventory
|
|
1442
1402
|
"""
|
|
1443
|
-
def __set_item__(self, index: int, item: ItemStack
|
|
1403
|
+
def __set_item__(self, index: int, item: ItemStack) -> None:
|
|
1444
1404
|
"""
|
|
1445
1405
|
Stores the ItemStack at the given index of the inventory.
|
|
1446
1406
|
"""
|
|
@@ -1460,7 +1420,7 @@ class Inventory:
|
|
|
1460
1420
|
"""
|
|
1461
1421
|
Returns the ItemStack found in the slot at the given index
|
|
1462
1422
|
"""
|
|
1463
|
-
def set_item(self, index: int, item: ItemStack
|
|
1423
|
+
def set_item(self, index: int, item: ItemStack) -> None:
|
|
1464
1424
|
"""
|
|
1465
1425
|
Stores the ItemStack at the given index of the inventory.
|
|
1466
1426
|
"""
|
|
@@ -1526,6 +1486,43 @@ class IpBanList:
|
|
|
1526
1486
|
"""
|
|
1527
1487
|
Gets a vector of pointers to entries in the ban list.
|
|
1528
1488
|
"""
|
|
1489
|
+
class ItemMeta:
|
|
1490
|
+
"""
|
|
1491
|
+
Represents the metadata of a generic item.
|
|
1492
|
+
"""
|
|
1493
|
+
@staticmethod
|
|
1494
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1495
|
+
...
|
|
1496
|
+
def clone(self) -> ItemMeta:
|
|
1497
|
+
"""
|
|
1498
|
+
Creates a clone of the current metadata.
|
|
1499
|
+
"""
|
|
1500
|
+
@property
|
|
1501
|
+
def display_name(self) -> str | None:
|
|
1502
|
+
"""
|
|
1503
|
+
Gets or sets the display name.
|
|
1504
|
+
"""
|
|
1505
|
+
@display_name.setter
|
|
1506
|
+
def display_name(self, arg1: str | None) -> None:
|
|
1507
|
+
...
|
|
1508
|
+
@property
|
|
1509
|
+
def has_display_name(self) -> bool:
|
|
1510
|
+
"""
|
|
1511
|
+
Checks for existence of a display name.
|
|
1512
|
+
"""
|
|
1513
|
+
@property
|
|
1514
|
+
def has_lore(self) -> bool:
|
|
1515
|
+
"""
|
|
1516
|
+
Checks for existence of lore.
|
|
1517
|
+
"""
|
|
1518
|
+
@property
|
|
1519
|
+
def lore(self) -> list[str] | None:
|
|
1520
|
+
"""
|
|
1521
|
+
Gets or sets the lore for this item.
|
|
1522
|
+
"""
|
|
1523
|
+
@lore.setter
|
|
1524
|
+
def lore(self, arg1: list[str] | None) -> None:
|
|
1525
|
+
...
|
|
1529
1526
|
class ItemStack:
|
|
1530
1527
|
"""
|
|
1531
1528
|
Represents a stack of items.
|
|
@@ -1537,6 +1534,10 @@ class ItemStack:
|
|
|
1537
1534
|
...
|
|
1538
1535
|
def __str__(self) -> str:
|
|
1539
1536
|
...
|
|
1537
|
+
def set_item_meta(self, meta: ItemMeta) -> bool:
|
|
1538
|
+
"""
|
|
1539
|
+
Set the ItemMeta of this ItemStack.
|
|
1540
|
+
"""
|
|
1540
1541
|
@property
|
|
1541
1542
|
def amount(self) -> int:
|
|
1542
1543
|
"""
|
|
@@ -1546,6 +1547,11 @@ class ItemStack:
|
|
|
1546
1547
|
def amount(self, arg1: int) -> None:
|
|
1547
1548
|
...
|
|
1548
1549
|
@property
|
|
1550
|
+
def item_meta(self) -> ItemMeta:
|
|
1551
|
+
"""
|
|
1552
|
+
Gets a copy of the ItemMeta of this ItemStack.
|
|
1553
|
+
"""
|
|
1554
|
+
@property
|
|
1549
1555
|
def type(self) -> str:
|
|
1550
1556
|
"""
|
|
1551
1557
|
Gets or sets the type of this item.
|
|
@@ -1742,6 +1748,13 @@ class Logger:
|
|
|
1742
1748
|
"""
|
|
1743
1749
|
Get the name of this Logger instance.
|
|
1744
1750
|
"""
|
|
1751
|
+
class MapMeta(ItemMeta):
|
|
1752
|
+
"""
|
|
1753
|
+
Represents the metadata for a map item.
|
|
1754
|
+
"""
|
|
1755
|
+
@staticmethod
|
|
1756
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
1757
|
+
...
|
|
1745
1758
|
class MessageForm:
|
|
1746
1759
|
"""
|
|
1747
1760
|
Represents a form with two buttons.
|
|
@@ -2012,53 +2025,56 @@ class OfflinePlayer:
|
|
|
2012
2025
|
"""
|
|
2013
2026
|
Returns the UUID of this player
|
|
2014
2027
|
"""
|
|
2015
|
-
class
|
|
2028
|
+
class PacketReceiveEvent(ServerEvent, Cancellable):
|
|
2016
2029
|
"""
|
|
2017
|
-
|
|
2030
|
+
Called when the server receives a packet from a connected client.
|
|
2018
2031
|
"""
|
|
2019
2032
|
@staticmethod
|
|
2020
2033
|
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2021
2034
|
...
|
|
2022
2035
|
@property
|
|
2023
|
-
def
|
|
2036
|
+
def packet_id(self) -> int:
|
|
2037
|
+
"""
|
|
2038
|
+
Gets the ID of the packet.
|
|
2039
|
+
"""
|
|
2040
|
+
@property
|
|
2041
|
+
def payload(self) -> bytes:
|
|
2042
|
+
"""
|
|
2043
|
+
Gets or sets the raw packet data **excluding** the header.
|
|
2044
|
+
"""
|
|
2045
|
+
@payload.setter
|
|
2046
|
+
def payload(self, arg1: bytes) -> None:
|
|
2047
|
+
...
|
|
2048
|
+
@property
|
|
2049
|
+
def player(self) -> Player:
|
|
2024
2050
|
"""
|
|
2025
|
-
Gets the
|
|
2051
|
+
Gets the player involved in this event
|
|
2026
2052
|
"""
|
|
2027
|
-
class
|
|
2053
|
+
class PacketSendEvent(ServerEvent, Cancellable):
|
|
2028
2054
|
"""
|
|
2029
|
-
|
|
2055
|
+
Called when the server sends a packet to a connected client.
|
|
2030
2056
|
"""
|
|
2031
|
-
SPAWN_PARTICLE_EFFECT: typing.ClassVar[PacketType] # value = <PacketType.SPAWN_PARTICLE_EFFECT: 118>
|
|
2032
|
-
__members__: typing.ClassVar[dict[str, PacketType]] # value = {'SPAWN_PARTICLE_EFFECT': <PacketType.SPAWN_PARTICLE_EFFECT: 118>}
|
|
2033
2057
|
@staticmethod
|
|
2034
2058
|
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2035
2059
|
...
|
|
2036
|
-
def __eq__(self, other: typing.Any) -> bool:
|
|
2037
|
-
...
|
|
2038
|
-
def __getstate__(self) -> int:
|
|
2039
|
-
...
|
|
2040
|
-
def __hash__(self) -> int:
|
|
2041
|
-
...
|
|
2042
|
-
def __index__(self) -> int:
|
|
2043
|
-
...
|
|
2044
|
-
def __init__(self, value: int) -> None:
|
|
2045
|
-
...
|
|
2046
|
-
def __int__(self) -> int:
|
|
2047
|
-
...
|
|
2048
|
-
def __ne__(self, other: typing.Any) -> bool:
|
|
2049
|
-
...
|
|
2050
|
-
def __repr__(self) -> str:
|
|
2051
|
-
...
|
|
2052
|
-
def __setstate__(self, state: int) -> None:
|
|
2053
|
-
...
|
|
2054
|
-
def __str__(self) -> str:
|
|
2055
|
-
...
|
|
2056
2060
|
@property
|
|
2057
|
-
def
|
|
2058
|
-
|
|
2061
|
+
def packet_id(self) -> int:
|
|
2062
|
+
"""
|
|
2063
|
+
Gets the ID of the packet.
|
|
2064
|
+
"""
|
|
2059
2065
|
@property
|
|
2060
|
-
def
|
|
2066
|
+
def payload(self) -> bytes:
|
|
2067
|
+
"""
|
|
2068
|
+
Gets or sets the raw packet data **excluding** the header.
|
|
2069
|
+
"""
|
|
2070
|
+
@payload.setter
|
|
2071
|
+
def payload(self, arg1: bytes) -> None:
|
|
2061
2072
|
...
|
|
2073
|
+
@property
|
|
2074
|
+
def player(self) -> Player:
|
|
2075
|
+
"""
|
|
2076
|
+
Gets the player involved in this event
|
|
2077
|
+
"""
|
|
2062
2078
|
class Permissible:
|
|
2063
2079
|
"""
|
|
2064
2080
|
Represents an object that may become a server operator and can be assigned permissions.
|
|
@@ -2335,7 +2351,7 @@ class Player(Mob, OfflinePlayer):
|
|
|
2335
2351
|
"""
|
|
2336
2352
|
Sends a form to the player.
|
|
2337
2353
|
"""
|
|
2338
|
-
def send_packet(self,
|
|
2354
|
+
def send_packet(self, packet_id: int, payload: bytes) -> None:
|
|
2339
2355
|
"""
|
|
2340
2356
|
Sends a packet to the player.
|
|
2341
2357
|
"""
|
|
@@ -2710,6 +2726,62 @@ class PlayerInventory(Inventory):
|
|
|
2710
2726
|
@staticmethod
|
|
2711
2727
|
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
2712
2728
|
...
|
|
2729
|
+
@property
|
|
2730
|
+
def boots(self) -> ItemStack:
|
|
2731
|
+
"""
|
|
2732
|
+
Gets or sets the ItemStack in the boots slot
|
|
2733
|
+
"""
|
|
2734
|
+
@boots.setter
|
|
2735
|
+
def boots(self, arg1: ItemStack) -> None:
|
|
2736
|
+
...
|
|
2737
|
+
@property
|
|
2738
|
+
def chestplate(self) -> ItemStack:
|
|
2739
|
+
"""
|
|
2740
|
+
Gets or sets the ItemStack in the chestplate slot
|
|
2741
|
+
"""
|
|
2742
|
+
@chestplate.setter
|
|
2743
|
+
def chestplate(self, arg1: ItemStack) -> None:
|
|
2744
|
+
...
|
|
2745
|
+
@property
|
|
2746
|
+
def held_item_slot(self) -> int:
|
|
2747
|
+
"""
|
|
2748
|
+
Gets or sets the slot number of the currently held item
|
|
2749
|
+
"""
|
|
2750
|
+
@held_item_slot.setter
|
|
2751
|
+
def held_item_slot(self, arg1: int) -> None:
|
|
2752
|
+
...
|
|
2753
|
+
@property
|
|
2754
|
+
def helmet(self) -> ItemStack:
|
|
2755
|
+
"""
|
|
2756
|
+
Gets or sets the ItemStack in the helmet slot
|
|
2757
|
+
"""
|
|
2758
|
+
@helmet.setter
|
|
2759
|
+
def helmet(self, arg1: ItemStack) -> None:
|
|
2760
|
+
...
|
|
2761
|
+
@property
|
|
2762
|
+
def item_in_main_hand(self) -> ItemStack:
|
|
2763
|
+
"""
|
|
2764
|
+
Gets or sets the item the player is currently holding in their main hand.
|
|
2765
|
+
"""
|
|
2766
|
+
@item_in_main_hand.setter
|
|
2767
|
+
def item_in_main_hand(self, arg1: ItemStack) -> None:
|
|
2768
|
+
...
|
|
2769
|
+
@property
|
|
2770
|
+
def item_in_off_hand(self) -> ItemStack:
|
|
2771
|
+
"""
|
|
2772
|
+
Gets or sets the item the player is currently holding in their off hand.
|
|
2773
|
+
"""
|
|
2774
|
+
@item_in_off_hand.setter
|
|
2775
|
+
def item_in_off_hand(self, arg1: ItemStack) -> None:
|
|
2776
|
+
...
|
|
2777
|
+
@property
|
|
2778
|
+
def leggings(self) -> ItemStack:
|
|
2779
|
+
"""
|
|
2780
|
+
Gets or sets the ItemStack in the leg slot
|
|
2781
|
+
"""
|
|
2782
|
+
@leggings.setter
|
|
2783
|
+
def leggings(self, arg1: ItemStack) -> None:
|
|
2784
|
+
...
|
|
2713
2785
|
class PlayerJoinEvent(PlayerEvent):
|
|
2714
2786
|
"""
|
|
2715
2787
|
Called when a player joins a server
|
|
@@ -3565,6 +3637,11 @@ class Server:
|
|
|
3565
3637
|
Gets the primary Scoreboard controlled by the server.
|
|
3566
3638
|
"""
|
|
3567
3639
|
@property
|
|
3640
|
+
def service_manager(self) -> ServiceManager:
|
|
3641
|
+
"""
|
|
3642
|
+
Gets the service manager.
|
|
3643
|
+
"""
|
|
3644
|
+
@property
|
|
3568
3645
|
def start_time(self) -> datetime.datetime:
|
|
3569
3646
|
"""
|
|
3570
3647
|
Gets the start time of the server.
|
|
@@ -3738,6 +3815,81 @@ class ServerLoadEvent(Event):
|
|
|
3738
3815
|
@property
|
|
3739
3816
|
def type(self) -> ServerLoadEvent.LoadType:
|
|
3740
3817
|
...
|
|
3818
|
+
class Service:
|
|
3819
|
+
"""
|
|
3820
|
+
Represents a list of methods.
|
|
3821
|
+
"""
|
|
3822
|
+
@staticmethod
|
|
3823
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3824
|
+
...
|
|
3825
|
+
def __init__(self) -> None:
|
|
3826
|
+
...
|
|
3827
|
+
class ServiceManager:
|
|
3828
|
+
"""
|
|
3829
|
+
Represent a service manager that manages services and service providers.
|
|
3830
|
+
"""
|
|
3831
|
+
@staticmethod
|
|
3832
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3833
|
+
...
|
|
3834
|
+
def load(self, name: str) -> Service:
|
|
3835
|
+
...
|
|
3836
|
+
def register(self, name: str, provider: Service, plugin: Plugin, priority: ServicePriority) -> None:
|
|
3837
|
+
"""
|
|
3838
|
+
Register a provider of a service.
|
|
3839
|
+
"""
|
|
3840
|
+
@typing.overload
|
|
3841
|
+
def unregister(self, name: str, provider: Service) -> None:
|
|
3842
|
+
"""
|
|
3843
|
+
Unregister a particular provider for a particular service.
|
|
3844
|
+
"""
|
|
3845
|
+
@typing.overload
|
|
3846
|
+
def unregister(self, provider: Service) -> None:
|
|
3847
|
+
"""
|
|
3848
|
+
Unregister a particular provider.
|
|
3849
|
+
"""
|
|
3850
|
+
def unregister_all(self, plugin: Plugin) -> None:
|
|
3851
|
+
"""
|
|
3852
|
+
Unregister all the services registered by a particular plugin.
|
|
3853
|
+
"""
|
|
3854
|
+
class ServicePriority:
|
|
3855
|
+
"""
|
|
3856
|
+
Represents various priorities of a provider.
|
|
3857
|
+
"""
|
|
3858
|
+
HIGH: typing.ClassVar[ServicePriority] # value = <ServicePriority.HIGH: 3>
|
|
3859
|
+
HIGHEST: typing.ClassVar[ServicePriority] # value = <ServicePriority.HIGHEST: 4>
|
|
3860
|
+
LOW: typing.ClassVar[ServicePriority] # value = <ServicePriority.LOW: 1>
|
|
3861
|
+
LOWEST: typing.ClassVar[ServicePriority] # value = <ServicePriority.LOWEST: 0>
|
|
3862
|
+
NORMAL: typing.ClassVar[ServicePriority] # value = <ServicePriority.NORMAL: 2>
|
|
3863
|
+
__members__: typing.ClassVar[dict[str, ServicePriority]] # value = {'LOWEST': <ServicePriority.LOWEST: 0>, 'LOW': <ServicePriority.LOW: 1>, 'NORMAL': <ServicePriority.NORMAL: 2>, 'HIGH': <ServicePriority.HIGH: 3>, 'HIGHEST': <ServicePriority.HIGHEST: 4>}
|
|
3864
|
+
@staticmethod
|
|
3865
|
+
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3866
|
+
...
|
|
3867
|
+
def __eq__(self, other: typing.Any) -> bool:
|
|
3868
|
+
...
|
|
3869
|
+
def __getstate__(self) -> int:
|
|
3870
|
+
...
|
|
3871
|
+
def __hash__(self) -> int:
|
|
3872
|
+
...
|
|
3873
|
+
def __index__(self) -> int:
|
|
3874
|
+
...
|
|
3875
|
+
def __init__(self, value: int) -> None:
|
|
3876
|
+
...
|
|
3877
|
+
def __int__(self) -> int:
|
|
3878
|
+
...
|
|
3879
|
+
def __ne__(self, other: typing.Any) -> bool:
|
|
3880
|
+
...
|
|
3881
|
+
def __repr__(self) -> str:
|
|
3882
|
+
...
|
|
3883
|
+
def __setstate__(self, state: int) -> None:
|
|
3884
|
+
...
|
|
3885
|
+
def __str__(self) -> str:
|
|
3886
|
+
...
|
|
3887
|
+
@property
|
|
3888
|
+
def name(self) -> str:
|
|
3889
|
+
...
|
|
3890
|
+
@property
|
|
3891
|
+
def value(self) -> int:
|
|
3892
|
+
...
|
|
3741
3893
|
class Skin:
|
|
3742
3894
|
"""
|
|
3743
3895
|
Represents a player skin.
|
|
@@ -3843,20 +3995,6 @@ class SocketAddress:
|
|
|
3843
3995
|
"""
|
|
3844
3996
|
Gets the port number.
|
|
3845
3997
|
"""
|
|
3846
|
-
class SpawnParticleEffectPacket(Packet):
|
|
3847
|
-
"""
|
|
3848
|
-
Represents a packet for spawning a particle effect.
|
|
3849
|
-
"""
|
|
3850
|
-
actor_id: int
|
|
3851
|
-
dimension_id: int
|
|
3852
|
-
effect_name: str
|
|
3853
|
-
molang_variables_json: str | None
|
|
3854
|
-
position: Vector
|
|
3855
|
-
@staticmethod
|
|
3856
|
-
def _pybind11_conduit_v1_(*args, **kwargs):
|
|
3857
|
-
...
|
|
3858
|
-
def __init__(self) -> None:
|
|
3859
|
-
...
|
|
3860
3998
|
class StepSlider:
|
|
3861
3999
|
"""
|
|
3862
4000
|
Represents a step slider with a set of predefined options.
|
endstone/_internal/metrics.py
CHANGED
|
@@ -5,7 +5,7 @@ from typing import Any, Dict
|
|
|
5
5
|
import psutil
|
|
6
6
|
from endstone_bstats import AdvancedPie, DrilldownPie, MetricsBase, MetricsConfig, SimplePie, SingleLineChart
|
|
7
7
|
|
|
8
|
-
from endstone import Server
|
|
8
|
+
from endstone import Server, __minecraft_version__
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class Metrics(MetricsBase):
|
|
@@ -28,7 +28,7 @@ class Metrics(MetricsBase):
|
|
|
28
28
|
|
|
29
29
|
self.add_custom_chart(SingleLineChart("players", lambda: len(self._server.online_players)))
|
|
30
30
|
self.add_custom_chart(SimplePie("endstone_version", lambda: self._server.version))
|
|
31
|
-
self.add_custom_chart(SimplePie("minecraft_version", lambda:
|
|
31
|
+
self.add_custom_chart(SimplePie("minecraft_version", lambda: __minecraft_version__))
|
|
32
32
|
self.add_custom_chart(DrilldownPie("online_mode", self._get_online_mode))
|
|
33
33
|
self.add_custom_chart(DrilldownPie("python_version", self._get_python_version))
|
|
34
34
|
self.add_custom_chart(AdvancedPie("player_platform", self._get_player_platforms))
|
|
@@ -27,6 +27,9 @@ warnings.simplefilter(action="always", category=FutureWarning)
|
|
|
27
27
|
|
|
28
28
|
def find_python():
|
|
29
29
|
paths = []
|
|
30
|
+
if os.environ.get("ENDSTONE_PYTHON_EXECUTABLE", None) is not None:
|
|
31
|
+
paths.append(os.environ["ENDSTONE_PYTHON_EXECUTABLE"])
|
|
32
|
+
|
|
30
33
|
if sys.platform == "win32":
|
|
31
34
|
paths.append(os.path.join(sys.base_prefix, "python.exe"))
|
|
32
35
|
else:
|
|
@@ -36,6 +39,7 @@ def find_python():
|
|
|
36
39
|
paths.append(os.path.join(sys.base_prefix, "bin", "python" + f"{sys.version_info.major}"))
|
|
37
40
|
paths.append(os.path.join(sys.base_prefix, "bin", "python"))
|
|
38
41
|
|
|
42
|
+
paths = set(paths)
|
|
39
43
|
for path in paths:
|
|
40
44
|
if os.path.isfile(path):
|
|
41
45
|
return path
|
|
@@ -44,7 +48,7 @@ def find_python():
|
|
|
44
48
|
|
|
45
49
|
|
|
46
50
|
class PythonPluginLoader(PluginLoader):
|
|
47
|
-
SUPPORTED_API = ["0.5", "0.6"]
|
|
51
|
+
SUPPORTED_API = ["0.5", "0.6", "0.7"]
|
|
48
52
|
|
|
49
53
|
def __init__(self, server: Server):
|
|
50
54
|
PluginLoader.__init__(self, server)
|
endstone/_internal/version.py
CHANGED
endstone/event.py
CHANGED
|
@@ -12,11 +12,11 @@ from endstone._internal.endstone_python import (
|
|
|
12
12
|
BlockPlaceEvent,
|
|
13
13
|
BroadcastMessageEvent,
|
|
14
14
|
Cancellable,
|
|
15
|
-
DataPacketReceiveEvent,
|
|
16
|
-
DataPacketSendEvent,
|
|
17
15
|
Event,
|
|
18
16
|
EventPriority,
|
|
19
17
|
MobEvent,
|
|
18
|
+
PacketReceiveEvent,
|
|
19
|
+
PacketSendEvent,
|
|
20
20
|
PlayerChatEvent,
|
|
21
21
|
PlayerCommandEvent,
|
|
22
22
|
PlayerDeathEvent,
|
|
@@ -57,11 +57,11 @@ __all__ = [
|
|
|
57
57
|
"BlockBreakEvent",
|
|
58
58
|
"BlockPlaceEvent",
|
|
59
59
|
"Cancellable",
|
|
60
|
-
"DataPacketReceiveEvent",
|
|
61
|
-
"DataPacketSendEvent",
|
|
62
60
|
"Event",
|
|
63
61
|
"EventPriority",
|
|
64
62
|
"MobEvent",
|
|
63
|
+
"PacketReceiveEvent",
|
|
64
|
+
"PacketSendEvent",
|
|
65
65
|
"PlayerEvent",
|
|
66
66
|
"PlayerChatEvent",
|
|
67
67
|
"PlayerCommandEvent",
|
endstone/inventory.py
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
from endstone._internal.endstone_python import Inventory, ItemStack, PlayerInventory
|
|
1
|
+
from endstone._internal.endstone_python import Inventory, ItemMeta, ItemStack, MapMeta, PlayerInventory
|
|
2
2
|
|
|
3
|
-
__all__ = ["ItemStack", "Inventory", "PlayerInventory"]
|
|
3
|
+
__all__ = ["ItemStack", "ItemMeta", "Inventory", "MapMeta", "PlayerInventory"]
|
endstone/plugin.py
CHANGED
|
@@ -14,6 +14,9 @@ from endstone._internal.endstone_python import (
|
|
|
14
14
|
PluginLoader,
|
|
15
15
|
PluginLoadOrder,
|
|
16
16
|
PluginManager,
|
|
17
|
+
Service,
|
|
18
|
+
ServiceManager,
|
|
19
|
+
ServicePriority,
|
|
17
20
|
)
|
|
18
21
|
from endstone.event import Event
|
|
19
22
|
|
|
@@ -24,6 +27,9 @@ __all__ = [
|
|
|
24
27
|
"PluginLoader",
|
|
25
28
|
"PluginLoadOrder",
|
|
26
29
|
"PluginManager",
|
|
30
|
+
"Service",
|
|
31
|
+
"ServiceManager",
|
|
32
|
+
"ServicePriority",
|
|
27
33
|
]
|
|
28
34
|
|
|
29
35
|
|
endstone_runtime.dll
CHANGED
|
Binary file
|
endstone_runtime.pdb
CHANGED
|
Binary file
|