Merge branch 'main' of github.com:alemidev/aiocraft
This commit is contained in:
commit
0216be7c4d
186 changed files with 429 additions and 398 deletions
|
@ -3,6 +3,62 @@ from enum import Enum
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
|
|
||||||
|
class ConnectionState(Enum):
|
||||||
|
NONE = -1
|
||||||
|
HANDSHAKING = 0
|
||||||
|
STATUS = 1
|
||||||
|
LOGIN = 2
|
||||||
|
PLAY = 3
|
||||||
|
|
||||||
|
class Dimension(Enum):
|
||||||
|
NETHER = -1
|
||||||
|
OVERWORLD = 0
|
||||||
|
END = 1
|
||||||
|
|
||||||
|
class Difficulty(Enum):
|
||||||
|
PEACEFUL = 0
|
||||||
|
EASY = 1
|
||||||
|
NORMAL = 2
|
||||||
|
HARD = 3
|
||||||
|
|
||||||
|
class Gamemode(Enum):
|
||||||
|
SURVIVAL = 0
|
||||||
|
CREATIVE = 1
|
||||||
|
ADVENTURE = 2
|
||||||
|
SPECTATOR = 3
|
||||||
|
|
||||||
|
class EnchantmentType(Enum):
|
||||||
|
protection = 0
|
||||||
|
fire_protection = 1
|
||||||
|
feather_falling = 2
|
||||||
|
blast_protection = 3
|
||||||
|
projectile_protection = 4
|
||||||
|
respiration = 5
|
||||||
|
aqua_affinity = 6
|
||||||
|
thorns = 7
|
||||||
|
depth_strider = 8
|
||||||
|
frost_walker = 9
|
||||||
|
binding_curse = 10
|
||||||
|
sharpness = 16
|
||||||
|
smite = 17
|
||||||
|
bane_of_arthropods = 18
|
||||||
|
knockback = 19
|
||||||
|
fire_aspect = 20
|
||||||
|
looting = 21
|
||||||
|
sweeping = 22
|
||||||
|
efficiency = 32
|
||||||
|
silk_touch = 33
|
||||||
|
unbreaking = 34
|
||||||
|
fortune = 35
|
||||||
|
power = 48
|
||||||
|
punch = 49
|
||||||
|
flame = 50
|
||||||
|
infinity = 51
|
||||||
|
luck_of_the_sea = 61
|
||||||
|
lure = 62
|
||||||
|
mending = 70
|
||||||
|
vanishing_curse = 71
|
||||||
|
|
||||||
@dataclass # TODO use the one from types
|
@dataclass # TODO use the one from types
|
||||||
class BlockPos:
|
class BlockPos:
|
||||||
x : float
|
x : float
|
||||||
|
@ -45,7 +101,7 @@ class Item:
|
||||||
nbt : dict
|
nbt : dict
|
||||||
damage : int # This got removed past 1.12.2
|
damage : int # This got removed past 1.12.2
|
||||||
|
|
||||||
def __init__(self, item:Item = None):
|
def __init__(self, item : 'Item' = None):
|
||||||
if item:
|
if item:
|
||||||
self.id = item.id
|
self.id = item.id
|
||||||
self.count = item.count
|
self.count = item.count
|
||||||
|
@ -60,58 +116,20 @@ class Item:
|
||||||
# TODO make a map of durability for each item and subtract damage?
|
# TODO make a map of durability for each item and subtract damage?
|
||||||
return self.damage
|
return self.damage
|
||||||
|
|
||||||
class Dimension(Enum):
|
class Enchantment:
|
||||||
NETHER = -1
|
eid : int
|
||||||
OVERWORLD = 0
|
type : EnchantmentType
|
||||||
END = 1
|
level : int
|
||||||
|
|
||||||
class Difficulty(Enum):
|
def __init__(self, type:EnchantmentType=None, eid:int=None, level:int=1):
|
||||||
PEACEFUL = 0
|
if not type and not eid:
|
||||||
EASY = 1
|
raise ValueError("No enchantment type or enchantment id provided")
|
||||||
NORMAL = 2
|
self.type = type or EnchantmentType(eid)
|
||||||
HARD = 3
|
self.eid = self.type.value
|
||||||
|
self.level = level
|
||||||
|
|
||||||
class Gamemode(Enum):
|
def repr(self) -> str:
|
||||||
SURVIVAL = 0
|
return f"<Enchantment({str(self)})>"
|
||||||
CREATIVE = 1
|
|
||||||
ADVENTURE = 2
|
|
||||||
SPECTATOR = 3
|
|
||||||
|
|
||||||
class Enchantments(Enum):
|
def __str__(self) -> str:
|
||||||
PROTECTION = 0
|
return f"{self.type.name}" + (f" {self.level}" if self.level > 1 else "")
|
||||||
FIRE_PROTECTION = 1
|
|
||||||
FEATHER_FALLING = 2
|
|
||||||
BLAST_PROTECTION = 3
|
|
||||||
PROJECTILE_PROTECTION = 4
|
|
||||||
RESPIRATION = 5
|
|
||||||
AQUA_AFFINITY = 6
|
|
||||||
THORNS = 7
|
|
||||||
DEPTH_STRIDER = 8
|
|
||||||
FROST_WALKER = 9
|
|
||||||
BINDING_CURSE = 10
|
|
||||||
SHARPNESS = 16
|
|
||||||
SMITE = 17
|
|
||||||
BANE_OF_ARTHROPODS = 18
|
|
||||||
KNOCKBACK = 19
|
|
||||||
FIRE_ASPECT = 20
|
|
||||||
LOOTING = 21
|
|
||||||
SWEEPING = 22
|
|
||||||
EFFICIENCY = 32
|
|
||||||
SILK_TOUCH = 33
|
|
||||||
UNBREAKING = 34
|
|
||||||
FORTUNE = 35
|
|
||||||
POWER = 48
|
|
||||||
PUNCH = 49
|
|
||||||
FLAME = 50
|
|
||||||
INFINITY = 51
|
|
||||||
LUCK_OF_THE_SEA = 61
|
|
||||||
LURE = 62
|
|
||||||
MENDING = 70
|
|
||||||
VANISHING_CURSE = 71
|
|
||||||
|
|
||||||
class ConnectionState(Enum):
|
|
||||||
NONE = -1
|
|
||||||
HANDSHAKING = 0
|
|
||||||
STATUS = 1
|
|
||||||
LOGIN = 2
|
|
||||||
PLAY = 3
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
@ -8,21 +8,21 @@ class PacketBossBar(Packet):
|
||||||
__slots__ = ( 'id', 'action', 'color', 'dividers', 'entityUUID', 'flags', 'health', 'title' )
|
__slots__ = ( 'id', 'action', 'color', 'dividers', 'entityUUID', 'flags', 'health', 'title' )
|
||||||
|
|
||||||
action : int
|
action : int
|
||||||
color : bytes
|
color : Union[None, int]
|
||||||
dividers : bytes
|
dividers : Union[None, int]
|
||||||
entityUUID : str
|
entityUUID : str
|
||||||
flags : bytes
|
flags : Union[None, int]
|
||||||
health : bytes
|
health : Union[float, None]
|
||||||
title : bytes
|
title : Union[str, None]
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
action:int=None,
|
action:int=None,
|
||||||
color:bytes=None,
|
color:Union[None, int]=None,
|
||||||
dividers:bytes=None,
|
dividers:Union[None, int]=None,
|
||||||
entityUUID:str=None,
|
entityUUID:str=None,
|
||||||
flags:bytes=None,
|
flags:Union[None, int]=None,
|
||||||
health:bytes=None,
|
health:Union[float, None]=None,
|
||||||
title:bytes=None
|
title:Union[str, None]=None
|
||||||
):
|
):
|
||||||
super().__init__(proto,
|
super().__init__(proto,
|
||||||
action=action,
|
action=action,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
class PacketCombatEvent(Packet):
|
class PacketCombatEvent(Packet):
|
||||||
__slots__ = ( 'id', 'duration', 'entityId', 'event', 'message', 'playerId' )
|
__slots__ = ( 'id', 'duration', 'entityId', 'event', 'message', 'playerId' )
|
||||||
|
|
||||||
duration : bytes
|
duration : Union[None, int]
|
||||||
entityId : bytes
|
entityId : Union[None, int]
|
||||||
event : int
|
event : int
|
||||||
message : bytes
|
message : Union[str, None]
|
||||||
playerId : bytes
|
playerId : Union[None, int]
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
duration:bytes=None,
|
duration:Union[None, int]=None,
|
||||||
entityId:bytes=None,
|
entityId:Union[None, int]=None,
|
||||||
event:int=None,
|
event:int=None,
|
||||||
message:bytes=None,
|
message:Union[str, None]=None,
|
||||||
playerId:bytes=None
|
playerId:Union[None, int]=None
|
||||||
):
|
):
|
||||||
super().__init__(proto,
|
super().__init__(proto,
|
||||||
duration=duration,
|
duration=duration,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
class PacketCraftRecipeResponse(Packet):
|
class PacketCraftRecipeResponse(Packet):
|
||||||
__slots__ = ( 'id', 'recipe', 'windowId' )
|
__slots__ = ( 'id', 'recipe', 'windowId' )
|
||||||
|
|
||||||
recipe : Union[int,str]
|
recipe : Union[str,int]
|
||||||
windowId : int
|
windowId : int
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
recipe:Union[int,str]=None,
|
recipe:Union[str,int]=None,
|
||||||
windowId:int=None
|
windowId:int=None
|
||||||
):
|
):
|
||||||
super().__init__(proto,
|
super().__init__(proto,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
@ -11,14 +11,14 @@ class PacketEntityEffect(Packet):
|
||||||
duration : int
|
duration : int
|
||||||
effectId : int
|
effectId : int
|
||||||
entityId : int
|
entityId : int
|
||||||
hideParticles : Union[int,bool]
|
hideParticles : Union[bool,int]
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
amplifier:int=None,
|
amplifier:int=None,
|
||||||
duration:int=None,
|
duration:int=None,
|
||||||
effectId:int=None,
|
effectId:int=None,
|
||||||
entityId:int=None,
|
entityId:int=None,
|
||||||
hideParticles:Union[int,bool]=None
|
hideParticles:Union[bool,int]=None
|
||||||
):
|
):
|
||||||
super().__init__(proto,
|
super().__init__(proto,
|
||||||
amplifier=amplifier,
|
amplifier=amplifier,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
class PacketFacePlayer(Packet):
|
class PacketFacePlayer(Packet):
|
||||||
__slots__ = ( 'id', 'entityId', 'entity_feet_eyes', 'feet_eyes', 'isEntity', 'x', 'y', 'z' )
|
__slots__ = ( 'id', 'entityId', 'entity_feet_eyes', 'feet_eyes', 'isEntity', 'x', 'y', 'z' )
|
||||||
|
|
||||||
entityId : bytes
|
entityId : Union[None, int]
|
||||||
entity_feet_eyes : bytes
|
entity_feet_eyes : Union[str, None]
|
||||||
feet_eyes : int
|
feet_eyes : int
|
||||||
isEntity : bool
|
isEntity : bool
|
||||||
x : float
|
x : float
|
||||||
|
@ -16,8 +16,8 @@ class PacketFacePlayer(Packet):
|
||||||
z : float
|
z : float
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
entityId:bytes=None,
|
entityId:Union[None, int]=None,
|
||||||
entity_feet_eyes:bytes=None,
|
entity_feet_eyes:Union[str, None]=None,
|
||||||
feet_eyes:int=None,
|
feet_eyes:int=None,
|
||||||
isEntity:bool=None,
|
isEntity:bool=None,
|
||||||
x:float=None,
|
x:float=None,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ class PacketLogin(Packet):
|
||||||
__slots__ = ( 'id', 'difficulty', 'dimension', 'dimensionCodec', 'enableRespawnScreen', 'entityId', 'gameMode', 'hashedSeed', 'isDebug', 'isFlat', 'isHardcore', 'levelType', 'maxPlayers', 'previousGameMode', 'reducedDebugInfo', 'simulationDistance', 'viewDistance', 'worldName', 'worldNames' )
|
__slots__ = ( 'id', 'difficulty', 'dimension', 'dimensionCodec', 'enableRespawnScreen', 'entityId', 'gameMode', 'hashedSeed', 'isDebug', 'isFlat', 'isHardcore', 'levelType', 'maxPlayers', 'previousGameMode', 'reducedDebugInfo', 'simulationDistance', 'viewDistance', 'worldName', 'worldNames' )
|
||||||
|
|
||||||
difficulty : int
|
difficulty : int
|
||||||
dimension : Union[int,bytes,str]
|
dimension : Union[dict,str,int]
|
||||||
dimensionCodec : bytes
|
dimensionCodec : dict
|
||||||
enableRespawnScreen : bool
|
enableRespawnScreen : bool
|
||||||
entityId : int
|
entityId : int
|
||||||
gameMode : int
|
gameMode : int
|
||||||
|
@ -28,8 +28,8 @@ class PacketLogin(Packet):
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
difficulty:int=None,
|
difficulty:int=None,
|
||||||
dimension:Union[int,bytes,str]=None,
|
dimension:Union[dict,str,int]=None,
|
||||||
dimensionCodec:bytes=None,
|
dimensionCodec:dict=None,
|
||||||
enableRespawnScreen:bool=None,
|
enableRespawnScreen:bool=None,
|
||||||
entityId:int=None,
|
entityId:int=None,
|
||||||
gameMode:int=None,
|
gameMode:int=None,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
@ -8,27 +8,27 @@ class PacketMap(Packet):
|
||||||
__slots__ = ( 'id', 'columns', 'data', 'icons', 'itemDamage', 'locked', 'rows', 'scale', 'trackingPosition', 'x', 'y' )
|
__slots__ = ( 'id', 'columns', 'data', 'icons', 'itemDamage', 'locked', 'rows', 'scale', 'trackingPosition', 'x', 'y' )
|
||||||
|
|
||||||
columns : int
|
columns : int
|
||||||
data : bytes
|
data : Union[None, bytes]
|
||||||
icons : Union[tuple,list]
|
icons : Union[tuple,list]
|
||||||
itemDamage : int
|
itemDamage : int
|
||||||
locked : bool
|
locked : bool
|
||||||
rows : bytes
|
rows : Union[None, int]
|
||||||
scale : int
|
scale : int
|
||||||
trackingPosition : bool
|
trackingPosition : bool
|
||||||
x : bytes
|
x : Union[None, int]
|
||||||
y : bytes
|
y : Union[None, int]
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
columns:int=None,
|
columns:int=None,
|
||||||
data:bytes=None,
|
data:Union[None, bytes]=None,
|
||||||
icons:Union[tuple,list]=None,
|
icons:Union[tuple,list]=None,
|
||||||
itemDamage:int=None,
|
itemDamage:int=None,
|
||||||
locked:bool=None,
|
locked:bool=None,
|
||||||
rows:bytes=None,
|
rows:Union[None, int]=None,
|
||||||
scale:int=None,
|
scale:int=None,
|
||||||
trackingPosition:bool=None,
|
trackingPosition:bool=None,
|
||||||
x:bytes=None,
|
x:Union[None, int]=None,
|
||||||
y:bytes=None
|
y:Union[None, int]=None
|
||||||
):
|
):
|
||||||
super().__init__(proto,
|
super().__init__(proto,
|
||||||
columns=columns,
|
columns=columns,
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
class PacketMapChunk(Packet):
|
class PacketMapChunk(Packet):
|
||||||
__slots__ = ( 'id', 'biomes', 'bitMap', 'blockEntities', 'blockLight', 'blockLightMask', 'chunkData', 'emptyBlockLightMask', 'emptySkyLightMask', 'groundUp', 'heightmaps', 'ignoreOldData', 'skyLight', 'skyLightMask', 'trustEdges', 'x', 'z' )
|
__slots__ = ( 'id', 'biomes', 'bitMap', 'blockEntities', 'blockLight', 'blockLightMask', 'chunkData', 'emptyBlockLightMask', 'emptySkyLightMask', 'groundUp', 'heightmaps', 'ignoreOldData', 'skyLight', 'skyLightMask', 'trustEdges', 'x', 'z' )
|
||||||
|
|
||||||
biomes : Union[bytes,list]
|
biomes : Union[Union[None, list],list]
|
||||||
bitMap : Union[int,list]
|
bitMap : Union[int,list]
|
||||||
blockEntities : list
|
blockEntities : list
|
||||||
blockLight : list
|
blockLight : list
|
||||||
|
@ -16,7 +16,7 @@ class PacketMapChunk(Packet):
|
||||||
emptyBlockLightMask : list
|
emptyBlockLightMask : list
|
||||||
emptySkyLightMask : list
|
emptySkyLightMask : list
|
||||||
groundUp : bool
|
groundUp : bool
|
||||||
heightmaps : bytes
|
heightmaps : dict
|
||||||
ignoreOldData : bool
|
ignoreOldData : bool
|
||||||
skyLight : list
|
skyLight : list
|
||||||
skyLightMask : list
|
skyLightMask : list
|
||||||
|
@ -25,7 +25,7 @@ class PacketMapChunk(Packet):
|
||||||
z : int
|
z : int
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
biomes:Union[bytes,list]=None,
|
biomes:Union[Union[None, list],list]=None,
|
||||||
bitMap:Union[int,list]=None,
|
bitMap:Union[int,list]=None,
|
||||||
blockEntities:list=None,
|
blockEntities:list=None,
|
||||||
blockLight:list=None,
|
blockLight:list=None,
|
||||||
|
@ -34,7 +34,7 @@ class PacketMapChunk(Packet):
|
||||||
emptyBlockLightMask:list=None,
|
emptyBlockLightMask:list=None,
|
||||||
emptySkyLightMask:list=None,
|
emptySkyLightMask:list=None,
|
||||||
groundUp:bool=None,
|
groundUp:bool=None,
|
||||||
heightmaps:bytes=None,
|
heightmaps:dict=None,
|
||||||
ignoreOldData:bool=None,
|
ignoreOldData:bool=None,
|
||||||
skyLight:list=None,
|
skyLight:list=None,
|
||||||
skyLightMask:list=None,
|
skyLightMask:list=None,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
class PacketNbtQueryResponse(Packet):
|
class PacketNbtQueryResponse(Packet):
|
||||||
__slots__ = ( 'id', 'nbt', 'transactionId' )
|
__slots__ = ( 'id', 'nbt', 'transactionId' )
|
||||||
|
|
||||||
nbt : bytes
|
nbt : Optional[dict]
|
||||||
transactionId : int
|
transactionId : int
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
nbt:bytes=None,
|
nbt:Optional[dict]=None,
|
||||||
transactionId:int=None
|
transactionId:int=None
|
||||||
):
|
):
|
||||||
super().__init__(proto,
|
super().__init__(proto,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
class PacketOpenWindow(Packet):
|
class PacketOpenWindow(Packet):
|
||||||
__slots__ = ( 'id', 'entityId', 'inventoryType', 'slotCount', 'windowId', 'windowTitle' )
|
__slots__ = ( 'id', 'entityId', 'inventoryType', 'slotCount', 'windowId', 'windowTitle' )
|
||||||
|
|
||||||
entityId : bytes
|
entityId : Union[None, int]
|
||||||
inventoryType : Union[int,str]
|
inventoryType : Union[str,int]
|
||||||
slotCount : int
|
slotCount : int
|
||||||
windowId : int
|
windowId : int
|
||||||
windowTitle : str
|
windowTitle : str
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
entityId:bytes=None,
|
entityId:Union[None, int]=None,
|
||||||
inventoryType:Union[int,str]=None,
|
inventoryType:Union[str,int]=None,
|
||||||
slotCount:int=None,
|
slotCount:int=None,
|
||||||
windowId:int=None,
|
windowId:int=None,
|
||||||
windowTitle:str=None
|
windowTitle:str=None
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ class PacketRespawn(Packet):
|
||||||
|
|
||||||
copyMetadata : bool
|
copyMetadata : bool
|
||||||
difficulty : int
|
difficulty : int
|
||||||
dimension : Union[int,bytes,str]
|
dimension : Union[dict,str,int]
|
||||||
gamemode : int
|
gamemode : int
|
||||||
hashedSeed : int
|
hashedSeed : int
|
||||||
isDebug : bool
|
isDebug : bool
|
||||||
|
@ -21,7 +21,7 @@ class PacketRespawn(Packet):
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
copyMetadata:bool=None,
|
copyMetadata:bool=None,
|
||||||
difficulty:int=None,
|
difficulty:int=None,
|
||||||
dimension:Union[int,bytes,str]=None,
|
dimension:Union[dict,str,int]=None,
|
||||||
gamemode:int=None,
|
gamemode:int=None,
|
||||||
hashedSeed:int=None,
|
hashedSeed:int=None,
|
||||||
isDebug:bool=None,
|
isDebug:bool=None,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
@ -8,15 +8,15 @@ class PacketScoreboardObjective(Packet):
|
||||||
__slots__ = ( 'id', 'action', 'displayText', 'name', 'type' )
|
__slots__ = ( 'id', 'action', 'displayText', 'name', 'type' )
|
||||||
|
|
||||||
action : int
|
action : int
|
||||||
displayText : bytes
|
displayText : Union[str, None]
|
||||||
name : str
|
name : str
|
||||||
type : bytes
|
type : Union[Union[str, None],Union[None, int]]
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
action:int=None,
|
action:int=None,
|
||||||
displayText:bytes=None,
|
displayText:Union[str, None]=None,
|
||||||
name:str=None,
|
name:str=None,
|
||||||
type:bytes=None
|
type:Union[Union[str, None],Union[None, int]]=None
|
||||||
):
|
):
|
||||||
super().__init__(proto,
|
super().__init__(proto,
|
||||||
action=action,
|
action=action,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
@ -10,13 +10,13 @@ class PacketScoreboardScore(Packet):
|
||||||
action : int
|
action : int
|
||||||
itemName : str
|
itemName : str
|
||||||
scoreName : str
|
scoreName : str
|
||||||
value : bytes
|
value : Union[None, int]
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
action:int=None,
|
action:int=None,
|
||||||
itemName:str=None,
|
itemName:str=None,
|
||||||
scoreName:str=None,
|
scoreName:str=None,
|
||||||
value:bytes=None
|
value:Union[None, int]=None
|
||||||
):
|
):
|
||||||
super().__init__(proto,
|
super().__init__(proto,
|
||||||
action=action,
|
action=action,
|
||||||
|
|
|
@ -1,33 +1,33 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
class PacketScoreboardTeam(Packet):
|
class PacketScoreboardTeam(Packet):
|
||||||
__slots__ = ( 'id', 'collisionRule', 'color', 'friendlyFire', 'mode', 'name', 'nameTagVisibility', 'players', 'prefix', 'suffix', 'team' )
|
__slots__ = ( 'id', 'collisionRule', 'color', 'friendlyFire', 'mode', 'name', 'nameTagVisibility', 'players', 'prefix', 'suffix', 'team' )
|
||||||
|
|
||||||
collisionRule : bytes
|
collisionRule : Union[str, None]
|
||||||
color : bytes
|
color : Union[None, int]
|
||||||
friendlyFire : bytes
|
friendlyFire : Union[None, int]
|
||||||
mode : int
|
mode : int
|
||||||
name : bytes
|
name : Union[str, None]
|
||||||
nameTagVisibility : bytes
|
nameTagVisibility : Union[str, None]
|
||||||
players : bytes
|
players : Union[None, list]
|
||||||
prefix : bytes
|
prefix : Union[str, None]
|
||||||
suffix : bytes
|
suffix : Union[str, None]
|
||||||
team : str
|
team : str
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
collisionRule:bytes=None,
|
collisionRule:Union[str, None]=None,
|
||||||
color:bytes=None,
|
color:Union[None, int]=None,
|
||||||
friendlyFire:bytes=None,
|
friendlyFire:Union[None, int]=None,
|
||||||
mode:int=None,
|
mode:int=None,
|
||||||
name:bytes=None,
|
name:Union[str, None]=None,
|
||||||
nameTagVisibility:bytes=None,
|
nameTagVisibility:Union[str, None]=None,
|
||||||
players:bytes=None,
|
players:Union[None, list]=None,
|
||||||
prefix:bytes=None,
|
prefix:Union[str, None]=None,
|
||||||
suffix:bytes=None,
|
suffix:Union[str, None]=None,
|
||||||
team:str=None
|
team:str=None
|
||||||
):
|
):
|
||||||
super().__init__(proto,
|
super().__init__(proto,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
@ -8,13 +8,13 @@ class PacketSculkVibrationSignal(Packet):
|
||||||
__slots__ = ( 'id', 'arrivalTicks', 'destination', 'destinationIdentifier', 'sourcePosition' )
|
__slots__ = ( 'id', 'arrivalTicks', 'destination', 'destinationIdentifier', 'sourcePosition' )
|
||||||
|
|
||||||
arrivalTicks : int
|
arrivalTicks : int
|
||||||
destination : bytes
|
destination : Union[None, int, tuple]
|
||||||
destinationIdentifier : str
|
destinationIdentifier : str
|
||||||
sourcePosition : tuple
|
sourcePosition : tuple
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
arrivalTicks:int=None,
|
arrivalTicks:int=None,
|
||||||
destination:bytes=None,
|
destination:Union[None, int, tuple]=None,
|
||||||
destinationIdentifier:str=None,
|
destinationIdentifier:str=None,
|
||||||
sourcePosition:tuple=None
|
sourcePosition:tuple=None
|
||||||
):
|
):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ class PacketSpawnEntity(Packet):
|
||||||
|
|
||||||
entityId : int
|
entityId : int
|
||||||
entityUUID : str
|
entityUUID : str
|
||||||
objectData : Union[int,dict]
|
objectData : Union[dict,int]
|
||||||
objectUUID : str
|
objectUUID : str
|
||||||
pitch : int
|
pitch : int
|
||||||
type : int
|
type : int
|
||||||
|
@ -24,7 +24,7 @@ class PacketSpawnEntity(Packet):
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
entityId:int=None,
|
entityId:int=None,
|
||||||
entityUUID:str=None,
|
entityUUID:str=None,
|
||||||
objectData:Union[int,dict]=None,
|
objectData:Union[dict,int]=None,
|
||||||
objectUUID:str=None,
|
objectUUID:str=None,
|
||||||
pitch:int=None,
|
pitch:int=None,
|
||||||
type:int=None,
|
type:int=None,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
@ -11,14 +11,14 @@ class PacketSpawnEntityPainting(Packet):
|
||||||
entityId : int
|
entityId : int
|
||||||
entityUUID : str
|
entityUUID : str
|
||||||
location : tuple
|
location : tuple
|
||||||
title : Union[int,str]
|
title : Union[str,int]
|
||||||
|
|
||||||
def __init__(self, proto:int,
|
def __init__(self, proto:int,
|
||||||
direction:int=None,
|
direction:int=None,
|
||||||
entityId:int=None,
|
entityId:int=None,
|
||||||
entityUUID:str=None,
|
entityUUID:str=None,
|
||||||
location:tuple=None,
|
location:tuple=None,
|
||||||
title:Union[int,str]=None
|
title:Union[str,int]=None
|
||||||
):
|
):
|
||||||
super().__init__(proto,
|
super().__init__(proto,
|
||||||
direction=direction,
|
direction=direction,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""[!] This file is autogenerated"""
|
"""[!] This file is autogenerated"""
|
||||||
|
|
||||||
from typing import Tuple, List, Dict, Union
|
from typing import Tuple, List, Dict, Union, Optional
|
||||||
from ....packet import Packet
|
from ....packet import Packet
|
||||||
from ....types import *
|
from ....types import *
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue