updated type hints
This commit is contained in:
parent
1d519c022f
commit
942441554f
185 changed files with 358 additions and 345 deletions
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
@ -8,21 +8,21 @@ class PacketBossBar(Packet):
|
|||
__slots__ = ( 'id', 'action', 'color', 'dividers', 'entityUUID', 'flags', 'health', 'title' )
|
||||
|
||||
action : int
|
||||
color : bytes
|
||||
dividers : bytes
|
||||
color : Union[None, int]
|
||||
dividers : Union[None, int]
|
||||
entityUUID : str
|
||||
flags : bytes
|
||||
health : bytes
|
||||
title : bytes
|
||||
flags : Union[None, int]
|
||||
health : Union[float, None]
|
||||
title : Union[str, None]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
action:int=None,
|
||||
color:bytes=None,
|
||||
dividers:bytes=None,
|
||||
color:Union[None, int]=None,
|
||||
dividers:Union[None, int]=None,
|
||||
entityUUID:str=None,
|
||||
flags:bytes=None,
|
||||
health:bytes=None,
|
||||
title:bytes=None
|
||||
flags:Union[None, int]=None,
|
||||
health:Union[float, None]=None,
|
||||
title:Union[str, None]=None
|
||||
):
|
||||
super().__init__(proto,
|
||||
action=action,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
class PacketCombatEvent(Packet):
|
||||
__slots__ = ( 'id', 'duration', 'entityId', 'event', 'message', 'playerId' )
|
||||
|
||||
duration : bytes
|
||||
entityId : bytes
|
||||
duration : Union[None, int]
|
||||
entityId : Union[None, int]
|
||||
event : int
|
||||
message : bytes
|
||||
playerId : bytes
|
||||
message : Union[str, None]
|
||||
playerId : Union[None, int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
duration:bytes=None,
|
||||
entityId:bytes=None,
|
||||
duration:Union[None, int]=None,
|
||||
entityId:Union[None, int]=None,
|
||||
event:int=None,
|
||||
message:bytes=None,
|
||||
playerId:bytes=None
|
||||
message:Union[str, None]=None,
|
||||
playerId:Union[None, int]=None
|
||||
):
|
||||
super().__init__(proto,
|
||||
duration=duration,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
class PacketCraftRecipeResponse(Packet):
|
||||
__slots__ = ( 'id', 'recipe', 'windowId' )
|
||||
|
||||
recipe : Union[int,str]
|
||||
recipe : Union[str,int]
|
||||
windowId : int
|
||||
|
||||
def __init__(self, proto:int,
|
||||
recipe:Union[int,str]=None,
|
||||
recipe:Union[str,int]=None,
|
||||
windowId:int=None
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
@ -11,14 +11,14 @@ class PacketEntityEffect(Packet):
|
|||
duration : int
|
||||
effectId : int
|
||||
entityId : int
|
||||
hideParticles : Union[int,bool]
|
||||
hideParticles : Union[bool,int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
amplifier:int=None,
|
||||
duration:int=None,
|
||||
effectId:int=None,
|
||||
entityId:int=None,
|
||||
hideParticles:Union[int,bool]=None
|
||||
hideParticles:Union[bool,int]=None
|
||||
):
|
||||
super().__init__(proto,
|
||||
amplifier=amplifier,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
class PacketFacePlayer(Packet):
|
||||
__slots__ = ( 'id', 'entityId', 'entity_feet_eyes', 'feet_eyes', 'isEntity', 'x', 'y', 'z' )
|
||||
|
||||
entityId : bytes
|
||||
entity_feet_eyes : bytes
|
||||
entityId : Union[None, int]
|
||||
entity_feet_eyes : Union[str, None]
|
||||
feet_eyes : int
|
||||
isEntity : bool
|
||||
x : float
|
||||
|
@ -16,8 +16,8 @@ class PacketFacePlayer(Packet):
|
|||
z : float
|
||||
|
||||
def __init__(self, proto:int,
|
||||
entityId:bytes=None,
|
||||
entity_feet_eyes:bytes=None,
|
||||
entityId:Union[None, int]=None,
|
||||
entity_feet_eyes:Union[str, None]=None,
|
||||
feet_eyes:int=None,
|
||||
isEntity:bool=None,
|
||||
x:float=None,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
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' )
|
||||
|
||||
difficulty : int
|
||||
dimension : Union[int,bytes,str]
|
||||
dimensionCodec : bytes
|
||||
dimension : Union[dict,str,int]
|
||||
dimensionCodec : dict
|
||||
enableRespawnScreen : bool
|
||||
entityId : int
|
||||
gameMode : int
|
||||
|
@ -28,8 +28,8 @@ class PacketLogin(Packet):
|
|||
|
||||
def __init__(self, proto:int,
|
||||
difficulty:int=None,
|
||||
dimension:Union[int,bytes,str]=None,
|
||||
dimensionCodec:bytes=None,
|
||||
dimension:Union[dict,str,int]=None,
|
||||
dimensionCodec:dict=None,
|
||||
enableRespawnScreen:bool=None,
|
||||
entityId:int=None,
|
||||
gameMode:int=None,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
@ -8,27 +8,27 @@ class PacketMap(Packet):
|
|||
__slots__ = ( 'id', 'columns', 'data', 'icons', 'itemDamage', 'locked', 'rows', 'scale', 'trackingPosition', 'x', 'y' )
|
||||
|
||||
columns : int
|
||||
data : bytes
|
||||
data : Union[None, bytes]
|
||||
icons : Union[tuple,list]
|
||||
itemDamage : int
|
||||
locked : bool
|
||||
rows : bytes
|
||||
rows : Union[None, int]
|
||||
scale : int
|
||||
trackingPosition : bool
|
||||
x : bytes
|
||||
y : bytes
|
||||
x : Union[None, int]
|
||||
y : Union[None, int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
columns:int=None,
|
||||
data:bytes=None,
|
||||
data:Union[None, bytes]=None,
|
||||
icons:Union[tuple,list]=None,
|
||||
itemDamage:int=None,
|
||||
locked:bool=None,
|
||||
rows:bytes=None,
|
||||
rows:Union[None, int]=None,
|
||||
scale:int=None,
|
||||
trackingPosition:bool=None,
|
||||
x:bytes=None,
|
||||
y:bytes=None
|
||||
x:Union[None, int]=None,
|
||||
y:Union[None, int]=None
|
||||
):
|
||||
super().__init__(proto,
|
||||
columns=columns,
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
class PacketMapChunk(Packet):
|
||||
__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]
|
||||
blockEntities : list
|
||||
blockLight : list
|
||||
|
@ -16,7 +16,7 @@ class PacketMapChunk(Packet):
|
|||
emptyBlockLightMask : list
|
||||
emptySkyLightMask : list
|
||||
groundUp : bool
|
||||
heightmaps : bytes
|
||||
heightmaps : dict
|
||||
ignoreOldData : bool
|
||||
skyLight : list
|
||||
skyLightMask : list
|
||||
|
@ -25,7 +25,7 @@ class PacketMapChunk(Packet):
|
|||
z : int
|
||||
|
||||
def __init__(self, proto:int,
|
||||
biomes:Union[bytes,list]=None,
|
||||
biomes:Union[Union[None, list],list]=None,
|
||||
bitMap:Union[int,list]=None,
|
||||
blockEntities:list=None,
|
||||
blockLight:list=None,
|
||||
|
@ -34,7 +34,7 @@ class PacketMapChunk(Packet):
|
|||
emptyBlockLightMask:list=None,
|
||||
emptySkyLightMask:list=None,
|
||||
groundUp:bool=None,
|
||||
heightmaps:bytes=None,
|
||||
heightmaps:dict=None,
|
||||
ignoreOldData:bool=None,
|
||||
skyLight:list=None,
|
||||
skyLightMask:list=None,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
class PacketNbtQueryResponse(Packet):
|
||||
__slots__ = ( 'id', 'nbt', 'transactionId' )
|
||||
|
||||
nbt : bytes
|
||||
nbt : Optional[dict]
|
||||
transactionId : int
|
||||
|
||||
def __init__(self, proto:int,
|
||||
nbt:bytes=None,
|
||||
nbt:Optional[dict]=None,
|
||||
transactionId:int=None
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
class PacketOpenWindow(Packet):
|
||||
__slots__ = ( 'id', 'entityId', 'inventoryType', 'slotCount', 'windowId', 'windowTitle' )
|
||||
|
||||
entityId : bytes
|
||||
inventoryType : Union[int,str]
|
||||
entityId : Union[None, int]
|
||||
inventoryType : Union[str,int]
|
||||
slotCount : int
|
||||
windowId : int
|
||||
windowTitle : str
|
||||
|
||||
def __init__(self, proto:int,
|
||||
entityId:bytes=None,
|
||||
inventoryType:Union[int,str]=None,
|
||||
entityId:Union[None, int]=None,
|
||||
inventoryType:Union[str,int]=None,
|
||||
slotCount:int=None,
|
||||
windowId:int=None,
|
||||
windowTitle:str=None
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
@ -9,7 +9,7 @@ class PacketRespawn(Packet):
|
|||
|
||||
copyMetadata : bool
|
||||
difficulty : int
|
||||
dimension : Union[int,bytes,str]
|
||||
dimension : Union[dict,str,int]
|
||||
gamemode : int
|
||||
hashedSeed : int
|
||||
isDebug : bool
|
||||
|
@ -21,7 +21,7 @@ class PacketRespawn(Packet):
|
|||
def __init__(self, proto:int,
|
||||
copyMetadata:bool=None,
|
||||
difficulty:int=None,
|
||||
dimension:Union[int,bytes,str]=None,
|
||||
dimension:Union[dict,str,int]=None,
|
||||
gamemode:int=None,
|
||||
hashedSeed:int=None,
|
||||
isDebug:bool=None,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
@ -8,15 +8,15 @@ class PacketScoreboardObjective(Packet):
|
|||
__slots__ = ( 'id', 'action', 'displayText', 'name', 'type' )
|
||||
|
||||
action : int
|
||||
displayText : bytes
|
||||
displayText : Union[str, None]
|
||||
name : str
|
||||
type : bytes
|
||||
type : Union[Union[str, None],Union[None, int]]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
action:int=None,
|
||||
displayText:bytes=None,
|
||||
displayText:Union[str, None]=None,
|
||||
name:str=None,
|
||||
type:bytes=None
|
||||
type:Union[Union[str, None],Union[None, int]]=None
|
||||
):
|
||||
super().__init__(proto,
|
||||
action=action,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
@ -10,13 +10,13 @@ class PacketScoreboardScore(Packet):
|
|||
action : int
|
||||
itemName : str
|
||||
scoreName : str
|
||||
value : bytes
|
||||
value : Union[None, int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
action:int=None,
|
||||
itemName:str=None,
|
||||
scoreName:str=None,
|
||||
value:bytes=None
|
||||
value:Union[None, int]=None
|
||||
):
|
||||
super().__init__(proto,
|
||||
action=action,
|
||||
|
|
|
@ -1,33 +1,33 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
class PacketScoreboardTeam(Packet):
|
||||
__slots__ = ( 'id', 'collisionRule', 'color', 'friendlyFire', 'mode', 'name', 'nameTagVisibility', 'players', 'prefix', 'suffix', 'team' )
|
||||
|
||||
collisionRule : bytes
|
||||
color : bytes
|
||||
friendlyFire : bytes
|
||||
collisionRule : Union[str, None]
|
||||
color : Union[None, int]
|
||||
friendlyFire : Union[None, int]
|
||||
mode : int
|
||||
name : bytes
|
||||
nameTagVisibility : bytes
|
||||
players : bytes
|
||||
prefix : bytes
|
||||
suffix : bytes
|
||||
name : Union[str, None]
|
||||
nameTagVisibility : Union[str, None]
|
||||
players : Union[None, list]
|
||||
prefix : Union[str, None]
|
||||
suffix : Union[str, None]
|
||||
team : str
|
||||
|
||||
def __init__(self, proto:int,
|
||||
collisionRule:bytes=None,
|
||||
color:bytes=None,
|
||||
friendlyFire:bytes=None,
|
||||
collisionRule:Union[str, None]=None,
|
||||
color:Union[None, int]=None,
|
||||
friendlyFire:Union[None, int]=None,
|
||||
mode:int=None,
|
||||
name:bytes=None,
|
||||
nameTagVisibility:bytes=None,
|
||||
players:bytes=None,
|
||||
prefix:bytes=None,
|
||||
suffix:bytes=None,
|
||||
name:Union[str, None]=None,
|
||||
nameTagVisibility:Union[str, None]=None,
|
||||
players:Union[None, list]=None,
|
||||
prefix:Union[str, None]=None,
|
||||
suffix:Union[str, None]=None,
|
||||
team:str=None
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
@ -8,13 +8,13 @@ class PacketSculkVibrationSignal(Packet):
|
|||
__slots__ = ( 'id', 'arrivalTicks', 'destination', 'destinationIdentifier', 'sourcePosition' )
|
||||
|
||||
arrivalTicks : int
|
||||
destination : bytes
|
||||
destination : Union[None, int, tuple]
|
||||
destinationIdentifier : str
|
||||
sourcePosition : tuple
|
||||
|
||||
def __init__(self, proto:int,
|
||||
arrivalTicks:int=None,
|
||||
destination:bytes=None,
|
||||
destination:Union[None, int, tuple]=None,
|
||||
destinationIdentifier:str=None,
|
||||
sourcePosition:tuple=None
|
||||
):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
@ -9,7 +9,7 @@ class PacketSpawnEntity(Packet):
|
|||
|
||||
entityId : int
|
||||
entityUUID : str
|
||||
objectData : Union[int,dict]
|
||||
objectData : Union[dict,int]
|
||||
objectUUID : str
|
||||
pitch : int
|
||||
type : int
|
||||
|
@ -24,7 +24,7 @@ class PacketSpawnEntity(Packet):
|
|||
def __init__(self, proto:int,
|
||||
entityId:int=None,
|
||||
entityUUID:str=None,
|
||||
objectData:Union[int,dict]=None,
|
||||
objectData:Union[dict,int]=None,
|
||||
objectUUID:str=None,
|
||||
pitch:int=None,
|
||||
type:int=None,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
@ -11,14 +11,14 @@ class PacketSpawnEntityPainting(Packet):
|
|||
entityId : int
|
||||
entityUUID : str
|
||||
location : tuple
|
||||
title : Union[int,str]
|
||||
title : Union[str,int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
direction:int=None,
|
||||
entityId:int=None,
|
||||
entityUUID:str=None,
|
||||
location:tuple=None,
|
||||
title:Union[int,str]=None
|
||||
title:Union[str,int]=None
|
||||
):
|
||||
super().__init__(proto,
|
||||
direction=direction,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....types import *
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""[!] This file is autogenerated"""
|
||||
|
||||
from typing import Tuple, List, Dict, Union
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
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