levistone 0.6.2.dev58__1-cp39-cp39-win_amd64.whl → 0.9.3__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.

@@ -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', 'DataPacketReceiveEvent', 'DataPacketSendEvent', 'Dimension', 'DisplaySlot', 'Dropdown', 'Event', 'EventPriority', 'GameMode', 'Inventory', 'IpBanEntry', 'IpBanList', 'ItemStack', 'Label', 'Language', 'Level', 'Location', 'Logger', 'MessageForm', 'Mob', 'MobEvent', 'ModalForm', 'Objective', 'ObjectiveSortOrder', 'OfflinePlayer', 'Packet', 'PacketType', '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', 'Skin', 'Slider', 'SocketAddress', 'SpawnParticleEffectPacket', 'StepSlider', 'Task', 'TextInput', 'ThunderChangeEvent', 'Toggle', 'Translatable', 'Vector', 'WeatherChangeEvent', 'WeatherEvent']
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', '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.
@@ -13,9 +13,6 @@ class ActionForm:
13
13
  """
14
14
  Represents a button with text and an optional icon.
15
15
  """
16
- @staticmethod
17
- def _pybind11_conduit_v1_(*args, **kwargs):
18
- ...
19
16
  def __init__(self, text: str | Translatable = '', icon: str | None = None, on_click: typing.Callable[[Player], None] = None) -> None:
20
17
  ...
21
18
  @property
@@ -42,23 +39,24 @@ class ActionForm:
42
39
  @text.setter
43
40
  def text(self, arg1: str | Translatable) -> ActionForm.Button:
44
41
  ...
45
- @staticmethod
46
- def _pybind11_conduit_v1_(*args, **kwargs):
47
- ...
48
- def __init__(self, title: str | Translatable = '', content: str | Translatable = '', buttons: list[ActionForm.Button] | None = None, on_submit: typing.Callable[[Player, int], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
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:
49
43
  ...
50
44
  def add_button(self, text: str | Translatable, icon: str | None = None, on_click: typing.Callable[[Player], None] = None) -> ActionForm:
51
45
  """
52
46
  Adds a button to the form.
53
47
  """
54
- @property
55
- def buttons(self) -> list[ActionForm.Button]:
48
+ def add_divider(self) -> ActionForm:
56
49
  """
57
- Gets or sets the buttons of the action form.
50
+ Adds a divider to the form.
51
+ """
52
+ def add_header(self, text: str | Translatable) -> ActionForm:
53
+ """
54
+ Adds a header to the form.
55
+ """
56
+ def add_label(self, text: str | Translatable) -> ActionForm:
57
+ """
58
+ Adds a label to the form.
58
59
  """
59
- @buttons.setter
60
- def buttons(self, arg1: list[ActionForm.Button]) -> ActionForm:
61
- ...
62
60
  @property
63
61
  def content(self) -> str | Translatable:
64
62
  """
@@ -68,6 +66,14 @@ class ActionForm:
68
66
  def content(self, arg1: str | Translatable) -> ActionForm:
69
67
  ...
70
68
  @property
69
+ def controls(self) -> list[ActionForm.Button | Divider | Header | Label]:
70
+ """
71
+ Gets or sets the controls of the action form.
72
+ """
73
+ @controls.setter
74
+ def controls(self, arg1: list[ActionForm.Button | Divider | Header | Label]) -> ActionForm:
75
+ ...
76
+ @property
71
77
  def on_close(self) -> typing.Callable[[Player], None]:
72
78
  """
73
79
  Gets or sets the on close callback.
@@ -95,9 +101,6 @@ class Actor(CommandSender):
95
101
  """
96
102
  Represents a base actor in the level.
97
103
  """
98
- @staticmethod
99
- def _pybind11_conduit_v1_(*args, **kwargs):
100
- ...
101
104
  def add_scoreboard_tag(self, tag: str) -> bool:
102
105
  """
103
106
  Adds a tag to this actor.
@@ -238,9 +241,6 @@ class ActorDamageEvent(MobEvent, Cancellable):
238
241
  """
239
242
  Called when an Actor is damaged.
240
243
  """
241
- @staticmethod
242
- def _pybind11_conduit_v1_(*args, **kwargs):
243
- ...
244
244
  @property
245
245
  def damage(self) -> float:
246
246
  """
@@ -258,9 +258,6 @@ class ActorDeathEvent(MobEvent):
258
258
  """
259
259
  Called when an Actor dies.
260
260
  """
261
- @staticmethod
262
- def _pybind11_conduit_v1_(*args, **kwargs):
263
- ...
264
261
  @property
265
262
  def damage_source(self) -> DamageSource:
266
263
  """
@@ -270,9 +267,6 @@ class ActorEvent(Event):
270
267
  """
271
268
  Represents an Actor-related event.
272
269
  """
273
- @staticmethod
274
- def _pybind11_conduit_v1_(*args, **kwargs):
275
- ...
276
270
  @property
277
271
  def actor(self) -> Actor:
278
272
  """
@@ -282,9 +276,6 @@ class ActorExplodeEvent(ActorEvent, Cancellable):
282
276
  """
283
277
  Called when an Actor explodes.
284
278
  """
285
- @staticmethod
286
- def _pybind11_conduit_v1_(*args, **kwargs):
287
- ...
288
279
  @property
289
280
  def block_list(self) -> list[Block]:
290
281
  """
@@ -302,9 +293,6 @@ class ActorKnockbackEvent(MobEvent, Cancellable):
302
293
  """
303
294
  Called when a living entity receives knockback.
304
295
  """
305
- @staticmethod
306
- def _pybind11_conduit_v1_(*args, **kwargs):
307
- ...
308
296
  @property
309
297
  def knockback(self) -> Vector:
310
298
  """
@@ -322,23 +310,14 @@ class ActorRemoveEvent(ActorEvent):
322
310
  """
323
311
  Called when an Actor is removed.
324
312
  """
325
- @staticmethod
326
- def _pybind11_conduit_v1_(*args, **kwargs):
327
- ...
328
313
  class ActorSpawnEvent(ActorEvent, Cancellable):
329
314
  """
330
315
  Called when an Actor is spawned into a world.
331
316
  """
332
- @staticmethod
333
- def _pybind11_conduit_v1_(*args, **kwargs):
334
- ...
335
317
  class ActorTeleportEvent(ActorEvent, Cancellable):
336
318
  """
337
319
  Called when a non-player entity is teleported from one location to another.
338
320
  """
339
- @staticmethod
340
- def _pybind11_conduit_v1_(*args, **kwargs):
341
- ...
342
321
  @property
343
322
  def from_location(self) -> Location:
344
323
  """
@@ -359,9 +338,6 @@ class BanEntry:
359
338
  """
360
339
  A single entry from a ban list.
361
340
  """
362
- @staticmethod
363
- def _pybind11_conduit_v1_(*args, **kwargs):
364
- ...
365
341
  @property
366
342
  def created(self) -> datetime.datetime:
367
343
  """
@@ -404,9 +380,6 @@ class BarColor:
404
380
  WHITE: typing.ClassVar[BarColor] # value = <BarColor.WHITE: 7>
405
381
  YELLOW: typing.ClassVar[BarColor] # value = <BarColor.YELLOW: 4>
406
382
  __members__: typing.ClassVar[dict[str, BarColor]] # value = {'PINK': <BarColor.PINK: 0>, 'BLUE': <BarColor.BLUE: 1>, 'RED': <BarColor.RED: 2>, 'GREEN': <BarColor.GREEN: 3>, 'YELLOW': <BarColor.YELLOW: 4>, 'PURPLE': <BarColor.PURPLE: 5>, 'REBECCA_PURPLE': <BarColor.REBECCA_PURPLE: 6>, 'WHITE': <BarColor.WHITE: 7>}
407
- @staticmethod
408
- def _pybind11_conduit_v1_(*args, **kwargs):
409
- ...
410
383
  def __eq__(self, other: typing.Any) -> bool:
411
384
  ...
412
385
  def __getstate__(self) -> int:
@@ -436,9 +409,6 @@ class BarColor:
436
409
  class BarFlag:
437
410
  DARKEN_SKY: typing.ClassVar[BarFlag] # value = <BarFlag.DARKEN_SKY: 0>
438
411
  __members__: typing.ClassVar[dict[str, BarFlag]] # value = {'DARKEN_SKY': <BarFlag.DARKEN_SKY: 0>}
439
- @staticmethod
440
- def _pybind11_conduit_v1_(*args, **kwargs):
441
- ...
442
412
  def __eq__(self, other: typing.Any) -> bool:
443
413
  ...
444
414
  def __getstate__(self) -> int:
@@ -472,9 +442,6 @@ class BarStyle:
472
442
  SEGMENTED_6: typing.ClassVar[BarStyle] # value = <BarStyle.SEGMENTED_6: 1>
473
443
  SOLID: typing.ClassVar[BarStyle] # value = <BarStyle.SOLID: 0>
474
444
  __members__: typing.ClassVar[dict[str, BarStyle]] # value = {'SOLID': <BarStyle.SOLID: 0>, 'SEGMENTED_6': <BarStyle.SEGMENTED_6: 1>, 'SEGMENTED_10': <BarStyle.SEGMENTED_10: 2>, 'SEGMENTED_12': <BarStyle.SEGMENTED_12: 3>, 'SEGMENTED_20': <BarStyle.SEGMENTED_20: 4>}
475
- @staticmethod
476
- def _pybind11_conduit_v1_(*args, **kwargs):
477
- ...
478
445
  def __eq__(self, other: typing.Any) -> bool:
479
446
  ...
480
447
  def __getstate__(self) -> int:
@@ -505,9 +472,6 @@ class Block:
505
472
  """
506
473
  Represents a block.
507
474
  """
508
- @staticmethod
509
- def _pybind11_conduit_v1_(*args, **kwargs):
510
- ...
511
475
  def __str__(self) -> str:
512
476
  ...
513
477
  def capture_state(self) -> BlockState:
@@ -535,11 +499,8 @@ class Block:
535
499
  @property
536
500
  def data(self) -> BlockData:
537
501
  """
538
- Gets or sets the complete data for this block
502
+ Gets the complete data for this block
539
503
  """
540
- @data.setter
541
- def data(self, arg1: BlockData) -> None:
542
- ...
543
504
  @property
544
505
  def dimension(self) -> Dimension:
545
506
  """
@@ -555,9 +516,6 @@ class Block:
555
516
  """
556
517
  Gets or sets the type of the block.
557
518
  """
558
- @type.setter
559
- def type(self, arg1: str) -> None:
560
- ...
561
519
  @property
562
520
  def x(self) -> int:
563
521
  """
@@ -577,9 +535,6 @@ class BlockBreakEvent(BlockEvent, Cancellable):
577
535
  """
578
536
  Called when a block is broken by a player.
579
537
  """
580
- @staticmethod
581
- def _pybind11_conduit_v1_(*args, **kwargs):
582
- ...
583
538
  @property
584
539
  def player(self) -> Player:
585
540
  """
@@ -589,9 +544,6 @@ class BlockData:
589
544
  """
590
545
  Represents the data related to a live block
591
546
  """
592
- @staticmethod
593
- def _pybind11_conduit_v1_(*args, **kwargs):
594
- ...
595
547
  def __str__(self) -> str:
596
548
  ...
597
549
  @property
@@ -600,6 +552,11 @@ class BlockData:
600
552
  Gets the block states for this block.
601
553
  """
602
554
  @property
555
+ def runtime_id(self) -> int:
556
+ """
557
+ Gets the runtime id for this block.
558
+ """
559
+ @property
603
560
  def type(self) -> str:
604
561
  """
605
562
  Get the block type represented by this block data.
@@ -608,9 +565,6 @@ class BlockEvent(Event):
608
565
  """
609
566
  Represents an Block-related event
610
567
  """
611
- @staticmethod
612
- def _pybind11_conduit_v1_(*args, **kwargs):
613
- ...
614
568
  @property
615
569
  def block(self) -> Block:
616
570
  """
@@ -624,9 +578,6 @@ class BlockFace:
624
578
  UP: typing.ClassVar[BlockFace] # value = <BlockFace.UP: 1>
625
579
  WEST: typing.ClassVar[BlockFace] # value = <BlockFace.WEST: 4>
626
580
  __members__: typing.ClassVar[dict[str, BlockFace]] # value = {'DOWN': <BlockFace.DOWN: 0>, 'UP': <BlockFace.UP: 1>, 'NORTH': <BlockFace.NORTH: 2>, 'SOUTH': <BlockFace.SOUTH: 3>, 'WEST': <BlockFace.WEST: 4>, 'EAST': <BlockFace.EAST: 5>}
627
- @staticmethod
628
- def _pybind11_conduit_v1_(*args, **kwargs):
629
- ...
630
581
  def __eq__(self, other: typing.Any) -> bool:
631
582
  ...
632
583
  def __getstate__(self) -> int:
@@ -657,9 +608,6 @@ class BlockPlaceEvent(BlockEvent, Cancellable):
657
608
  """
658
609
  Called when a block is placed by a player.
659
610
  """
660
- @staticmethod
661
- def _pybind11_conduit_v1_(*args, **kwargs):
662
- ...
663
611
  @property
664
612
  def block_against(self) -> Block:
665
613
  """
@@ -684,9 +632,6 @@ class BlockState:
684
632
  """
685
633
  Represents a captured state of a block, which will not update automatically.
686
634
  """
687
- @staticmethod
688
- def _pybind11_conduit_v1_(*args, **kwargs):
689
- ...
690
635
  def __str__(self) -> str:
691
636
  ...
692
637
  def update(self, force: bool = False, apply_physics: bool = True) -> bool:
@@ -743,9 +688,6 @@ class BossBar:
743
688
  """
744
689
  Represents a boss bar that is displayed to players.
745
690
  """
746
- @staticmethod
747
- def _pybind11_conduit_v1_(*args, **kwargs):
748
- ...
749
691
  def add_flag(self, flag: BarFlag) -> None:
750
692
  """
751
693
  Adds an optional flag to this boss bar.
@@ -819,16 +761,13 @@ class BroadcastMessageEvent(ServerEvent, Cancellable):
819
761
  """
820
762
  Event triggered for server broadcast messages such as from Server.broadcast
821
763
  """
822
- @staticmethod
823
- def _pybind11_conduit_v1_(*args, **kwargs):
824
- ...
825
764
  @property
826
- def message(self) -> str:
765
+ def message(self) -> str | Translatable:
827
766
  """
828
767
  Gets or sets the message to broadcast.
829
768
  """
830
769
  @message.setter
831
- def message(self, arg1: str) -> None:
770
+ def message(self, arg1: str | Translatable) -> None:
832
771
  ...
833
772
  @property
834
773
  def recipients(self) -> set[CommandSender]:
@@ -839,9 +778,6 @@ class Cancellable:
839
778
  """
840
779
  Represents an event that may be cancelled by a plugin or the server.
841
780
  """
842
- @staticmethod
843
- def _pybind11_conduit_v1_(*args, **kwargs):
844
- ...
845
781
  def cancel(self) -> None:
846
782
  """
847
783
  Cancel this event. A cancelled event will not be executed in the server, but will still pass to other plugins.
@@ -866,8 +802,9 @@ class Chunk:
866
802
  """
867
803
  Represents a chunk of blocks.
868
804
  """
869
- @staticmethod
870
- def _pybind11_conduit_v1_(*args, **kwargs):
805
+ def __repr__(self) -> str:
806
+ ...
807
+ def __str__(self) -> str:
871
808
  ...
872
809
  @property
873
810
  def dimension(self) -> Dimension:
@@ -889,6 +826,23 @@ class Chunk:
889
826
  """
890
827
  Gets the Z-coordinate of this chunk
891
828
  """
829
+ class ChunkEvent(DimensionEvent):
830
+ """
831
+ Represents a Chunk related event
832
+ """
833
+ @property
834
+ def chunk(self) -> Chunk:
835
+ """
836
+ Gets the chunk being loaded/unloaded
837
+ """
838
+ class ChunkLoadEvent(ChunkEvent):
839
+ """
840
+ Called when a chunk is loaded
841
+ """
842
+ class ChunkUnloadEvent(ChunkEvent):
843
+ """
844
+ Called when a chunk is unloaded
845
+ """
892
846
  class ColorFormat:
893
847
  """
894
848
  All supported color and format codes.
@@ -925,16 +879,10 @@ class ColorFormat:
925
879
  RESET: typing.ClassVar[str] = '§r'
926
880
  WHITE: typing.ClassVar[str] = '§f'
927
881
  YELLOW: typing.ClassVar[str] = '§e'
928
- @staticmethod
929
- def _pybind11_conduit_v1_(*args, **kwargs):
930
- ...
931
882
  class Command:
932
883
  """
933
884
  Represents a Command, which executes various tasks upon user input
934
885
  """
935
- @staticmethod
936
- def _pybind11_conduit_v1_(*args, **kwargs):
937
- ...
938
886
  def __init__(self, name: str, description: str | None = None, usages: list[str] | None = None, aliases: list[str] | None = None, permissions: list[str] | None = None, *args, **kwargs) -> None:
939
887
  ...
940
888
  def execute(self, sender: CommandSender, args: list[str]) -> bool:
@@ -998,9 +946,6 @@ class CommandExecutor:
998
946
  """
999
947
  Represents a class which contains a single method for executing commands
1000
948
  """
1001
- @staticmethod
1002
- def _pybind11_conduit_v1_(*args, **kwargs):
1003
- ...
1004
949
  def __init__(self) -> None:
1005
950
  ...
1006
951
  def on_command(self, sender: CommandSender, command: Command, args: list[str]) -> bool:
@@ -1011,9 +956,6 @@ class CommandSender(Permissible):
1011
956
  """
1012
957
  Represents a command sender.
1013
958
  """
1014
- @staticmethod
1015
- def _pybind11_conduit_v1_(*args, **kwargs):
1016
- ...
1017
959
  def send_error_message(self, message: str | Translatable) -> None:
1018
960
  """
1019
961
  Sends this sender an error message
@@ -1036,18 +978,12 @@ class CommandSenderWrapper(CommandSender):
1036
978
  """
1037
979
  Represents a wrapper that forwards commands to the wrapped CommandSender and captures its output
1038
980
  """
1039
- @staticmethod
1040
- def _pybind11_conduit_v1_(*args, **kwargs):
1041
- ...
1042
981
  def __init__(self, sender: CommandSender, on_message: typing.Callable[[str | Translatable], None] = None, on_error: typing.Callable[[str | Translatable], None] = None) -> None:
1043
982
  ...
1044
983
  class ConsoleCommandSender(CommandSender):
1045
984
  """
1046
985
  Represents a console command sender.
1047
986
  """
1048
- @staticmethod
1049
- def _pybind11_conduit_v1_(*args, **kwargs):
1050
- ...
1051
987
  class Criteria:
1052
988
  """
1053
989
  Represents a scoreboard criteria.
@@ -1058,9 +994,6 @@ class Criteria:
1058
994
  """
1059
995
  DUMMY: typing.ClassVar[Criteria.Type] # value = <Type.DUMMY: 0>
1060
996
  __members__: typing.ClassVar[dict[str, Criteria.Type]] # value = {'DUMMY': <Type.DUMMY: 0>}
1061
- @staticmethod
1062
- def _pybind11_conduit_v1_(*args, **kwargs):
1063
- ...
1064
997
  def __eq__(self, other: typing.Any) -> bool:
1065
998
  ...
1066
999
  def __getstate__(self) -> int:
@@ -1088,9 +1021,6 @@ class Criteria:
1088
1021
  def value(self) -> int:
1089
1022
  ...
1090
1023
  DUMMY: typing.ClassVar[Criteria.Type] # value = <Type.DUMMY: 0>
1091
- @staticmethod
1092
- def _pybind11_conduit_v1_(*args, **kwargs):
1093
- ...
1094
1024
  @property
1095
1025
  def default_render_type(self) -> RenderType:
1096
1026
  ...
@@ -1104,9 +1034,6 @@ class DamageSource:
1104
1034
  """
1105
1035
  Represents a source of damage.
1106
1036
  """
1107
- @staticmethod
1108
- def _pybind11_conduit_v1_(*args, **kwargs):
1109
- ...
1110
1037
  def __str__(self) -> str:
1111
1038
  ...
1112
1039
  @property
@@ -1129,40 +1056,6 @@ class DamageSource:
1129
1056
  """
1130
1057
  Get the damage type.
1131
1058
  """
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
1059
  class Dimension:
1167
1060
  """
1168
1061
  Represents a dimension within a Level.
@@ -1176,9 +1069,6 @@ class Dimension:
1176
1069
  OVERWORLD: typing.ClassVar[Dimension.Type] # value = <Type.OVERWORLD: 0>
1177
1070
  THE_END: typing.ClassVar[Dimension.Type] # value = <Type.THE_END: 2>
1178
1071
  __members__: typing.ClassVar[dict[str, Dimension.Type]] # value = {'OVERWORLD': <Type.OVERWORLD: 0>, 'NETHER': <Type.NETHER: 1>, 'THE_END': <Type.THE_END: 2>, 'CUSTOM': <Type.CUSTOM: 999>}
1179
- @staticmethod
1180
- def _pybind11_conduit_v1_(*args, **kwargs):
1181
- ...
1182
1072
  def __eq__(self, other: typing.Any) -> bool:
1183
1073
  ...
1184
1074
  def __getstate__(self) -> int:
@@ -1209,9 +1099,6 @@ class Dimension:
1209
1099
  NETHER: typing.ClassVar[Dimension.Type] # value = <Type.NETHER: 1>
1210
1100
  OVERWORLD: typing.ClassVar[Dimension.Type] # value = <Type.OVERWORLD: 0>
1211
1101
  THE_END: typing.ClassVar[Dimension.Type] # value = <Type.THE_END: 2>
1212
- @staticmethod
1213
- def _pybind11_conduit_v1_(*args, **kwargs):
1214
- ...
1215
1102
  @typing.overload
1216
1103
  def get_block_at(self, location: Location) -> Block:
1217
1104
  """
@@ -1256,6 +1143,15 @@ class Dimension:
1256
1143
  """
1257
1144
  Gets the type of this dimension
1258
1145
  """
1146
+ class DimensionEvent(LevelEvent):
1147
+ """
1148
+ Represents events within a dimension
1149
+ """
1150
+ @property
1151
+ def dimension(self) -> Dimension:
1152
+ """
1153
+ Gets the dimension primarily involved with this event
1154
+ """
1259
1155
  class DisplaySlot:
1260
1156
  """
1261
1157
  Locations for displaying objectives to the player
@@ -1264,9 +1160,6 @@ class DisplaySlot:
1264
1160
  PLAYER_LIST: typing.ClassVar[DisplaySlot] # value = <DisplaySlot.PLAYER_LIST: 1>
1265
1161
  SIDE_BAR: typing.ClassVar[DisplaySlot] # value = <DisplaySlot.SIDE_BAR: 2>
1266
1162
  __members__: typing.ClassVar[dict[str, DisplaySlot]] # value = {'BELOW_NAME': <DisplaySlot.BELOW_NAME: 0>, 'PLAYER_LIST': <DisplaySlot.PLAYER_LIST: 1>, 'SIDE_BAR': <DisplaySlot.SIDE_BAR: 2>}
1267
- @staticmethod
1268
- def _pybind11_conduit_v1_(*args, **kwargs):
1269
- ...
1270
1163
  def __eq__(self, other: typing.Any) -> bool:
1271
1164
  ...
1272
1165
  def __getstate__(self) -> int:
@@ -1293,13 +1186,16 @@ class DisplaySlot:
1293
1186
  @property
1294
1187
  def value(self) -> int:
1295
1188
  ...
1189
+ class Divider:
1190
+ """
1191
+ Represents a divider.
1192
+ """
1193
+ def __init__(self) -> None:
1194
+ ...
1296
1195
  class Dropdown:
1297
1196
  """
1298
1197
  Represents a dropdown with a set of predefined options.
1299
1198
  """
1300
- @staticmethod
1301
- def _pybind11_conduit_v1_(*args, **kwargs):
1302
- ...
1303
1199
  def __init__(self, label: str | Translatable = '', options: list[str] | None = None, default_index: int | None = None) -> None:
1304
1200
  ...
1305
1201
  def add_option(self, option: str) -> Dropdown:
@@ -1330,13 +1226,95 @@ class Dropdown:
1330
1226
  @options.setter
1331
1227
  def options(self, arg1: list[str]) -> Dropdown:
1332
1228
  ...
1229
+ class Enchantment:
1230
+ def can_enchant_item(self, item: ItemStack) -> bool:
1231
+ """
1232
+ Checks if this Enchantment may be applied to the given ItemStack.
1233
+
1234
+ This does not check if it conflicts with any enchantments already applied to the item.
1235
+ """
1236
+ def conflicts_with(self, other: Enchantment) -> bool:
1237
+ """
1238
+ Check if this enchantment conflicts with another enchantment.
1239
+ """
1240
+ @property
1241
+ def key(self) -> NamespacedKey:
1242
+ """
1243
+ Return the namespaced identifier for this enchantment.
1244
+ """
1245
+ @property
1246
+ def max_level(self) -> int:
1247
+ """
1248
+ Gets the maximum level that this Enchantment may become.
1249
+ """
1250
+ @property
1251
+ def start_level(self) -> int:
1252
+ """
1253
+ Gets the level that this Enchantment should start at (also known as minimum level).
1254
+ """
1255
+ @property
1256
+ def translation_key(self) -> str:
1257
+ """
1258
+ Get the translation key, suitable for use in a translation component.
1259
+ """
1260
+ class EnchantmentRegistry:
1261
+ @typing.overload
1262
+ def __contains__(self, key: NamespacedKey) -> bool:
1263
+ ...
1264
+ @typing.overload
1265
+ def __contains__(self, key: str) -> bool:
1266
+ ...
1267
+ @typing.overload
1268
+ def __getitem__(self, key: NamespacedKey) -> Enchantment:
1269
+ ...
1270
+ @typing.overload
1271
+ def __getitem__(self, key: str) -> Enchantment:
1272
+ ...
1273
+ def __iter__(self) -> list:
1274
+ ...
1275
+ def get(self, key: NamespacedKey) -> Enchantment:
1276
+ ...
1277
+ def get_or_throw(self, key: NamespacedKey) -> Enchantment:
1278
+ ...
1279
+ class EquipmentSlot:
1280
+ BODY: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.BODY: 6>
1281
+ CHEST: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.CHEST: 4>
1282
+ FEET: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.FEET: 2>
1283
+ HAND: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.HAND: 0>
1284
+ HEAD: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.HEAD: 5>
1285
+ LEGS: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.LEGS: 3>
1286
+ OFF_HAND: typing.ClassVar[EquipmentSlot] # value = <EquipmentSlot.OFF_HAND: 1>
1287
+ __members__: typing.ClassVar[dict[str, EquipmentSlot]] # value = {'HAND': <EquipmentSlot.HAND: 0>, 'OFF_HAND': <EquipmentSlot.OFF_HAND: 1>, 'FEET': <EquipmentSlot.FEET: 2>, 'LEGS': <EquipmentSlot.LEGS: 3>, 'CHEST': <EquipmentSlot.CHEST: 4>, 'HEAD': <EquipmentSlot.HEAD: 5>, 'BODY': <EquipmentSlot.BODY: 6>}
1288
+ def __eq__(self, other: typing.Any) -> bool:
1289
+ ...
1290
+ def __getstate__(self) -> int:
1291
+ ...
1292
+ def __hash__(self) -> int:
1293
+ ...
1294
+ def __index__(self) -> int:
1295
+ ...
1296
+ def __init__(self, value: int) -> None:
1297
+ ...
1298
+ def __int__(self) -> int:
1299
+ ...
1300
+ def __ne__(self, other: typing.Any) -> bool:
1301
+ ...
1302
+ def __repr__(self) -> str:
1303
+ ...
1304
+ def __setstate__(self, state: int) -> None:
1305
+ ...
1306
+ def __str__(self) -> str:
1307
+ ...
1308
+ @property
1309
+ def name(self) -> str:
1310
+ ...
1311
+ @property
1312
+ def value(self) -> int:
1313
+ ...
1333
1314
  class Event:
1334
1315
  """
1335
1316
  Represents an event.
1336
1317
  """
1337
- @staticmethod
1338
- def _pybind11_conduit_v1_(*args, **kwargs):
1339
- ...
1340
1318
  @property
1341
1319
  def event_name(self) -> str:
1342
1320
  """
@@ -1358,9 +1336,6 @@ class EventPriority:
1358
1336
  MONITOR: typing.ClassVar[EventPriority] # value = <EventPriority.MONITOR: 5>
1359
1337
  NORMAL: typing.ClassVar[EventPriority] # value = <EventPriority.NORMAL: 2>
1360
1338
  __members__: typing.ClassVar[dict[str, EventPriority]] # value = {'LOWEST': <EventPriority.LOWEST: 0>, 'LOW': <EventPriority.LOW: 1>, 'NORMAL': <EventPriority.NORMAL: 2>, 'HIGH': <EventPriority.HIGH: 3>, 'HIGHEST': <EventPriority.HIGHEST: 4>, 'MONITOR': <EventPriority.MONITOR: 5>}
1361
- @staticmethod
1362
- def _pybind11_conduit_v1_(*args, **kwargs):
1363
- ...
1364
1339
  def __eq__(self, other: typing.Any) -> bool:
1365
1340
  ...
1366
1341
  def __getstate__(self) -> int:
@@ -1396,9 +1371,6 @@ class GameMode:
1396
1371
  SPECTATOR: typing.ClassVar[GameMode] # value = <GameMode.SPECTATOR: 3>
1397
1372
  SURVIVAL: typing.ClassVar[GameMode] # value = <GameMode.SURVIVAL: 0>
1398
1373
  __members__: typing.ClassVar[dict[str, GameMode]] # value = {'SURVIVAL': <GameMode.SURVIVAL: 0>, 'CREATIVE': <GameMode.CREATIVE: 1>, 'ADVENTURE': <GameMode.ADVENTURE: 2>, 'SPECTATOR': <GameMode.SPECTATOR: 3>}
1399
- @staticmethod
1400
- def _pybind11_conduit_v1_(*args, **kwargs):
1401
- ...
1402
1374
  def __eq__(self, other: typing.Any) -> bool:
1403
1375
  ...
1404
1376
  def __getstate__(self) -> int:
@@ -1425,14 +1397,35 @@ class GameMode:
1425
1397
  @property
1426
1398
  def value(self) -> int:
1427
1399
  ...
1400
+ class Header:
1401
+ """
1402
+ Represents a header with a label.
1403
+ """
1404
+ def __init__(self, label: str | Translatable = '') -> None:
1405
+ ...
1406
+ @property
1407
+ def label(self) -> str | Translatable:
1408
+ """
1409
+ Gets or sets the label of the header.
1410
+ """
1411
+ @label.setter
1412
+ def label(self, arg1: str | Translatable) -> Header:
1413
+ ...
1428
1414
  class Inventory:
1429
1415
  """
1430
1416
  Interface to the various inventories.
1431
1417
  """
1432
- @staticmethod
1433
- def _pybind11_conduit_v1_(*args, **kwargs):
1434
- ...
1435
- def __get_item__(self, index: int) -> ItemStack:
1418
+ @typing.overload
1419
+ def __contains__(self, item: ItemStack) -> bool:
1420
+ """
1421
+ Checks if the inventory contains any ItemStacks with the given ItemStack.
1422
+ """
1423
+ @typing.overload
1424
+ def __contains__(self, type: str) -> bool:
1425
+ """
1426
+ Checks if the inventory contains any ItemStacks with the given ItemType.
1427
+ """
1428
+ def __getitem__(self, index: int) -> ItemStack:
1436
1429
  """
1437
1430
  Returns the ItemStack found in the slot at the given index
1438
1431
  """
@@ -1440,47 +1433,133 @@ class Inventory:
1440
1433
  """
1441
1434
  Returns the size of the inventory
1442
1435
  """
1443
- def __set_item__(self, index: int, item: ItemStack | None) -> None:
1436
+ def __setitem__(self, index: int, item: ItemStack) -> None:
1444
1437
  """
1445
1438
  Stores the ItemStack at the given index of the inventory.
1446
1439
  """
1447
- def add_item(self, item: ItemStack) -> None:
1440
+ def add_item(self, *args) -> dict[int, ItemStack]:
1441
+ """
1442
+ Stores the given ItemStacks in the inventory.
1443
+ This will try to fill existing stacks and empty slots as well as it can.
1444
+
1445
+ The returned map contains what it couldn't store, where the key is the index, and the value is the ItemStack.
1446
+ If all items are stored, it will return an empty dict.
1447
+ """
1448
+ @typing.overload
1449
+ def all(self, item: ItemStack) -> dict[int, ItemStack]:
1450
+ """
1451
+ Finds all slots in the inventory containing any ItemStacks with the given ItemStack.
1452
+ This will only match slots if both the type and the amount of the stack match
1453
+ The returned map contains entries where, the key is the slot index, and the value is the ItemStack in that slot. If no matching ItemStack is found, an empty dict is returned.
1454
+ """
1455
+ @typing.overload
1456
+ def all(self, type: str) -> dict[int, ItemStack]:
1457
+ """
1458
+ Finds all slots in the inventory containing any ItemStacks with the given ItemType.
1459
+ The returned map contains entries where, the key is the slot index, and the value is the ItemStack in that slot. If no matching ItemStack is found, an empty dict is returned.
1448
1460
  """
1449
- Stores the given ItemStacks in the inventory. This will try to fill existing stacks and empty slots as well as it can.
1461
+ @typing.overload
1462
+ def clear(self, index: int) -> None:
1463
+ """
1464
+ Clears out a particular slot in the index.
1450
1465
  """
1466
+ @typing.overload
1451
1467
  def clear(self) -> None:
1452
1468
  """
1453
1469
  Clears out the whole Inventory.
1454
1470
  """
1455
- def first(self, item: ItemStack) -> int:
1471
+ @typing.overload
1472
+ def contains(self, item: ItemStack, amount: int) -> bool:
1456
1473
  """
1457
- Returns the first slot in the inventory containing an ItemStack with the given stack.
1474
+ Checks if the inventory contains at least the minimum amount specified of exactly matching ItemStacks.
1475
+ An ItemStack only counts if both the type and the amount of the stack match.
1458
1476
  """
1459
- def get_item(self, index: int) -> ItemStack:
1477
+ @typing.overload
1478
+ def contains(self, item: ItemStack) -> bool:
1460
1479
  """
1461
- Returns the ItemStack found in the slot at the given index
1480
+ Checks if the inventory contains any ItemStacks with the given ItemStack.
1481
+ This will only return true if both the type and the amount of the stack match.
1462
1482
  """
1463
- def set_item(self, index: int, item: ItemStack | None) -> None:
1483
+ @typing.overload
1484
+ def contains(self, type: str) -> bool:
1464
1485
  """
1465
- Stores the ItemStack at the given index of the inventory.
1486
+ Checks if the inventory contains any ItemStacks with the given ItemType.
1466
1487
  """
1467
- @property
1468
- def contents(self) -> list[ItemStack]:
1488
+ @typing.overload
1489
+ def contains_at_least(self, item: ItemStack, amount: int) -> bool:
1469
1490
  """
1470
- Returns all ItemStacks from the inventory
1491
+ Checks if the inventory contains ItemStacks matching the given ItemStack whose amounts sum to at least the minimum amount specified.
1471
1492
  """
1472
- @property
1473
- def is_empty(self) -> bool:
1493
+ @typing.overload
1494
+ def contains_at_least(self, type: str, amount: int) -> bool:
1474
1495
  """
1475
- Check whether this inventory is empty. An inventory is considered to be empty if there are no ItemStacks in any slot of this inventory.
1496
+ Checks if the inventory contains any ItemStacks with the given ItemType, adding to at least the minimum amount specified.
1476
1497
  """
1477
- @property
1478
- def max_stack_size(self) -> int:
1498
+ @typing.overload
1499
+ def first(self, item: ItemStack) -> int:
1479
1500
  """
1480
- Returns the maximum stack size for an ItemStack in this inventory.
1501
+ Returns the first slot in the inventory containing an ItemStack with the given stack.
1502
+ This will only match slots if both the type and the amount of the stack match
1503
+ The returned map contains entries where, the key is the slot index, and the value is the ItemStack in that slot. If no matching ItemStack is found, an empty dict is returned.
1481
1504
  """
1482
- @property
1483
- def size(self) -> int:
1505
+ @typing.overload
1506
+ def first(self, type: str) -> int:
1507
+ """
1508
+ Finds the first slot in the inventory containing an ItemStack with the given ItemType.
1509
+ The returned map contains entries where, the key is the slot index, and the value is the ItemStack in that slot. If no matching ItemStack is found, an empty dict is returned.
1510
+ """
1511
+ def get_item(self, index: int) -> ItemStack:
1512
+ """
1513
+ Returns the ItemStack found in the slot at the given index
1514
+ """
1515
+ @typing.overload
1516
+ def remove(self, item: ItemStack) -> None:
1517
+ """
1518
+ Removes all stacks in the inventory matching the given stack.
1519
+ This will only match a slot if both the type and the amount of the stack match
1520
+ """
1521
+ @typing.overload
1522
+ def remove(self, type: str) -> None:
1523
+ """
1524
+ Removes all stacks in the inventory matching the given ItemType.
1525
+ """
1526
+ def remove_item(self, *args) -> dict[int, ItemStack]:
1527
+ """
1528
+ Removes the given ItemStacks from the inventory.
1529
+ It will try to remove 'as much as possible' from the types and amounts you give as arguments.
1530
+
1531
+ The returned HashMap contains what it couldn't remove, where the key is the index, and the value is the ItemStack.
1532
+ If all the given ItemStacks are removed, it will return an empty dict.
1533
+ """
1534
+ def set_item(self, index: int, item: ItemStack) -> None:
1535
+ """
1536
+ Stores the ItemStack at the given index of the inventory.
1537
+ """
1538
+ @property
1539
+ def contents(self) -> list[ItemStack]:
1540
+ """
1541
+ Returns all ItemStacks from the inventory
1542
+ """
1543
+ @contents.setter
1544
+ def contents(self, arg1: list[ItemStack]) -> None:
1545
+ ...
1546
+ @property
1547
+ def first_empty(self) -> int:
1548
+ """
1549
+ Returns the first empty Slot.
1550
+ """
1551
+ @property
1552
+ def is_empty(self) -> bool:
1553
+ """
1554
+ Check whether this inventory is empty. An inventory is considered to be empty if there are no ItemStacks in any slot of this inventory.
1555
+ """
1556
+ @property
1557
+ def max_stack_size(self) -> int:
1558
+ """
1559
+ Returns the maximum stack size for an ItemStack in this inventory.
1560
+ """
1561
+ @property
1562
+ def size(self) -> int:
1484
1563
  """
1485
1564
  Returns the size of the inventory
1486
1565
  """
@@ -1488,9 +1567,6 @@ class IpBanEntry(BanEntry):
1488
1567
  """
1489
1568
  Represents a ban entry for an IP address.
1490
1569
  """
1491
- @staticmethod
1492
- def _pybind11_conduit_v1_(*args, **kwargs):
1493
- ...
1494
1570
  def __init__(self, address: str) -> None:
1495
1571
  ...
1496
1572
  @property
@@ -1502,9 +1578,6 @@ class IpBanList:
1502
1578
  """
1503
1579
  Represents a ban list containing banned IP addresses.
1504
1580
  """
1505
- @staticmethod
1506
- def _pybind11_conduit_v1_(*args, **kwargs):
1507
- ...
1508
1581
  def add_ban(self, address: str, reason: str | None = None, expires: datetime.datetime | None = None, source: str | None = None) -> IpBanEntry:
1509
1582
  """
1510
1583
  Adds a ban to this list, or updates an existing one.
@@ -1526,17 +1599,161 @@ class IpBanList:
1526
1599
  """
1527
1600
  Gets a vector of pointers to entries in the ban list.
1528
1601
  """
1602
+ class ItemFactory:
1603
+ def as_meta_for(self, meta: ItemMeta, type: ItemType) -> ItemMeta:
1604
+ """
1605
+ Returns an appropriate item meta for the specified item type.
1606
+ """
1607
+ def equals(self, meta1: ItemMeta, meta2: ItemMeta) -> bool:
1608
+ """
1609
+ This method is used to compare two ItemMeta objects.
1610
+ """
1611
+ def get_item_meta(self, type: ItemType) -> ItemMeta:
1612
+ """
1613
+ This creates a new item meta for the item type.
1614
+ """
1615
+ def is_applicable(self, meta: ItemMeta, type: ItemType) -> bool:
1616
+ """
1617
+ This method checks the item meta to confirm that it is applicable (no data lost if applied) to the specified ItemStack
1618
+ """
1619
+ class ItemMeta:
1620
+ """
1621
+ Represents the metadata of a generic item.
1622
+ """
1623
+ def add_enchant(self, id: str, level: int, force: bool = False) -> bool:
1624
+ """
1625
+ Adds the specified enchantment to this item meta.
1626
+ """
1627
+ def clone(self) -> ItemMeta:
1628
+ """
1629
+ Creates a clone of the current metadata.
1630
+ """
1631
+ def get_enchant_level(self, id: str) -> int:
1632
+ """
1633
+ Checks for the level of the specified enchantment.
1634
+ """
1635
+ def has_enchant(self, id: str) -> bool:
1636
+ """
1637
+ Checks for existence of the specified enchantment.
1638
+ """
1639
+ def remove_enchant(self, id: str) -> bool:
1640
+ """
1641
+ Removes the specified enchantment from this item meta.
1642
+ """
1643
+ def remove_enchants(self) -> None:
1644
+ """
1645
+ Removes all enchantments from this item meta.
1646
+ """
1647
+ @property
1648
+ def damage(self) -> int:
1649
+ """
1650
+ Gets or sets the damage.
1651
+ """
1652
+ @damage.setter
1653
+ def damage(self, arg1: int) -> None:
1654
+ ...
1655
+ @property
1656
+ def display_name(self) -> str | None:
1657
+ """
1658
+ Gets or sets the display name.
1659
+ """
1660
+ @display_name.setter
1661
+ def display_name(self, arg1: str | None) -> None:
1662
+ ...
1663
+ @property
1664
+ def enchants(self) -> dict[str, int]:
1665
+ """
1666
+ Returns a copy the enchantments in this ItemMeta.
1667
+ """
1668
+ @property
1669
+ def has_damage(self) -> bool:
1670
+ """
1671
+ Checks to see if this item has damage.
1672
+ """
1673
+ @property
1674
+ def has_display_name(self) -> bool:
1675
+ """
1676
+ Checks for existence of a display name.
1677
+ """
1678
+ @property
1679
+ def has_enchants(self) -> bool:
1680
+ """
1681
+ Checks for the existence of any enchantments.
1682
+ """
1683
+ @property
1684
+ def has_lore(self) -> bool:
1685
+ """
1686
+ Checks for existence of lore.
1687
+ """
1688
+ @property
1689
+ def has_repair_cost(self) -> bool:
1690
+ """
1691
+ Checks to see if this item has a repair penalty.
1692
+ """
1693
+ @property
1694
+ def is_unbreakable(self) -> bool:
1695
+ """
1696
+ Gets or sets the unbreakable tag. An unbreakable item will not lose durability.
1697
+ """
1698
+ @is_unbreakable.setter
1699
+ def is_unbreakable(self, arg1: bool) -> None:
1700
+ ...
1701
+ @property
1702
+ def lore(self) -> list[str] | None:
1703
+ """
1704
+ Gets or sets the lore for this item.
1705
+ """
1706
+ @lore.setter
1707
+ def lore(self, arg1: list[str] | None) -> None:
1708
+ ...
1709
+ @property
1710
+ def repair_cost(self) -> int:
1711
+ """
1712
+ Gets or sets the repair penalty.
1713
+ """
1714
+ @repair_cost.setter
1715
+ def repair_cost(self, arg1: int) -> None:
1716
+ ...
1717
+ class ItemRegistry:
1718
+ @typing.overload
1719
+ def __contains__(self, key: NamespacedKey) -> bool:
1720
+ ...
1721
+ @typing.overload
1722
+ def __contains__(self, key: str) -> bool:
1723
+ ...
1724
+ @typing.overload
1725
+ def __getitem__(self, key: NamespacedKey) -> ItemType:
1726
+ ...
1727
+ @typing.overload
1728
+ def __getitem__(self, key: str) -> ItemType:
1729
+ ...
1730
+ def __iter__(self) -> list:
1731
+ ...
1732
+ def get(self, key: NamespacedKey) -> ItemType:
1733
+ ...
1734
+ def get_or_throw(self, key: NamespacedKey) -> ItemType:
1735
+ ...
1529
1736
  class ItemStack:
1530
1737
  """
1531
1738
  Represents a stack of items.
1532
1739
  """
1533
- @staticmethod
1534
- def _pybind11_conduit_v1_(*args, **kwargs):
1740
+ __hash__: typing.ClassVar[None] = None
1741
+ def __eq__(self, arg0: ItemStack) -> bool:
1742
+ ...
1743
+ def __init__(self, type: ItemType | str, amount: int = 1) -> None:
1535
1744
  ...
1536
- def __init__(self, type: str = 'minecraft:air', amount: int = 1) -> None:
1745
+ def __ne__(self, arg0: ItemStack) -> bool:
1537
1746
  ...
1538
1747
  def __str__(self) -> str:
1539
1748
  ...
1749
+ def is_similar(self, other: ItemStack) -> bool:
1750
+ """
1751
+ Checks if the two stacks are equal, but does not consider stack size (amount).
1752
+ """
1753
+ def set_item_meta(self, meta: ItemMeta) -> bool:
1754
+ """
1755
+ Set the ItemMeta of this ItemStack.
1756
+ """
1540
1757
  @property
1541
1758
  def amount(self) -> int:
1542
1759
  """
@@ -1546,20 +1763,76 @@ class ItemStack:
1546
1763
  def amount(self, arg1: int) -> None:
1547
1764
  ...
1548
1765
  @property
1549
- def type(self) -> str:
1766
+ def item_meta(self) -> ItemMeta:
1767
+ """
1768
+ Gets a copy of the ItemMeta of this ItemStack.
1769
+ """
1770
+ @property
1771
+ def max_stack_size(self) -> int:
1772
+ """
1773
+ Get the maximum stack size for this item.
1774
+ """
1775
+ @property
1776
+ def type(self) -> ItemType:
1550
1777
  """
1551
1778
  Gets or sets the type of this item.
1552
1779
  """
1553
1780
  @type.setter
1554
- def type(self, arg1: str) -> None:
1781
+ def type(self, arg1: ItemType | str) -> None:
1555
1782
  ...
1556
- class Label:
1783
+ class ItemType:
1557
1784
  """
1558
- Represents a text label.
1785
+ Represents an item type.
1559
1786
  """
1787
+ __hash__: typing.ClassVar[None] = None
1560
1788
  @staticmethod
1561
- def _pybind11_conduit_v1_(*args, **kwargs):
1789
+ def get(name: str) -> ItemType:
1790
+ """
1791
+ Attempts to get the ItemType with the given name.
1792
+ """
1793
+ @typing.overload
1794
+ def __eq__(self, arg0: ItemType) -> bool:
1795
+ ...
1796
+ @typing.overload
1797
+ def __eq__(self, arg0: str) -> bool:
1798
+ ...
1799
+ @typing.overload
1800
+ def __ne__(self, arg0: ItemType) -> bool:
1562
1801
  ...
1802
+ @typing.overload
1803
+ def __ne__(self, arg0: str) -> bool:
1804
+ ...
1805
+ def __str__(self) -> str:
1806
+ ...
1807
+ @property
1808
+ def id(self) -> str:
1809
+ """
1810
+ Return the identifier of this item type.
1811
+ """
1812
+ @property
1813
+ def key(self) -> NamespacedKey:
1814
+ """
1815
+ Return the namespaced identifier of this item type.
1816
+ """
1817
+ @property
1818
+ def max_durability(self) -> int:
1819
+ """
1820
+ Gets the maximum durability of this item type
1821
+ """
1822
+ @property
1823
+ def max_stack_size(self) -> int:
1824
+ """
1825
+ Gets the maximum amount of this item type that can be held in a stack.
1826
+ """
1827
+ @property
1828
+ def translation_key(self) -> str:
1829
+ """
1830
+ Get the translation key, suitable for use in a translation component.
1831
+ """
1832
+ class Label:
1833
+ """
1834
+ Represents a text label.
1835
+ """
1563
1836
  def __init__(self, text: str | Translatable = '') -> None:
1564
1837
  ...
1565
1838
  @property
@@ -1574,9 +1847,6 @@ class Language:
1574
1847
  """
1575
1848
  Represents the interface for translating text into different languages.
1576
1849
  """
1577
- @staticmethod
1578
- def _pybind11_conduit_v1_(*args, **kwargs):
1579
- ...
1580
1850
  @typing.overload
1581
1851
  def translate(self, text: str, params: list[str] | None = None, locale: str | None = None) -> str:
1582
1852
  """
@@ -1593,9 +1863,6 @@ class Language:
1593
1863
  Gets the current locale.
1594
1864
  """
1595
1865
  class Level:
1596
- @staticmethod
1597
- def _pybind11_conduit_v1_(*args, **kwargs):
1598
- ...
1599
1866
  def get_dimension(self, name: str) -> Dimension:
1600
1867
  """
1601
1868
  Gets the dimension with the given name.
@@ -1623,13 +1890,19 @@ class Level:
1623
1890
  @time.setter
1624
1891
  def time(self, arg1: int) -> None:
1625
1892
  ...
1893
+ class LevelEvent(Event):
1894
+ """
1895
+ Represents events within a level
1896
+ """
1897
+ @property
1898
+ def level(self) -> Level:
1899
+ """
1900
+ Gets the level primarily involved with this event
1901
+ """
1626
1902
  class Location(Position):
1627
1903
  """
1628
1904
  Represents a 3-dimensional location in a dimension within a level.
1629
1905
  """
1630
- @staticmethod
1631
- def _pybind11_conduit_v1_(*args, **kwargs):
1632
- ...
1633
1906
  def __init__(self, dimension: Dimension, x: float, y: float, z: float, pitch: float = 0.0, yaw: float = 0.0) -> None:
1634
1907
  ...
1635
1908
  def __repr__(self) -> str:
@@ -1667,9 +1940,6 @@ class Logger:
1667
1940
  TRACE: typing.ClassVar[Logger.Level] # value = <Level.TRACE: 0>
1668
1941
  WARNING: typing.ClassVar[Logger.Level] # value = <Level.WARNING: 3>
1669
1942
  __members__: typing.ClassVar[dict[str, Logger.Level]] # value = {'TRACE': <Level.TRACE: 0>, 'DEBUG': <Level.DEBUG: 1>, 'INFO': <Level.INFO: 2>, 'WARNING': <Level.WARNING: 3>, 'ERROR': <Level.ERROR: 4>, 'CRITICAL': <Level.CRITICAL: 5>}
1670
- @staticmethod
1671
- def _pybind11_conduit_v1_(*args, **kwargs):
1672
- ...
1673
1943
  def __eq__(self, other: typing.Any) -> bool:
1674
1944
  ...
1675
1945
  def __getstate__(self) -> int:
@@ -1702,9 +1972,6 @@ class Logger:
1702
1972
  INFO: typing.ClassVar[Logger.Level] # value = <Level.INFO: 2>
1703
1973
  TRACE: typing.ClassVar[Logger.Level] # value = <Level.TRACE: 0>
1704
1974
  WARNING: typing.ClassVar[Logger.Level] # value = <Level.WARNING: 3>
1705
- @staticmethod
1706
- def _pybind11_conduit_v1_(*args, **kwargs):
1707
- ...
1708
1975
  def critical(self, message: str) -> None:
1709
1976
  """
1710
1977
  Log a message at the CRITICAL level.
@@ -1742,13 +2009,170 @@ class Logger:
1742
2009
  """
1743
2010
  Get the name of this Logger instance.
1744
2011
  """
2012
+ class MapCanvas:
2013
+ """
2014
+ Represents a canvas for drawing to a map. Each canvas is associated with a specific MapRenderer and represents that renderer's layer on the map.
2015
+ """
2016
+ def draw_image(self, x: int, y: int, image: numpy.ndarray[numpy.uint8]) -> None:
2017
+ """
2018
+ Draw an image to the map. The image will be clipped if necessary.
2019
+ """
2020
+ def get_base_pixel_color(self, x: int, y: int) -> tuple[int, ...]:
2021
+ """
2022
+ Get a pixel from the layers below this canvas.
2023
+ """
2024
+ def get_pixel_color(self, x: int, y: int) -> tuple[int, ...] | None:
2025
+ """
2026
+ Get a pixel from the canvas.
2027
+
2028
+ If no color is set at the given position for this canvas, then None is returned and the color returned by get_base_pixel_color() is shown on the map
2029
+ """
2030
+ def set_pixel_color(self, x: int, y: int, color: tuple[int, ...] | None) -> None:
2031
+ """
2032
+ Draw a pixel to the canvas.
2033
+
2034
+ If None is used as color, then the color returned by get_base_pixel_color() is shown on the map.
2035
+ """
2036
+ @property
2037
+ def map_view(self) -> MapView:
2038
+ """
2039
+ Get the map this canvas is attached to.
2040
+ """
2041
+ class MapMeta(ItemMeta):
2042
+ """
2043
+ Represents the metadata for a map item.
2044
+ """
2045
+ class MapRenderer:
2046
+ """
2047
+ Represents a renderer for a map.
2048
+ """
2049
+ def __init__(self, is_contextual: bool = False) -> None:
2050
+ """
2051
+ Initialize the map renderer base with the given contextual status.
2052
+ """
2053
+ def initialize(self, view: MapView) -> None:
2054
+ """
2055
+ Initialize this MapRenderer for the given map.
2056
+ """
2057
+ def render(self, map: MapView, canvas: MapCanvas, player: Player) -> None:
2058
+ """
2059
+ Render to the given map.
2060
+ """
2061
+ class MapView:
2062
+ """
2063
+ Represents a map item.
2064
+ """
2065
+ class Scale:
2066
+ """
2067
+ An enum representing all possible scales a map can be set to.
2068
+ """
2069
+ CLOSE: typing.ClassVar[MapView.Scale] # value = <Scale.CLOSE: 1>
2070
+ CLOSEST: typing.ClassVar[MapView.Scale] # value = <Scale.CLOSEST: 0>
2071
+ FAR: typing.ClassVar[MapView.Scale] # value = <Scale.FAR: 3>
2072
+ FARTHEST: typing.ClassVar[MapView.Scale] # value = <Scale.FARTHEST: 4>
2073
+ NORMAL: typing.ClassVar[MapView.Scale] # value = <Scale.NORMAL: 2>
2074
+ __members__: typing.ClassVar[dict[str, MapView.Scale]] # value = {'CLOSEST': <Scale.CLOSEST: 0>, 'CLOSE': <Scale.CLOSE: 1>, 'NORMAL': <Scale.NORMAL: 2>, 'FAR': <Scale.FAR: 3>, 'FARTHEST': <Scale.FARTHEST: 4>}
2075
+ def __eq__(self, other: typing.Any) -> bool:
2076
+ ...
2077
+ def __getstate__(self) -> int:
2078
+ ...
2079
+ def __hash__(self) -> int:
2080
+ ...
2081
+ def __index__(self) -> int:
2082
+ ...
2083
+ def __init__(self, value: int) -> None:
2084
+ ...
2085
+ def __int__(self) -> int:
2086
+ ...
2087
+ def __ne__(self, other: typing.Any) -> bool:
2088
+ ...
2089
+ def __repr__(self) -> str:
2090
+ ...
2091
+ def __setstate__(self, state: int) -> None:
2092
+ ...
2093
+ def __str__(self) -> str:
2094
+ ...
2095
+ @property
2096
+ def name(self) -> str:
2097
+ ...
2098
+ @property
2099
+ def value(self) -> int:
2100
+ ...
2101
+ def add_renderer(self, renderer: MapRenderer) -> None:
2102
+ """
2103
+ Add a renderer to this map.
2104
+ """
2105
+ def remove_renderer(self, renderer: MapRenderer) -> bool:
2106
+ """
2107
+ Remove a renderer from this map.
2108
+ """
2109
+ @property
2110
+ def center_x(self) -> int:
2111
+ """
2112
+ Get or set the center X position of this map.
2113
+ """
2114
+ @center_x.setter
2115
+ def center_x(self, arg1: int) -> None:
2116
+ ...
2117
+ @property
2118
+ def center_z(self) -> int:
2119
+ """
2120
+ Get or set the center Z position of this map.
2121
+ """
2122
+ @center_z.setter
2123
+ def center_z(self, arg1: int) -> None:
2124
+ ...
2125
+ @property
2126
+ def dimension(self) -> Dimension:
2127
+ """
2128
+ Get or set the dimension that this map is associated with.
2129
+ """
2130
+ @dimension.setter
2131
+ def dimension(self, arg1: Dimension) -> None:
2132
+ ...
2133
+ @property
2134
+ def id(self) -> int:
2135
+ """
2136
+ Get the ID of this map item for use with MapMeta.
2137
+ """
2138
+ @property
2139
+ def is_unlimited_tracking(self) -> bool:
2140
+ """
2141
+ Whether the map will show a smaller position cursor (true), or no position cursor (false) when cursor is outside of map's range.
2142
+ """
2143
+ @is_unlimited_tracking.setter
2144
+ def is_unlimited_tracking(self, arg1: bool) -> None:
2145
+ ...
2146
+ @property
2147
+ def is_virtual(self) -> bool:
2148
+ """
2149
+ Check whether this map is virtual.
2150
+ """
2151
+ @property
2152
+ def locked(self) -> bool:
2153
+ """
2154
+ Whether the map is locked or not. A locked map may not be explored further.
2155
+ """
2156
+ @locked.setter
2157
+ def locked(self, arg1: bool) -> None:
2158
+ ...
2159
+ @property
2160
+ def renderers(self) -> list[MapRenderer]:
2161
+ """
2162
+ Get a copied list of MapRenderers currently in effect.
2163
+ """
2164
+ @property
2165
+ def scale(self) -> MapView.Scale:
2166
+ """
2167
+ Get or set the scale of this map.
2168
+ """
2169
+ @scale.setter
2170
+ def scale(self, arg1: MapView.Scale) -> None:
2171
+ ...
1745
2172
  class MessageForm:
1746
2173
  """
1747
2174
  Represents a form with two buttons.
1748
2175
  """
1749
- @staticmethod
1750
- def _pybind11_conduit_v1_(*args, **kwargs):
1751
- ...
1752
2176
  def __init__(self, title: str | Translatable = '', content: str | Translatable = '', button1: str | Translatable = '', button2: str | Translatable = '', on_submit: typing.Callable[[Player, int], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
1753
2177
  ...
1754
2178
  @property
@@ -1803,9 +2227,6 @@ class Mob(Actor):
1803
2227
  """
1804
2228
  Represents a mobile entity (i.e. living entity), such as a monster or player.
1805
2229
  """
1806
- @staticmethod
1807
- def _pybind11_conduit_v1_(*args, **kwargs):
1808
- ...
1809
2230
  @property
1810
2231
  def is_gliding(self) -> bool:
1811
2232
  """
@@ -1815,9 +2236,6 @@ class MobEvent(Event):
1815
2236
  """
1816
2237
  Represents an Mob-related event.
1817
2238
  """
1818
- @staticmethod
1819
- def _pybind11_conduit_v1_(*args, **kwargs):
1820
- ...
1821
2239
  @property
1822
2240
  def actor(self) -> Mob:
1823
2241
  """
@@ -1827,22 +2245,19 @@ class ModalForm:
1827
2245
  """
1828
2246
  Represents a modal form with controls.
1829
2247
  """
1830
- @staticmethod
1831
- def _pybind11_conduit_v1_(*args, **kwargs):
1832
- ...
1833
- def __init__(self, title: str | Translatable = '', controls: list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle] | None = None, submit_button: str | Translatable | None = None, icon: str | None = None, on_submit: typing.Callable[[Player, str], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
2248
+ def __init__(self, title: str | Translatable = '', controls: list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header] | None = None, submit_button: str | Translatable | None = None, icon: str | None = None, on_submit: typing.Callable[[Player, str], None] = None, on_close: typing.Callable[[Player], None] = None) -> None:
1834
2249
  ...
1835
- def add_control(self, control: Dropdown | Label | Slider | StepSlider | TextInput | Toggle) -> ModalForm:
2250
+ def add_control(self, control: Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header) -> ModalForm:
1836
2251
  """
1837
2252
  Adds a control to the form.
1838
2253
  """
1839
2254
  @property
1840
- def controls(self) -> list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle]:
2255
+ def controls(self) -> list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header]:
1841
2256
  """
1842
2257
  Gets or sets the controls of the modal form.
1843
2258
  """
1844
2259
  @controls.setter
1845
- def controls(self, arg1: list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle]) -> ModalForm:
2260
+ def controls(self, arg1: list[Dropdown | Label | Slider | StepSlider | TextInput | Toggle | Divider | Header]) -> ModalForm:
1846
2261
  ...
1847
2262
  @property
1848
2263
  def icon(self) -> str | None:
@@ -1884,14 +2299,36 @@ class ModalForm:
1884
2299
  @title.setter
1885
2300
  def title(self, arg1: str | Translatable) -> ModalForm:
1886
2301
  ...
2302
+ class NamespacedKey:
2303
+ """
2304
+ Represents a string-based key which consists of two components - a namespace and a key.
2305
+ """
2306
+ @staticmethod
2307
+ def from_string(input: str, plugin: Plugin = None) -> NamespacedKey:
2308
+ """
2309
+ Parses a NamespacedKey from a string.
2310
+ """
2311
+ def __init__(self, arg0: Plugin, arg1: str) -> None:
2312
+ ...
2313
+ def __repr__(self) -> str:
2314
+ ...
2315
+ def __str__(self) -> str:
2316
+ ...
2317
+ @property
2318
+ def key(self) -> str:
2319
+ """
2320
+ Returns the key of the NamespacedKey.
2321
+ """
2322
+ @property
2323
+ def namespace(self) -> str:
2324
+ """
2325
+ Returns the namespace of the NamespacedKey.
2326
+ """
1887
2327
  class Objective:
1888
2328
  """
1889
2329
  Represents an objective on a scoreboard that can show scores specific to entries.
1890
2330
  """
1891
2331
  __hash__: typing.ClassVar[None] = None
1892
- @staticmethod
1893
- def _pybind11_conduit_v1_(*args, **kwargs):
1894
- ...
1895
2332
  def __eq__(self, arg0: Objective) -> bool:
1896
2333
  ...
1897
2334
  def __ne__(self, arg0: Objective) -> bool:
@@ -1966,9 +2403,6 @@ class ObjectiveSortOrder:
1966
2403
  ASCENDING: typing.ClassVar[ObjectiveSortOrder] # value = <ObjectiveSortOrder.ASCENDING: 0>
1967
2404
  DESCENDING: typing.ClassVar[ObjectiveSortOrder] # value = <ObjectiveSortOrder.DESCENDING: 1>
1968
2405
  __members__: typing.ClassVar[dict[str, ObjectiveSortOrder]] # value = {'ASCENDING': <ObjectiveSortOrder.ASCENDING: 0>, 'DESCENDING': <ObjectiveSortOrder.DESCENDING: 1>}
1969
- @staticmethod
1970
- def _pybind11_conduit_v1_(*args, **kwargs):
1971
- ...
1972
2406
  def __eq__(self, other: typing.Any) -> bool:
1973
2407
  ...
1974
2408
  def __getstate__(self) -> int:
@@ -1999,9 +2433,6 @@ class OfflinePlayer:
1999
2433
  """
2000
2434
  Represents a reference to a player identity and the data belonging to a player that is stored on the disk and can, thus, be retrieved without the player needing to be online.
2001
2435
  """
2002
- @staticmethod
2003
- def _pybind11_conduit_v1_(*args, **kwargs):
2004
- ...
2005
2436
  @property
2006
2437
  def name(self) -> str:
2007
2438
  """
@@ -2012,60 +2443,76 @@ class OfflinePlayer:
2012
2443
  """
2013
2444
  Returns the UUID of this player
2014
2445
  """
2015
- class Packet:
2446
+ class PacketReceiveEvent(ServerEvent, Cancellable):
2016
2447
  """
2017
- Represents a packet.
2448
+ Called when the server receives a packet from a connected client.
2018
2449
  """
2019
- @staticmethod
2020
- def _pybind11_conduit_v1_(*args, **kwargs):
2450
+ @property
2451
+ def address(self) -> SocketAddress:
2452
+ """
2453
+ Gets the network address to which this packet is being sent.
2454
+ """
2455
+ @property
2456
+ def packet_id(self) -> int:
2457
+ """
2458
+ Gets the ID of the packet.
2459
+ """
2460
+ @property
2461
+ def payload(self) -> bytes:
2462
+ """
2463
+ Gets or sets the raw packet data **excluding** the header.
2464
+ """
2465
+ @payload.setter
2466
+ def payload(self, arg1: bytes) -> None:
2021
2467
  ...
2022
2468
  @property
2023
- def type(self) -> PacketType:
2469
+ def player(self) -> Player:
2024
2470
  """
2025
- Gets the type of the packet.
2471
+ Gets the player involved in this event
2472
+ NOTE: This may return None if the packet is sent before the player completes the login process.
2026
2473
  """
2027
- class PacketType:
2474
+ @property
2475
+ def sub_client_id(self) -> int:
2476
+ """
2477
+ Gets the SubClient ID (0 = primary client; 1-3 = split-screen clients).
2478
+ """
2479
+ class PacketSendEvent(ServerEvent, Cancellable):
2028
2480
  """
2029
- Represents the types of packets.
2481
+ Called when the server sends a packet to a connected client.
2030
2482
  """
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
- @staticmethod
2034
- def _pybind11_conduit_v1_(*args, **kwargs):
2035
- ...
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
2483
  @property
2057
- def name(self) -> str:
2058
- ...
2484
+ def address(self) -> SocketAddress:
2485
+ """
2486
+ Gets the network address to which this packet is being sent.
2487
+ """
2059
2488
  @property
2060
- def value(self) -> int:
2489
+ def packet_id(self) -> int:
2490
+ """
2491
+ Gets the ID of the packet.
2492
+ """
2493
+ @property
2494
+ def payload(self) -> bytes:
2495
+ """
2496
+ Gets or sets the raw packet data **excluding** the header.
2497
+ """
2498
+ @payload.setter
2499
+ def payload(self, arg1: bytes) -> None:
2061
2500
  ...
2501
+ @property
2502
+ def player(self) -> Player:
2503
+ """
2504
+ Gets the player involved in this event
2505
+ NOTE: This may return None if the packet is sent before the player completes the login process.
2506
+ """
2507
+ @property
2508
+ def sub_client_id(self) -> int:
2509
+ """
2510
+ Gets the SubClient ID (0 = primary client; 1-3 = split-screen clients).
2511
+ """
2062
2512
  class Permissible:
2063
2513
  """
2064
2514
  Represents an object that may become a server operator and can be assigned permissions.
2065
2515
  """
2066
- @staticmethod
2067
- def _pybind11_conduit_v1_(*args, **kwargs):
2068
- ...
2069
2516
  @typing.overload
2070
2517
  def add_attachment(self, plugin: Plugin, name: str, value: bool) -> PermissionAttachment:
2071
2518
  """
@@ -2121,9 +2568,6 @@ class Permission:
2121
2568
  """
2122
2569
  Represents a unique permission that may be attached to a Permissible
2123
2570
  """
2124
- @staticmethod
2125
- def _pybind11_conduit_v1_(*args, **kwargs):
2126
- ...
2127
2571
  def __init__(self, name: str, description: str | None = None, default: PermissionDefault | None = None, children: dict[str, bool] | None = None, *args, **kwargs) -> None:
2128
2572
  ...
2129
2573
  @typing.overload
@@ -2175,9 +2619,6 @@ class PermissionAttachment:
2175
2619
  """
2176
2620
  Holds information about a permission attachment on a Permissible object
2177
2621
  """
2178
- @staticmethod
2179
- def _pybind11_conduit_v1_(*args, **kwargs):
2180
- ...
2181
2622
  def __init__(self, plugin: Plugin, permissible: Permissible) -> None:
2182
2623
  ...
2183
2624
  def remove(self) -> bool:
@@ -2231,9 +2672,6 @@ class PermissionAttachmentInfo:
2231
2672
  """
2232
2673
  Holds information on a permission and which PermissionAttachment provides it
2233
2674
  """
2234
- @staticmethod
2235
- def _pybind11_conduit_v1_(*args, **kwargs):
2236
- ...
2237
2675
  def __init__(self, permissible: Permissible, permission: str, attachment: PermissionAttachment, value: bool) -> None:
2238
2676
  ...
2239
2677
  @property
@@ -2267,9 +2705,6 @@ class PermissionDefault:
2267
2705
  OPERATOR: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.OP: 2>
2268
2706
  TRUE: typing.ClassVar[PermissionDefault] # value = <PermissionDefault.TRUE: 0>
2269
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>}
2270
- @staticmethod
2271
- def _pybind11_conduit_v1_(*args, **kwargs):
2272
- ...
2273
2708
  def __eq__(self, other: typing.Any) -> bool:
2274
2709
  ...
2275
2710
  def __getstate__(self) -> int:
@@ -2300,9 +2735,6 @@ class Player(Mob, OfflinePlayer):
2300
2735
  """
2301
2736
  Represents a player.
2302
2737
  """
2303
- @staticmethod
2304
- def _pybind11_conduit_v1_(*args, **kwargs):
2305
- ...
2306
2738
  def close_form(self) -> None:
2307
2739
  """
2308
2740
  Closes the forms that are currently open for the player.
@@ -2323,7 +2755,7 @@ class Player(Mob, OfflinePlayer):
2323
2755
  """
2324
2756
  Makes the player perform the given command.
2325
2757
  """
2326
- def play_sound(self, location: Location, sound: str, volume: float, pitch: float) -> None:
2758
+ def play_sound(self, location: Location, sound: str, volume: float = 1.0, pitch: float = 1.0) -> None:
2327
2759
  """
2328
2760
  Play a sound for a player at the location.
2329
2761
  """
@@ -2335,7 +2767,7 @@ class Player(Mob, OfflinePlayer):
2335
2767
  """
2336
2768
  Sends a form to the player.
2337
2769
  """
2338
- def send_packet(self, packet: Packet) -> None:
2770
+ def send_packet(self, packet_id: int, payload: bytes) -> None:
2339
2771
  """
2340
2772
  Sends a packet to the player.
2341
2773
  """
@@ -2525,9 +2957,6 @@ class PlayerBanEntry(BanEntry):
2525
2957
  """
2526
2958
  Represents a ban entry for a player.
2527
2959
  """
2528
- @staticmethod
2529
- def _pybind11_conduit_v1_(*args, **kwargs):
2530
- ...
2531
2960
  def __init__(self, name: str, uuid: uuid.UUID | None = None, xuid: str | None = None) -> None:
2532
2961
  ...
2533
2962
  @property
@@ -2549,9 +2978,6 @@ class PlayerBanList:
2549
2978
  """
2550
2979
  Represents a ban list containing banned players.
2551
2980
  """
2552
- @staticmethod
2553
- def _pybind11_conduit_v1_(*args, **kwargs):
2554
- ...
2555
2981
  def add_ban(self, name: str, uuid: uuid.UUID | None = None, xuid: str | None = None, reason: str | None = None, expires: datetime.datetime | None = None, source: str | None = None) -> PlayerBanEntry:
2556
2982
  """
2557
2983
  Adds a ban to this list, or updates an existing one.
@@ -2577,9 +3003,6 @@ class PlayerChatEvent(PlayerEvent, Cancellable):
2577
3003
  """
2578
3004
  Called when a player sends a chat message.
2579
3005
  """
2580
- @staticmethod
2581
- def _pybind11_conduit_v1_(*args, **kwargs):
2582
- ...
2583
3006
  @property
2584
3007
  def message(self) -> str:
2585
3008
  """
@@ -2592,9 +3015,6 @@ class PlayerCommandEvent(PlayerEvent, Cancellable):
2592
3015
  """
2593
3016
  Called whenever a player runs a command.
2594
3017
  """
2595
- @staticmethod
2596
- def _pybind11_conduit_v1_(*args, **kwargs):
2597
- ...
2598
3018
  @property
2599
3019
  def command(self) -> str:
2600
3020
  """
@@ -2607,9 +3027,6 @@ class PlayerDeathEvent(ActorDeathEvent, PlayerEvent):
2607
3027
  """
2608
3028
  Called when a player dies
2609
3029
  """
2610
- @staticmethod
2611
- def _pybind11_conduit_v1_(*args, **kwargs):
2612
- ...
2613
3030
  @property
2614
3031
  def death_message(self) -> str:
2615
3032
  """
@@ -2618,13 +3035,19 @@ class PlayerDeathEvent(ActorDeathEvent, PlayerEvent):
2618
3035
  @death_message.setter
2619
3036
  def death_message(self, arg1: str) -> None:
2620
3037
  ...
3038
+ class PlayerDropItemEvent(PlayerEvent, Cancellable):
3039
+ """
3040
+ Called when a player drops an item from their inventory
3041
+ """
3042
+ @property
3043
+ def item(self) -> ItemStack:
3044
+ """
3045
+ Gets the ItemStack dropped by the player
3046
+ """
2621
3047
  class PlayerEmoteEvent(PlayerEvent):
2622
3048
  """
2623
3049
  Called when a player uses and emote
2624
3050
  """
2625
- @staticmethod
2626
- def _pybind11_conduit_v1_(*args, **kwargs):
2627
- ...
2628
3051
  @property
2629
3052
  def emote_id(self) -> str:
2630
3053
  """
@@ -2634,9 +3057,6 @@ class PlayerEvent(Event):
2634
3057
  """
2635
3058
  Represents a player related event
2636
3059
  """
2637
- @staticmethod
2638
- def _pybind11_conduit_v1_(*args, **kwargs):
2639
- ...
2640
3060
  @property
2641
3061
  def player(self) -> Player:
2642
3062
  """
@@ -2646,9 +3066,6 @@ class PlayerGameModeChangeEvent(PlayerEvent, Cancellable):
2646
3066
  """
2647
3067
  Called when the GameMode of the player is changed.
2648
3068
  """
2649
- @staticmethod
2650
- def _pybind11_conduit_v1_(*args, **kwargs):
2651
- ...
2652
3069
  @property
2653
3070
  def new_game_mode(self) -> GameMode:
2654
3071
  """
@@ -2658,9 +3075,6 @@ class PlayerInteractActorEvent(PlayerEvent, Cancellable):
2658
3075
  """
2659
3076
  Represents an event that is called when a player right-clicks an actor.
2660
3077
  """
2661
- @staticmethod
2662
- def _pybind11_conduit_v1_(*args, **kwargs):
2663
- ...
2664
3078
  @property
2665
3079
  def actor(self) -> Actor:
2666
3080
  """
@@ -2670,9 +3084,6 @@ class PlayerInteractEvent(PlayerEvent, Cancellable):
2670
3084
  """
2671
3085
  Represents an event that is called when a player right-clicks a block.
2672
3086
  """
2673
- @staticmethod
2674
- def _pybind11_conduit_v1_(*args, **kwargs):
2675
- ...
2676
3087
  @property
2677
3088
  def block(self) -> Block:
2678
3089
  """
@@ -2707,16 +3118,80 @@ class PlayerInventory(Inventory):
2707
3118
  """
2708
3119
  Interface to the inventory of a Player, including the four armor slots and any extra slots.
2709
3120
  """
2710
- @staticmethod
2711
- def _pybind11_conduit_v1_(*args, **kwargs):
3121
+ @property
3122
+ def boots(self) -> ItemStack:
3123
+ """
3124
+ Gets or sets the ItemStack in the boots slot
3125
+ """
3126
+ @boots.setter
3127
+ def boots(self, arg1: ItemStack) -> None:
3128
+ ...
3129
+ @property
3130
+ def chestplate(self) -> ItemStack:
3131
+ """
3132
+ Gets or sets the ItemStack in the chestplate slot
3133
+ """
3134
+ @chestplate.setter
3135
+ def chestplate(self, arg1: ItemStack) -> None:
3136
+ ...
3137
+ @property
3138
+ def held_item_slot(self) -> int:
3139
+ """
3140
+ Gets or sets the slot number of the currently held item
3141
+ """
3142
+ @held_item_slot.setter
3143
+ def held_item_slot(self, arg1: int) -> None:
3144
+ ...
3145
+ @property
3146
+ def helmet(self) -> ItemStack:
3147
+ """
3148
+ Gets or sets the ItemStack in the helmet slot
3149
+ """
3150
+ @helmet.setter
3151
+ def helmet(self, arg1: ItemStack) -> None:
3152
+ ...
3153
+ @property
3154
+ def item_in_main_hand(self) -> ItemStack:
3155
+ """
3156
+ Gets or sets the item the player is currently holding in their main hand.
3157
+ """
3158
+ @item_in_main_hand.setter
3159
+ def item_in_main_hand(self, arg1: ItemStack) -> None:
3160
+ ...
3161
+ @property
3162
+ def item_in_off_hand(self) -> ItemStack:
3163
+ """
3164
+ Gets or sets the item the player is currently holding in their off hand.
3165
+ """
3166
+ @item_in_off_hand.setter
3167
+ def item_in_off_hand(self, arg1: ItemStack) -> None:
3168
+ ...
3169
+ @property
3170
+ def leggings(self) -> ItemStack:
3171
+ """
3172
+ Gets or sets the ItemStack in the leg slot
3173
+ """
3174
+ @leggings.setter
3175
+ def leggings(self, arg1: ItemStack) -> None:
2712
3176
  ...
3177
+ class PlayerItemConsumeEvent(PlayerEvent, Cancellable):
3178
+ """
3179
+ Called when a player is finishing consuming an item (food, potion, milk bucket).
3180
+ """
3181
+ @property
3182
+ def hand(self) -> EquipmentSlot:
3183
+ """
3184
+ Get the hand used to consume the item.
3185
+ """
3186
+ @property
3187
+ def item(self) -> ItemStack:
3188
+ """
3189
+ Gets or sets the item that is being consumed.
3190
+ """
2713
3191
  class PlayerJoinEvent(PlayerEvent):
2714
3192
  """
2715
3193
  Called when a player joins a server
2716
3194
  """
2717
- @staticmethod
2718
- def _pybind11_conduit_v1_(*args, **kwargs):
2719
- ...
2720
3195
  @property
2721
3196
  def join_message(self) -> str:
2722
3197
  """
@@ -2725,13 +3200,14 @@ class PlayerJoinEvent(PlayerEvent):
2725
3200
  @join_message.setter
2726
3201
  def join_message(self, arg1: str) -> None:
2727
3202
  ...
3203
+ class PlayerJumpEvent(PlayerMoveEvent):
3204
+ """
3205
+ Called when a player jumps.
3206
+ """
2728
3207
  class PlayerKickEvent(PlayerEvent, Cancellable):
2729
3208
  """
2730
3209
  Called when a player gets kicked from the server
2731
3210
  """
2732
- @staticmethod
2733
- def _pybind11_conduit_v1_(*args, **kwargs):
2734
- ...
2735
3211
  @property
2736
3212
  def reason(self) -> str:
2737
3213
  """
@@ -2744,9 +3220,6 @@ class PlayerLoginEvent(PlayerEvent, Cancellable):
2744
3220
  """
2745
3221
  Called when a player attempts to login in.
2746
3222
  """
2747
- @staticmethod
2748
- def _pybind11_conduit_v1_(*args, **kwargs):
2749
- ...
2750
3223
  @property
2751
3224
  def kick_message(self) -> str:
2752
3225
  """
@@ -2755,13 +3228,39 @@ class PlayerLoginEvent(PlayerEvent, Cancellable):
2755
3228
  @kick_message.setter
2756
3229
  def kick_message(self, arg1: str) -> None:
2757
3230
  ...
3231
+ class PlayerMoveEvent(PlayerEvent, Cancellable):
3232
+ """
3233
+ Called when a player moves.
3234
+ """
3235
+ @property
3236
+ def from_location(self) -> Location:
3237
+ """
3238
+ Gets or sets the location that this player moved from.
3239
+ """
3240
+ @from_location.setter
3241
+ def from_location(self, arg1: Location) -> None:
3242
+ ...
3243
+ @property
3244
+ def to_location(self) -> Location:
3245
+ """
3246
+ Gets or sets the location that this player moved to.
3247
+ """
3248
+ @to_location.setter
3249
+ def to_location(self, arg1: Location) -> None:
3250
+ ...
3251
+ class PlayerPickupItemEvent(PlayerEvent, Cancellable):
3252
+ """
3253
+ Called when a player picks an item up from the ground.
3254
+ """
3255
+ @property
3256
+ def item(self) -> ItemStack:
3257
+ """
3258
+ Gets the Item picked up by the entity.
3259
+ """
2758
3260
  class PlayerQuitEvent(PlayerEvent):
2759
3261
  """
2760
3262
  Called when a player leaves a server.
2761
3263
  """
2762
- @staticmethod
2763
- def _pybind11_conduit_v1_(*args, **kwargs):
2764
- ...
2765
3264
  @property
2766
3265
  def quit_message(self) -> str:
2767
3266
  """
@@ -2774,39 +3273,14 @@ class PlayerRespawnEvent(PlayerEvent):
2774
3273
  """
2775
3274
  Called when a player respawns.
2776
3275
  """
2777
- @staticmethod
2778
- def _pybind11_conduit_v1_(*args, **kwargs):
2779
- ...
2780
- class PlayerTeleportEvent(PlayerEvent, Cancellable):
3276
+ class PlayerTeleportEvent(PlayerMoveEvent):
2781
3277
  """
2782
3278
  Called when a player is teleported from one location to another.
2783
3279
  """
2784
- @staticmethod
2785
- def _pybind11_conduit_v1_(*args, **kwargs):
2786
- ...
2787
- @property
2788
- def from_location(self) -> Location:
2789
- """
2790
- Gets or sets the location that this player moved from.
2791
- """
2792
- @from_location.setter
2793
- def from_location(self, arg1: Location) -> None:
2794
- ...
2795
- @property
2796
- def to_location(self) -> Location:
2797
- """
2798
- Gets or sets the location that this player moved to.
2799
- """
2800
- @to_location.setter
2801
- def to_location(self, arg1: Location) -> None:
2802
- ...
2803
3280
  class Plugin(CommandExecutor):
2804
3281
  """
2805
3282
  Represents a Plugin
2806
3283
  """
2807
- @staticmethod
2808
- def _pybind11_conduit_v1_(*args, **kwargs):
2809
- ...
2810
3284
  def __init__(self) -> None:
2811
3285
  ...
2812
3286
  def _get_description(self) -> PluginDescription:
@@ -2861,9 +3335,6 @@ class PluginCommand(Command):
2861
3335
  """
2862
3336
  Represents a Command belonging to a Plugin
2863
3337
  """
2864
- @staticmethod
2865
- def _pybind11_conduit_v1_(*args, **kwargs):
2866
- ...
2867
3338
  @property
2868
3339
  def executor(self) -> CommandExecutor:
2869
3340
  """
@@ -2881,9 +3352,6 @@ class PluginDescription:
2881
3352
  """
2882
3353
  Represents the basic information about a plugin that the plugin loader needs to know.
2883
3354
  """
2884
- @staticmethod
2885
- def _pybind11_conduit_v1_(*args, **kwargs):
2886
- ...
2887
3355
  def __init__(self, name: str, version: str, description: str | None = None, load: PluginLoadOrder | None = None, authors: list[str] | None = None, contributors: list[str] | None = None, website: str | None = None, prefix: str | None = None, provides: list[str] | None = None, depend: list[str] | None = None, soft_depend: list[str] | None = None, load_before: list[str] | None = None, default_permission: PermissionDefault | None = None, commands: list[Command] | None = None, permissions: list[Permission] | None = None, *args, **kwargs) -> None:
2888
3356
  ...
2889
3357
  @property
@@ -2975,9 +3443,6 @@ class PluginDisableEvent(ServerEvent):
2975
3443
  """
2976
3444
  Called when a plugin is disabled.
2977
3445
  """
2978
- @staticmethod
2979
- def _pybind11_conduit_v1_(*args, **kwargs):
2980
- ...
2981
3446
  @property
2982
3447
  def plugin(self) -> Plugin:
2983
3448
  ...
@@ -2985,9 +3450,6 @@ class PluginEnableEvent(ServerEvent):
2985
3450
  """
2986
3451
  Called when a plugin is enabled.
2987
3452
  """
2988
- @staticmethod
2989
- def _pybind11_conduit_v1_(*args, **kwargs):
2990
- ...
2991
3453
  @property
2992
3454
  def plugin(self) -> Plugin:
2993
3455
  ...
@@ -2998,9 +3460,6 @@ class PluginLoadOrder:
2998
3460
  POSTWORLD: typing.ClassVar[PluginLoadOrder] # value = <PluginLoadOrder.POSTWORLD: 1>
2999
3461
  STARTUP: typing.ClassVar[PluginLoadOrder] # value = <PluginLoadOrder.STARTUP: 0>
3000
3462
  __members__: typing.ClassVar[dict[str, PluginLoadOrder]] # value = {'STARTUP': <PluginLoadOrder.STARTUP: 0>, 'POSTWORLD': <PluginLoadOrder.POSTWORLD: 1>}
3001
- @staticmethod
3002
- def _pybind11_conduit_v1_(*args, **kwargs):
3003
- ...
3004
3463
  def __eq__(self, other: typing.Any) -> bool:
3005
3464
  ...
3006
3465
  def __getstate__(self) -> int:
@@ -3031,9 +3490,6 @@ class PluginLoader:
3031
3490
  """
3032
3491
  Represents a plugin loader, which handles direct access to specific types of plugins
3033
3492
  """
3034
- @staticmethod
3035
- def _pybind11_conduit_v1_(*args, **kwargs):
3036
- ...
3037
3493
  def __init__(self, server: Server) -> None:
3038
3494
  ...
3039
3495
  def disable_plugin(self, plugin: Plugin) -> None:
@@ -3066,9 +3522,6 @@ class PluginManager:
3066
3522
  """
3067
3523
  Represents a plugin manager that handles all plugins from the Server
3068
3524
  """
3069
- @staticmethod
3070
- def _pybind11_conduit_v1_(*args, **kwargs):
3071
- ...
3072
3525
  def call_event(self, event: Event) -> None:
3073
3526
  """
3074
3527
  Calls an event which will be passed to plugins.
@@ -3185,9 +3638,6 @@ class Position(Vector):
3185
3638
  """
3186
3639
  Represents a 3-dimensional position in a dimension within a level.
3187
3640
  """
3188
- @staticmethod
3189
- def _pybind11_conduit_v1_(*args, **kwargs):
3190
- ...
3191
3641
  def __init__(self, dimension: Dimension, x: float, y: float, z: float) -> None:
3192
3642
  ...
3193
3643
  def __repr__(self) -> str:
@@ -3221,9 +3671,6 @@ class ProxiedCommandSender(CommandSender):
3221
3671
  """
3222
3672
  Represents a proxied command sender.
3223
3673
  """
3224
- @staticmethod
3225
- def _pybind11_conduit_v1_(*args, **kwargs):
3226
- ...
3227
3674
  @property
3228
3675
  def callee(self) -> CommandSender:
3229
3676
  """
@@ -3240,9 +3687,6 @@ class RenderType:
3240
3687
  """
3241
3688
  INTEGER: typing.ClassVar[RenderType] # value = <RenderType.INTEGER: 0>
3242
3689
  __members__: typing.ClassVar[dict[str, RenderType]] # value = {'INTEGER': <RenderType.INTEGER: 0>}
3243
- @staticmethod
3244
- def _pybind11_conduit_v1_(*args, **kwargs):
3245
- ...
3246
3690
  def __eq__(self, other: typing.Any) -> bool:
3247
3691
  ...
3248
3692
  def __getstate__(self) -> int:
@@ -3273,9 +3717,6 @@ class Scheduler:
3273
3717
  """
3274
3718
  Represents a scheduler that executes various tasks
3275
3719
  """
3276
- @staticmethod
3277
- def _pybind11_conduit_v1_(*args, **kwargs):
3278
- ...
3279
3720
  def cancel_task(self, id: int) -> None:
3280
3721
  """
3281
3722
  Removes task from scheduler.
@@ -3304,9 +3745,6 @@ class Score:
3304
3745
  """
3305
3746
  Represents a score for an objective on a scoreboard.
3306
3747
  """
3307
- @staticmethod
3308
- def _pybind11_conduit_v1_(*args, **kwargs):
3309
- ...
3310
3748
  @property
3311
3749
  def entry(self) -> Player | Actor | str:
3312
3750
  """
@@ -3339,9 +3777,6 @@ class Scoreboard:
3339
3777
  """
3340
3778
  Represents a scoreboard
3341
3779
  """
3342
- @staticmethod
3343
- def _pybind11_conduit_v1_(*args, **kwargs):
3344
- ...
3345
3780
  def add_objective(self, name: str, criteria: Criteria.Type, display_name: str | None = None, render_type: RenderType = RenderType.INTEGER) -> Objective:
3346
3781
  """
3347
3782
  Registers an Objective on this Scoreboard with a name displayed to players
@@ -3386,9 +3821,6 @@ class ScriptMessageEvent(ServerEvent, Cancellable):
3386
3821
  """
3387
3822
  Called when a message is sent by `/scriptevent` command
3388
3823
  """
3389
- @staticmethod
3390
- def _pybind11_conduit_v1_(*args, **kwargs):
3391
- ...
3392
3824
  @property
3393
3825
  def message(self) -> str:
3394
3826
  """
@@ -3408,9 +3840,6 @@ class Server:
3408
3840
  """
3409
3841
  Represents a server implementation.
3410
3842
  """
3411
- @staticmethod
3412
- def _pybind11_conduit_v1_(*args, **kwargs):
3413
- ...
3414
3843
  def broadcast(self, message: str | Translatable, permission: str) -> None:
3415
3844
  """
3416
3845
  Broadcasts the specified message to every user with the given permission name.
@@ -3502,11 +3931,26 @@ class Server:
3502
3931
  Gets the current ticks per second (TPS).
3503
3932
  """
3504
3933
  @property
3934
+ def enchantment_registry(self) -> EnchantmentRegistry:
3935
+ """
3936
+ Returns the registry for all the enchantments.
3937
+ """
3938
+ @property
3505
3939
  def ip_ban_list(self) -> IpBanList:
3506
3940
  """
3507
3941
  Gets the IP ban list.
3508
3942
  """
3509
3943
  @property
3944
+ def item_factory(self) -> ItemFactory:
3945
+ """
3946
+ Gets the instance of the item factory (for ItemMeta).
3947
+ """
3948
+ @property
3949
+ def item_registry(self) -> ItemRegistry:
3950
+ """
3951
+ Returns the registry for all the item types.
3952
+ """
3953
+ @property
3510
3954
  def language(self) -> Language:
3511
3955
  """
3512
3956
  Gets the current language interface used by the server.
@@ -3555,6 +3999,16 @@ class Server:
3555
3999
  Gets the plugin manager for interfacing with plugins.
3556
4000
  """
3557
4001
  @property
4002
+ def port(self) -> int:
4003
+ """
4004
+ Get the game port that the server runs on.
4005
+ """
4006
+ @property
4007
+ def port_v6(self) -> int:
4008
+ """
4009
+ Get the game port (IPv6) that the server runs on.
4010
+ """
4011
+ @property
3558
4012
  def scheduler(self) -> Scheduler:
3559
4013
  """
3560
4014
  Gets the scheduler for managing scheduled events.
@@ -3565,6 +4019,11 @@ class Server:
3565
4019
  Gets the primary Scoreboard controlled by the server.
3566
4020
  """
3567
4021
  @property
4022
+ def service_manager(self) -> ServiceManager:
4023
+ """
4024
+ Gets the service manager.
4025
+ """
4026
+ @property
3568
4027
  def start_time(self) -> datetime.datetime:
3569
4028
  """
3570
4029
  Gets the start time of the server.
@@ -3578,9 +4037,6 @@ class ServerCommandEvent(ServerEvent, Cancellable):
3578
4037
  """
3579
4038
  Called when the console runs a command, early in the process.
3580
4039
  """
3581
- @staticmethod
3582
- def _pybind11_conduit_v1_(*args, **kwargs):
3583
- ...
3584
4040
  @property
3585
4041
  def command(self) -> str:
3586
4042
  """
@@ -3598,16 +4054,10 @@ class ServerEvent(Event):
3598
4054
  """
3599
4055
  Represents a server-related event
3600
4056
  """
3601
- @staticmethod
3602
- def _pybind11_conduit_v1_(*args, **kwargs):
3603
- ...
3604
4057
  class ServerListPingEvent(ServerEvent, Cancellable):
3605
4058
  """
3606
4059
  Called when a server ping is coming in.
3607
4060
  """
3608
- @staticmethod
3609
- def _pybind11_conduit_v1_(*args, **kwargs):
3610
- ...
3611
4061
  @property
3612
4062
  def game_mode(self) -> GameMode:
3613
4063
  """
@@ -3702,9 +4152,6 @@ class ServerLoadEvent(Event):
3702
4152
  class LoadType:
3703
4153
  STARTUP: typing.ClassVar[ServerLoadEvent.LoadType] # value = <LoadType.STARTUP: 0>
3704
4154
  __members__: typing.ClassVar[dict[str, ServerLoadEvent.LoadType]] # value = {'STARTUP': <LoadType.STARTUP: 0>}
3705
- @staticmethod
3706
- def _pybind11_conduit_v1_(*args, **kwargs):
3707
- ...
3708
4155
  def __eq__(self, other: typing.Any) -> bool:
3709
4156
  ...
3710
4157
  def __getstate__(self) -> int:
@@ -3732,48 +4179,105 @@ class ServerLoadEvent(Event):
3732
4179
  def value(self) -> int:
3733
4180
  ...
3734
4181
  STARTUP: typing.ClassVar[ServerLoadEvent.LoadType] # value = <LoadType.STARTUP: 0>
3735
- @staticmethod
3736
- def _pybind11_conduit_v1_(*args, **kwargs):
3737
- ...
3738
4182
  @property
3739
4183
  def type(self) -> ServerLoadEvent.LoadType:
3740
4184
  ...
3741
- class Skin:
4185
+ class Service:
3742
4186
  """
3743
- Represents a player skin.
4187
+ Represents a list of methods.
3744
4188
  """
3745
- @staticmethod
3746
- def _pybind11_conduit_v1_(*args, **kwargs):
4189
+ def __init__(self) -> None:
3747
4190
  ...
3748
- def __init__(self, skin_id: str, skin_data: numpy.ndarray[numpy.uint8], cape_id: str | None = None, cape_data: numpy.ndarray[numpy.uint8] | None = None) -> None:
4191
+ class ServiceManager:
4192
+ """
4193
+ Represent a service manager that manages services and service providers.
4194
+ """
4195
+ def load(self, name: str) -> Service:
3749
4196
  ...
3750
- @property
3751
- def cape_data(self) -> numpy.ndarray[numpy.uint8] | None:
4197
+ def register(self, name: str, provider: Service, plugin: Plugin, priority: ServicePriority) -> None:
4198
+ """
4199
+ Register a provider of a service.
4200
+ """
4201
+ @typing.overload
4202
+ def unregister(self, name: str, provider: Service) -> None:
4203
+ """
4204
+ Unregister a particular provider for a particular service.
4205
+ """
4206
+ @typing.overload
4207
+ def unregister(self, provider: Service) -> None:
4208
+ """
4209
+ Unregister a particular provider.
4210
+ """
4211
+ def unregister_all(self, plugin: Plugin) -> None:
3752
4212
  """
3753
- Get the Cape data.
4213
+ Unregister all the services registered by a particular plugin.
3754
4214
  """
4215
+ class ServicePriority:
4216
+ """
4217
+ Represents various priorities of a provider.
4218
+ """
4219
+ HIGH: typing.ClassVar[ServicePriority] # value = <ServicePriority.HIGH: 3>
4220
+ HIGHEST: typing.ClassVar[ServicePriority] # value = <ServicePriority.HIGHEST: 4>
4221
+ LOW: typing.ClassVar[ServicePriority] # value = <ServicePriority.LOW: 1>
4222
+ LOWEST: typing.ClassVar[ServicePriority] # value = <ServicePriority.LOWEST: 0>
4223
+ NORMAL: typing.ClassVar[ServicePriority] # value = <ServicePriority.NORMAL: 2>
4224
+ __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>}
4225
+ def __eq__(self, other: typing.Any) -> bool:
4226
+ ...
4227
+ def __getstate__(self) -> int:
4228
+ ...
4229
+ def __hash__(self) -> int:
4230
+ ...
4231
+ def __index__(self) -> int:
4232
+ ...
4233
+ def __init__(self, value: int) -> None:
4234
+ ...
4235
+ def __int__(self) -> int:
4236
+ ...
4237
+ def __ne__(self, other: typing.Any) -> bool:
4238
+ ...
4239
+ def __repr__(self) -> str:
4240
+ ...
4241
+ def __setstate__(self, state: int) -> None:
4242
+ ...
4243
+ def __str__(self) -> str:
4244
+ ...
4245
+ @property
4246
+ def name(self) -> str:
4247
+ ...
4248
+ @property
4249
+ def value(self) -> int:
4250
+ ...
4251
+ class Skin:
4252
+ """
4253
+ Represents a player skin.
4254
+ """
4255
+ def __init__(self, id: str, image: numpy.ndarray[numpy.uint8], cape_id: str | None = None, cape_image: numpy.ndarray[numpy.uint8] | None = None) -> None:
4256
+ ...
3755
4257
  @property
3756
4258
  def cape_id(self) -> str | None:
3757
4259
  """
3758
4260
  Get the Cape ID.
3759
4261
  """
3760
4262
  @property
3761
- def skin_data(self) -> numpy.ndarray[numpy.uint8]:
4263
+ def cape_image(self) -> numpy.ndarray[numpy.uint8]:
3762
4264
  """
3763
- Get the Skin data.
4265
+ Get the Cape image.
3764
4266
  """
3765
4267
  @property
3766
- def skin_id(self) -> str:
4268
+ def id(self) -> str:
3767
4269
  """
3768
4270
  Get the Skin ID.
3769
4271
  """
4272
+ @property
4273
+ def image(self) -> numpy.ndarray[numpy.uint8]:
4274
+ """
4275
+ Get the Skin image.
4276
+ """
3770
4277
  class Slider:
3771
4278
  """
3772
4279
  Represents a slider with a label.
3773
4280
  """
3774
- @staticmethod
3775
- def _pybind11_conduit_v1_(*args, **kwargs):
3776
- ...
3777
4281
  def __init__(self, label: str | Translatable = '', min: float = 0, max: float = 100, step: float = 20, default_value: float | None = None) -> None:
3778
4282
  ...
3779
4283
  @property
@@ -3820,9 +4324,6 @@ class SocketAddress:
3820
4324
  """
3821
4325
  Represents an IP Socket Address (hostname + port number).
3822
4326
  """
3823
- @staticmethod
3824
- def _pybind11_conduit_v1_(*args, **kwargs):
3825
- ...
3826
4327
  @typing.overload
3827
4328
  def __init__(self) -> None:
3828
4329
  ...
@@ -3843,27 +4344,10 @@ class SocketAddress:
3843
4344
  """
3844
4345
  Gets the port number.
3845
4346
  """
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
4347
  class StepSlider:
3861
4348
  """
3862
4349
  Represents a step slider with a set of predefined options.
3863
4350
  """
3864
- @staticmethod
3865
- def _pybind11_conduit_v1_(*args, **kwargs):
3866
- ...
3867
4351
  def __init__(self, label: str | Translatable = '', options: list[str] | None = None, default_index: int | None = None) -> None:
3868
4352
  ...
3869
4353
  def add_option(self, option: str) -> Dropdown:
@@ -3898,9 +4382,6 @@ class Task:
3898
4382
  """
3899
4383
  Represents a task being executed by the scheduler
3900
4384
  """
3901
- @staticmethod
3902
- def _pybind11_conduit_v1_(*args, **kwargs):
3903
- ...
3904
4385
  def cancel(self) -> None:
3905
4386
  """
3906
4387
  Attempts to cancel this task.
@@ -3929,9 +4410,6 @@ class TextInput:
3929
4410
  """
3930
4411
  Represents a text input field.
3931
4412
  """
3932
- @staticmethod
3933
- def _pybind11_conduit_v1_(*args, **kwargs):
3934
- ...
3935
4413
  def __init__(self, label: str | Translatable = '', placeholder: str | Translatable = '', default_value: str | None = None) -> None:
3936
4414
  ...
3937
4415
  @property
@@ -3962,9 +4440,6 @@ class ThunderChangeEvent(WeatherEvent, Cancellable):
3962
4440
  """
3963
4441
  Called when the thunder state in a world is changing.
3964
4442
  """
3965
- @staticmethod
3966
- def _pybind11_conduit_v1_(*args, **kwargs):
3967
- ...
3968
4443
  @property
3969
4444
  def to_thunder_state(self) -> bool:
3970
4445
  """
@@ -3974,9 +4449,6 @@ class Toggle:
3974
4449
  """
3975
4450
  Represents a toggle button with a label.
3976
4451
  """
3977
- @staticmethod
3978
- def _pybind11_conduit_v1_(*args, **kwargs):
3979
- ...
3980
4452
  def __init__(self, label: str | Translatable = '', default_value: bool = False) -> None:
3981
4453
  ...
3982
4454
  @property
@@ -3999,9 +4471,6 @@ class Translatable:
3999
4471
  """
4000
4472
  Represents an object with a text representation that can be translated by the Minecraft client.
4001
4473
  """
4002
- @staticmethod
4003
- def _pybind11_conduit_v1_(*args, **kwargs):
4004
- ...
4005
4474
  def __init__(self, text: str, params: list[str] | None = None) -> None:
4006
4475
  ...
4007
4476
  @property
@@ -4018,9 +4487,6 @@ class Vector:
4018
4487
  """
4019
4488
  Represents a 3-dimensional vector.
4020
4489
  """
4021
- @staticmethod
4022
- def _pybind11_conduit_v1_(*args, **kwargs):
4023
- ...
4024
4490
  @typing.overload
4025
4491
  def __add__(self, arg0: Vector) -> Vector:
4026
4492
  ...
@@ -4117,9 +4583,6 @@ class WeatherChangeEvent(WeatherEvent, Cancellable):
4117
4583
  """
4118
4584
  Called when the weather (rain) state in a world is changing.
4119
4585
  """
4120
- @staticmethod
4121
- def _pybind11_conduit_v1_(*args, **kwargs):
4122
- ...
4123
4586
  @property
4124
4587
  def to_weather_state(self) -> bool:
4125
4588
  """
@@ -4129,9 +4592,6 @@ class WeatherEvent(Event):
4129
4592
  """
4130
4593
  Represents a weather-related event
4131
4594
  """
4132
- @staticmethod
4133
- def _pybind11_conduit_v1_(*args, **kwargs):
4134
- ...
4135
4595
  @property
4136
4596
  def level(self) -> Level:
4137
4597
  """