made Union consistent (sorted)

This commit is contained in:
əlemi 2022-01-19 01:20:16 +01:00
parent 65b42a2ed7
commit c64f527ec7
185 changed files with 341 additions and 156 deletions

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketLegacyServerListPing(Packet): class PacketLegacyServerListPing(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSetProtocol(Packet): class PacketSetProtocol(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketCompress(Packet): class PacketCompress(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketDisconnect(Packet): class PacketDisconnect(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEncryptionBegin(Packet): class PacketEncryptionBegin(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketLoginPluginRequest(Packet): class PacketLoginPluginRequest(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSuccess(Packet): class PacketSuccess(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEncryptionBegin(Packet): class PacketEncryptionBegin(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketLoginPluginResponse(Packet): class PacketLoginPluginResponse(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketLoginStart(Packet): class PacketLoginStart(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketAbilities(Packet): class PacketAbilities(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketAcknowledgePlayerDigging(Packet): class PacketAcknowledgePlayerDigging(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketActionBar(Packet): class PacketActionBar(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketAdvancementProgress(Packet): class PacketAdvancementProgress(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketAdvancements(Packet): class PacketAdvancements(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketAnimation(Packet): class PacketAnimation(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketAttachEntity(Packet): class PacketAttachEntity(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketBed(Packet): class PacketBed(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketBlockAction(Packet): class PacketBlockAction(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketBlockBreakAnimation(Packet): class PacketBlockBreakAnimation(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketBlockChange(Packet): class PacketBlockChange(Packet):

View file

@ -2,27 +2,28 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketBossBar(Packet): 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 : Union[int, None] color : Union[None, int]
dividers : Union[int, None] dividers : Union[None, int]
entityUUID : str entityUUID : str
flags : Union[int, None] flags : Union[None, int]
health : Union[None, float] health : Union[None, float]
title : Union[str, None] title : Union[None, str]
def __init__(self, proto:int, def __init__(self, proto:int,
action:int=None, action:int=None,
color:Union[int, None]=None, color:Union[None, int]=None,
dividers:Union[int, None]=None, dividers:Union[None, int]=None,
entityUUID:str=None, entityUUID:str=None,
flags:Union[int, None]=None, flags:Union[None, int]=None,
health:Union[None, float]=None, health:Union[None, float]=None,
title:Union[str, None]=None, title:Union[None, str]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketCamera(Packet): class PacketCamera(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketChat(Packet): class PacketChat(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketClearTitles(Packet): class PacketClearTitles(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketCloseWindow(Packet): class PacketCloseWindow(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketCollect(Packet): class PacketCollect(Packet):

View file

@ -2,23 +2,24 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
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 : Union[int, None] duration : Union[None, int]
entityId : Union[int, None] entityId : Union[None, int]
event : int event : int
message : Union[str, None] message : Union[None, str]
playerId : Union[int, None] playerId : Union[None, int]
def __init__(self, proto:int, def __init__(self, proto:int,
duration:Union[int, None]=None, duration:Union[None, int]=None,
entityId:Union[int, None]=None, entityId:Union[None, int]=None,
event:int=None, event:int=None,
message:Union[str, None]=None, message:Union[None, str]=None,
playerId:Union[int, None]=None, playerId:Union[None, int]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketCraftProgressBar(Packet): class PacketCraftProgressBar(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketCraftRecipeResponse(Packet): class PacketCraftRecipeResponse(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketCustomPayload(Packet): class PacketCustomPayload(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketDeathCombatEvent(Packet): class PacketDeathCombatEvent(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketDeclareCommands(Packet): class PacketDeclareCommands(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketDeclareRecipes(Packet): class PacketDeclareRecipes(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketDestroyEntity(Packet): class PacketDestroyEntity(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketDifficulty(Packet): class PacketDifficulty(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEndCombatEvent(Packet): class PacketEndCombatEvent(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEnterCombatEvent(Packet): class PacketEnterCombatEvent(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntity(Packet): class PacketEntity(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityDestroy(Packet): class PacketEntityDestroy(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityEffect(Packet): class PacketEntityEffect(Packet):
@ -11,14 +12,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,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityEquipment(Packet): class PacketEntityEquipment(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityHeadRotation(Packet): class PacketEntityHeadRotation(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityLook(Packet): class PacketEntityLook(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityMetadata(Packet): class PacketEntityMetadata(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityMoveLook(Packet): class PacketEntityMoveLook(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntitySoundEffect(Packet): class PacketEntitySoundEffect(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityStatus(Packet): class PacketEntityStatus(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityTeleport(Packet): class PacketEntityTeleport(Packet):
@ -10,19 +11,19 @@ class PacketEntityTeleport(Packet):
entityId : int entityId : int
onGround : bool onGround : bool
pitch : int pitch : int
x : Union[int,float] x : Union[float,int]
y : Union[int,float] y : Union[float,int]
yaw : int yaw : int
z : Union[int,float] z : Union[float,int]
def __init__(self, proto:int, def __init__(self, proto:int,
entityId:int=None, entityId:int=None,
onGround:bool=None, onGround:bool=None,
pitch:int=None, pitch:int=None,
x:Union[int,float]=None, x:Union[float,int]=None,
y:Union[int,float]=None, y:Union[float,int]=None,
yaw:int=None, yaw:int=None,
z:Union[int,float]=None, z:Union[float,int]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityUpdateAttributes(Packet): class PacketEntityUpdateAttributes(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketEntityVelocity(Packet): class PacketEntityVelocity(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketExperience(Packet): class PacketExperience(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketExplosion(Packet): class PacketExplosion(Packet):

View file

@ -2,13 +2,14 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
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 : Union[int, None] entityId : Union[None, int]
entity_feet_eyes : Union[str, None] entity_feet_eyes : Union[None, str]
feet_eyes : int feet_eyes : int
isEntity : bool isEntity : bool
x : float x : float
@ -16,8 +17,8 @@ class PacketFacePlayer(Packet):
z : float z : float
def __init__(self, proto:int, def __init__(self, proto:int,
entityId:Union[int, None]=None, entityId:Union[None, int]=None,
entity_feet_eyes:Union[str, None]=None, entity_feet_eyes:Union[None, str]=None,
feet_eyes:int=None, feet_eyes:int=None,
isEntity:bool=None, isEntity:bool=None,
x:float=None, x:float=None,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketGameStateChange(Packet): class PacketGameStateChange(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketHeldItemSlot(Packet): class PacketHeldItemSlot(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketInitializeWorldBorder(Packet): class PacketInitializeWorldBorder(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketKeepAlive(Packet): class PacketKeepAlive(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketKickDisconnect(Packet): class PacketKickDisconnect(Packet):

View file

@ -2,13 +2,14 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketLogin(Packet): 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,dict,str] dimension : Union[dict,int,str]
dimensionCodec : dict dimensionCodec : dict
enableRespawnScreen : bool enableRespawnScreen : bool
entityId : int entityId : int
@ -28,7 +29,7 @@ class PacketLogin(Packet):
def __init__(self, proto:int, def __init__(self, proto:int,
difficulty:int=None, difficulty:int=None,
dimension:Union[int,dict,str]=None, dimension:Union[dict,int,str]=None,
dimensionCodec:dict=None, dimensionCodec:dict=None,
enableRespawnScreen:bool=None, enableRespawnScreen:bool=None,
entityId:int=None, entityId:int=None,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketMap(Packet): class PacketMap(Packet):
@ -12,11 +13,11 @@ class PacketMap(Packet):
icons : Union[list,tuple] icons : Union[list,tuple]
itemDamage : int itemDamage : int
locked : bool locked : bool
rows : Union[int, None] rows : Union[None, int]
scale : int scale : int
trackingPosition : bool trackingPosition : bool
x : Union[int, None] x : Union[None, int]
y : Union[int, None] y : Union[None, int]
def __init__(self, proto:int, def __init__(self, proto:int,
columns:int=None, columns:int=None,
@ -24,11 +25,11 @@ class PacketMap(Packet):
icons:Union[list,tuple]=None, icons:Union[list,tuple]=None,
itemDamage:int=None, itemDamage:int=None,
locked:bool=None, locked:bool=None,
rows:Union[int, None]=None, rows:Union[None, int]=None,
scale:int=None, scale:int=None,
trackingPosition:bool=None, trackingPosition:bool=None,
x:Union[int, None]=None, x:Union[None, int]=None,
y:Union[int, None]=None, y:Union[None, int]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,12 +2,13 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
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[Union[list, None],list] biomes : Union[Union[None, list],list]
bitMap : Union[int,list] bitMap : Union[int,list]
blockEntities : list blockEntities : list
blockLight : list blockLight : list
@ -25,7 +26,7 @@ class PacketMapChunk(Packet):
z : int z : int
def __init__(self, proto:int, def __init__(self, proto:int,
biomes:Union[Union[list, None],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,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketMapChunkBulk(Packet): class PacketMapChunkBulk(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketMultiBlockChange(Packet): class PacketMultiBlockChange(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketNamedEntitySpawn(Packet): class PacketNamedEntitySpawn(Packet):
@ -12,10 +13,10 @@ class PacketNamedEntitySpawn(Packet):
metadata : dict metadata : dict
pitch : int pitch : int
playerUUID : str playerUUID : str
x : Union[int,float] x : Union[float,int]
y : Union[int,float] y : Union[float,int]
yaw : int yaw : int
z : Union[int,float] z : Union[float,int]
def __init__(self, proto:int, def __init__(self, proto:int,
currentItem:int=None, currentItem:int=None,
@ -23,10 +24,10 @@ class PacketNamedEntitySpawn(Packet):
metadata:dict=None, metadata:dict=None,
pitch:int=None, pitch:int=None,
playerUUID:str=None, playerUUID:str=None,
x:Union[int,float]=None, x:Union[float,int]=None,
y:Union[int,float]=None, y:Union[float,int]=None,
yaw:int=None, yaw:int=None,
z:Union[int,float]=None, z:Union[float,int]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,12 +2,13 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketNamedSoundEffect(Packet): class PacketNamedSoundEffect(Packet):
__slots__ = ( 'id', 'pitch', 'soundCategory', 'soundName', 'volume', 'x', 'y', 'z' ) __slots__ = ( 'id', 'pitch', 'soundCategory', 'soundName', 'volume', 'x', 'y', 'z' )
pitch : Union[int,float] pitch : Union[float,int]
soundCategory : int soundCategory : int
soundName : str soundName : str
volume : float volume : float
@ -16,7 +17,7 @@ class PacketNamedSoundEffect(Packet):
z : int z : int
def __init__(self, proto:int, def __init__(self, proto:int,
pitch:Union[int,float]=None, pitch:Union[float,int]=None,
soundCategory:int=None, soundCategory:int=None,
soundName:str=None, soundName:str=None,
volume:float=None, volume:float=None,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketNbtQueryResponse(Packet): class PacketNbtQueryResponse(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketOpenBook(Packet): class PacketOpenBook(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketOpenHorseWindow(Packet): class PacketOpenHorseWindow(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketOpenSignEntity(Packet): class PacketOpenSignEntity(Packet):

View file

@ -2,19 +2,20 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
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 : Union[int, None] entityId : Union[None, int]
inventoryType : Union[int,str] inventoryType : Union[int,str]
slotCount : int slotCount : int
windowId : int windowId : int
windowTitle : str windowTitle : str
def __init__(self, proto:int, def __init__(self, proto:int,
entityId:Union[int, None]=None, entityId:Union[None, int]=None,
inventoryType:Union[int,str]=None, inventoryType:Union[int,str]=None,
slotCount:int=None, slotCount:int=None,
windowId:int=None, windowId:int=None,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketPing(Packet): class PacketPing(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketPlayerInfo(Packet): class PacketPlayerInfo(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketPlayerlistHeader(Packet): class PacketPlayerlistHeader(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketPosition(Packet): class PacketPosition(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketRelEntityMove(Packet): class PacketRelEntityMove(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketRemoveEntityEffect(Packet): class PacketRemoveEntityEffect(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketResourcePackSend(Packet): class PacketResourcePackSend(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketRespawn(Packet): class PacketRespawn(Packet):
@ -9,7 +10,7 @@ class PacketRespawn(Packet):
copyMetadata : bool copyMetadata : bool
difficulty : int difficulty : int
dimension : Union[int,dict,str] dimension : Union[dict,int,str]
gamemode : int gamemode : int
hashedSeed : int hashedSeed : int
isDebug : bool isDebug : bool
@ -21,7 +22,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,dict,str]=None, dimension:Union[dict,int,str]=None,
gamemode:int=None, gamemode:int=None,
hashedSeed:int=None, hashedSeed:int=None,
isDebug:bool=None, isDebug:bool=None,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketScoreboardDisplayObjective(Packet): class PacketScoreboardDisplayObjective(Packet):

View file

@ -2,21 +2,22 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketScoreboardObjective(Packet): class PacketScoreboardObjective(Packet):
__slots__ = ( 'id', 'action', 'displayText', 'name', 'type' ) __slots__ = ( 'id', 'action', 'displayText', 'name', 'type' )
action : int action : int
displayText : Union[str, None] displayText : Union[None, str]
name : str name : str
type : Union[Union[str, None],Union[int, None]] type : Union[Union[None, int],Union[None, str]]
def __init__(self, proto:int, def __init__(self, proto:int,
action:int=None, action:int=None,
displayText:Union[str, None]=None, displayText:Union[None, str]=None,
name:str=None, name:str=None,
type:Union[Union[str, None],Union[int, None]]=None, type:Union[Union[None, int],Union[None, str]]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketScoreboardScore(Packet): class PacketScoreboardScore(Packet):
@ -10,13 +11,13 @@ class PacketScoreboardScore(Packet):
action : int action : int
itemName : str itemName : str
scoreName : str scoreName : str
value : Union[int, None] 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:Union[int, None]=None, value:Union[None, int]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,32 +2,33 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
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 : Union[str, None] collisionRule : Union[None, str]
color : Union[int, None] color : Union[None, int]
friendlyFire : Union[int, None] friendlyFire : Union[None, int]
mode : int mode : int
name : Union[str, None] name : Union[None, str]
nameTagVisibility : Union[str, None] nameTagVisibility : Union[None, str]
players : Union[list, None] players : Union[None, list]
prefix : Union[str, None] prefix : Union[None, str]
suffix : Union[str, None] suffix : Union[None, str]
team : str team : str
def __init__(self, proto:int, def __init__(self, proto:int,
collisionRule:Union[str, None]=None, collisionRule:Union[None, str]=None,
color:Union[int, None]=None, color:Union[None, int]=None,
friendlyFire:Union[int, None]=None, friendlyFire:Union[None, int]=None,
mode:int=None, mode:int=None,
name:Union[str, None]=None, name:Union[None, str]=None,
nameTagVisibility:Union[str, None]=None, nameTagVisibility:Union[None, str]=None,
players:Union[list, None]=None, players:Union[None, list]=None,
prefix:Union[str, None]=None, prefix:Union[None, str]=None,
suffix:Union[str, None]=None, suffix:Union[None, str]=None,
team:str=None, team:str=None,
**kwargs **kwargs
): ):

View file

@ -2,19 +2,20 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSculkVibrationSignal(Packet): class PacketSculkVibrationSignal(Packet):
__slots__ = ( 'id', 'arrivalTicks', 'destination', 'destinationIdentifier', 'sourcePosition' ) __slots__ = ( 'id', 'arrivalTicks', 'destination', 'destinationIdentifier', 'sourcePosition' )
arrivalTicks : int arrivalTicks : int
destination : Union[int, tuple, None] 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:Union[int, tuple, None]=None, destination:Union[None, int, tuple]=None,
destinationIdentifier:str=None, destinationIdentifier:str=None,
sourcePosition:tuple=None, sourcePosition:tuple=None,
**kwargs **kwargs

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSelectAdvancementTab(Packet): class PacketSelectAdvancementTab(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSetCompression(Packet): class PacketSetCompression(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSetCooldown(Packet): class PacketSetCooldown(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSetPassengers(Packet): class PacketSetPassengers(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSetSlot(Packet): class PacketSetSlot(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSetTitleSubtitle(Packet): class PacketSetTitleSubtitle(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSetTitleText(Packet): class PacketSetTitleText(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSetTitleTime(Packet): class PacketSetTitleTime(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSimulationDistance(Packet): class PacketSimulationDistance(Packet):

View file

@ -2,13 +2,14 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSoundEffect(Packet): class PacketSoundEffect(Packet):
__slots__ = ( 'id', 'parrottedEntityType', 'pitch', 'soundCategory', 'soundId', 'volume', 'x', 'y', 'z' ) __slots__ = ( 'id', 'parrottedEntityType', 'pitch', 'soundCategory', 'soundId', 'volume', 'x', 'y', 'z' )
parrottedEntityType : str parrottedEntityType : str
pitch : Union[int,float] pitch : Union[float,int]
soundCategory : int soundCategory : int
soundId : int soundId : int
volume : float volume : float
@ -18,7 +19,7 @@ class PacketSoundEffect(Packet):
def __init__(self, proto:int, def __init__(self, proto:int,
parrottedEntityType:str=None, parrottedEntityType:str=None,
pitch:Union[int,float]=None, pitch:Union[float,int]=None,
soundCategory:int=None, soundCategory:int=None,
soundId:int=None, soundId:int=None,
volume:float=None, volume:float=None,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSpawnEntity(Packet): class PacketSpawnEntity(Packet):
@ -9,32 +10,32 @@ 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
velocityX : int velocityX : int
velocityY : int velocityY : int
velocityZ : int velocityZ : int
x : Union[int,float] x : Union[float,int]
y : Union[int,float] y : Union[float,int]
yaw : int yaw : int
z : Union[int,float] z : Union[float,int]
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,
velocityX:int=None, velocityX:int=None,
velocityY:int=None, velocityY:int=None,
velocityZ:int=None, velocityZ:int=None,
x:Union[int,float]=None, x:Union[float,int]=None,
y:Union[int,float]=None, y:Union[float,int]=None,
yaw:int=None, yaw:int=None,
z:Union[int,float]=None, z:Union[float,int]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSpawnEntityExperienceOrb(Packet): class PacketSpawnEntityExperienceOrb(Packet):
@ -9,16 +10,16 @@ class PacketSpawnEntityExperienceOrb(Packet):
count : int count : int
entityId : int entityId : int
x : Union[int,float] x : Union[float,int]
y : Union[int,float] y : Union[float,int]
z : Union[int,float] z : Union[float,int]
def __init__(self, proto:int, def __init__(self, proto:int,
count:int=None, count:int=None,
entityId:int=None, entityId:int=None,
x:Union[int,float]=None, x:Union[float,int]=None,
y:Union[int,float]=None, y:Union[float,int]=None,
z:Union[int,float]=None, z:Union[float,int]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSpawnEntityLiving(Packet): class PacketSpawnEntityLiving(Packet):
@ -16,10 +17,10 @@ class PacketSpawnEntityLiving(Packet):
velocityX : int velocityX : int
velocityY : int velocityY : int
velocityZ : int velocityZ : int
x : Union[int,float] x : Union[float,int]
y : Union[int,float] y : Union[float,int]
yaw : int yaw : int
z : Union[int,float] z : Union[float,int]
def __init__(self, proto:int, def __init__(self, proto:int,
entityId:int=None, entityId:int=None,
@ -31,10 +32,10 @@ class PacketSpawnEntityLiving(Packet):
velocityX:int=None, velocityX:int=None,
velocityY:int=None, velocityY:int=None,
velocityZ:int=None, velocityZ:int=None,
x:Union[int,float]=None, x:Union[float,int]=None,
y:Union[int,float]=None, y:Union[float,int]=None,
yaw:int=None, yaw:int=None,
z:Union[int,float]=None, z:Union[float,int]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSpawnEntityPainting(Packet): class PacketSpawnEntityPainting(Packet):

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSpawnEntityWeather(Packet): class PacketSpawnEntityWeather(Packet):
@ -9,16 +10,16 @@ class PacketSpawnEntityWeather(Packet):
entityId : int entityId : int
type : int type : int
x : Union[int,float] x : Union[float,int]
y : Union[int,float] y : Union[float,int]
z : Union[int,float] z : Union[float,int]
def __init__(self, proto:int, def __init__(self, proto:int,
entityId:int=None, entityId:int=None,
type:int=None, type:int=None,
x:Union[int,float]=None, x:Union[float,int]=None,
y:Union[int,float]=None, y:Union[float,int]=None,
z:Union[int,float]=None, z:Union[float,int]=None,
**kwargs **kwargs
): ):
super().__init__(proto, super().__init__(proto,

View file

@ -2,6 +2,7 @@
from typing import Tuple, List, Dict, Union, Optional from typing import Tuple, List, Dict, Union, Optional
from ....packet import Packet from ....packet import Packet
from ....definitions import *
from ....types import * from ....types import *
class PacketSpawnPosition(Packet): class PacketSpawnPosition(Packet):

Some files were not shown because too many files have changed in this diff Show more