made Union consistent (sorted)
This commit is contained in:
parent
65b42a2ed7
commit
c64f527ec7
185 changed files with 341 additions and 156 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketLegacyServerListPing(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSetProtocol(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketCompress(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketDisconnect(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEncryptionBegin(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketLoginPluginRequest(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSuccess(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEncryptionBegin(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketLoginPluginResponse(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketLoginStart(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketAbilities(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketAcknowledgePlayerDigging(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketActionBar(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketAdvancementProgress(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketAdvancements(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketAnimation(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketAttachEntity(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketBed(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketBlockAction(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketBlockBreakAnimation(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketBlockChange(Packet):
|
||||
|
|
|
@ -2,27 +2,28 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketBossBar(Packet):
|
||||
__slots__ = ( 'id', 'action', 'color', 'dividers', 'entityUUID', 'flags', 'health', 'title' )
|
||||
|
||||
action : int
|
||||
color : Union[int, None]
|
||||
dividers : Union[int, None]
|
||||
color : Union[None, int]
|
||||
dividers : Union[None, int]
|
||||
entityUUID : str
|
||||
flags : Union[int, None]
|
||||
flags : Union[None, int]
|
||||
health : Union[None, float]
|
||||
title : Union[str, None]
|
||||
title : Union[None, str]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
action:int=None,
|
||||
color:Union[int, None]=None,
|
||||
dividers:Union[int, None]=None,
|
||||
color:Union[None, int]=None,
|
||||
dividers:Union[None, int]=None,
|
||||
entityUUID:str=None,
|
||||
flags:Union[int, None]=None,
|
||||
flags:Union[None, int]=None,
|
||||
health:Union[None, float]=None,
|
||||
title:Union[str, None]=None,
|
||||
title:Union[None, str]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketCamera(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketChat(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketClearTitles(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketCloseWindow(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketCollect(Packet):
|
||||
|
|
|
@ -2,23 +2,24 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketCombatEvent(Packet):
|
||||
__slots__ = ( 'id', 'duration', 'entityId', 'event', 'message', 'playerId' )
|
||||
|
||||
duration : Union[int, None]
|
||||
entityId : Union[int, None]
|
||||
duration : Union[None, int]
|
||||
entityId : Union[None, int]
|
||||
event : int
|
||||
message : Union[str, None]
|
||||
playerId : Union[int, None]
|
||||
message : Union[None, str]
|
||||
playerId : Union[None, int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
duration:Union[int, None]=None,
|
||||
entityId:Union[int, None]=None,
|
||||
duration:Union[None, int]=None,
|
||||
entityId:Union[None, int]=None,
|
||||
event:int=None,
|
||||
message:Union[str, None]=None,
|
||||
playerId:Union[int, None]=None,
|
||||
message:Union[None, str]=None,
|
||||
playerId:Union[None, int]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketCraftProgressBar(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketCraftRecipeResponse(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketCustomPayload(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketDeathCombatEvent(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketDeclareCommands(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketDeclareRecipes(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketDestroyEntity(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketDifficulty(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEndCombatEvent(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEnterCombatEvent(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntity(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityDestroy(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityEffect(Packet):
|
||||
|
@ -11,14 +12,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,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityEquipment(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityHeadRotation(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityLook(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityMetadata(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityMoveLook(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntitySoundEffect(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityStatus(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityTeleport(Packet):
|
||||
|
@ -10,19 +11,19 @@ class PacketEntityTeleport(Packet):
|
|||
entityId : int
|
||||
onGround : bool
|
||||
pitch : int
|
||||
x : Union[int,float]
|
||||
y : Union[int,float]
|
||||
x : Union[float,int]
|
||||
y : Union[float,int]
|
||||
yaw : int
|
||||
z : Union[int,float]
|
||||
z : Union[float,int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
entityId:int=None,
|
||||
onGround:bool=None,
|
||||
pitch:int=None,
|
||||
x:Union[int,float]=None,
|
||||
y:Union[int,float]=None,
|
||||
x:Union[float,int]=None,
|
||||
y:Union[float,int]=None,
|
||||
yaw:int=None,
|
||||
z:Union[int,float]=None,
|
||||
z:Union[float,int]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityUpdateAttributes(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketEntityVelocity(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketExperience(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketExplosion(Packet):
|
||||
|
|
|
@ -2,13 +2,14 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketFacePlayer(Packet):
|
||||
__slots__ = ( 'id', 'entityId', 'entity_feet_eyes', 'feet_eyes', 'isEntity', 'x', 'y', 'z' )
|
||||
|
||||
entityId : Union[int, None]
|
||||
entity_feet_eyes : Union[str, None]
|
||||
entityId : Union[None, int]
|
||||
entity_feet_eyes : Union[None, str]
|
||||
feet_eyes : int
|
||||
isEntity : bool
|
||||
x : float
|
||||
|
@ -16,8 +17,8 @@ class PacketFacePlayer(Packet):
|
|||
z : float
|
||||
|
||||
def __init__(self, proto:int,
|
||||
entityId:Union[int, None]=None,
|
||||
entity_feet_eyes:Union[str, None]=None,
|
||||
entityId:Union[None, int]=None,
|
||||
entity_feet_eyes:Union[None, str]=None,
|
||||
feet_eyes:int=None,
|
||||
isEntity:bool=None,
|
||||
x:float=None,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketGameStateChange(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketHeldItemSlot(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketInitializeWorldBorder(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketKeepAlive(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketKickDisconnect(Packet):
|
||||
|
|
|
@ -2,13 +2,14 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
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,dict,str]
|
||||
dimension : Union[dict,int,str]
|
||||
dimensionCodec : dict
|
||||
enableRespawnScreen : bool
|
||||
entityId : int
|
||||
|
@ -28,7 +29,7 @@ class PacketLogin(Packet):
|
|||
|
||||
def __init__(self, proto:int,
|
||||
difficulty:int=None,
|
||||
dimension:Union[int,dict,str]=None,
|
||||
dimension:Union[dict,int,str]=None,
|
||||
dimensionCodec:dict=None,
|
||||
enableRespawnScreen:bool=None,
|
||||
entityId:int=None,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketMap(Packet):
|
||||
|
@ -12,11 +13,11 @@ class PacketMap(Packet):
|
|||
icons : Union[list,tuple]
|
||||
itemDamage : int
|
||||
locked : bool
|
||||
rows : Union[int, None]
|
||||
rows : Union[None, int]
|
||||
scale : int
|
||||
trackingPosition : bool
|
||||
x : Union[int, None]
|
||||
y : Union[int, None]
|
||||
x : Union[None, int]
|
||||
y : Union[None, int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
columns:int=None,
|
||||
|
@ -24,11 +25,11 @@ class PacketMap(Packet):
|
|||
icons:Union[list,tuple]=None,
|
||||
itemDamage:int=None,
|
||||
locked:bool=None,
|
||||
rows:Union[int, None]=None,
|
||||
rows:Union[None, int]=None,
|
||||
scale:int=None,
|
||||
trackingPosition:bool=None,
|
||||
x:Union[int, None]=None,
|
||||
y:Union[int, None]=None,
|
||||
x:Union[None, int]=None,
|
||||
y:Union[None, int]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
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[Union[list, None],list]
|
||||
biomes : Union[Union[None, list],list]
|
||||
bitMap : Union[int,list]
|
||||
blockEntities : list
|
||||
blockLight : list
|
||||
|
@ -25,7 +26,7 @@ class PacketMapChunk(Packet):
|
|||
z : 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,
|
||||
blockEntities:list=None,
|
||||
blockLight:list=None,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketMapChunkBulk(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketMultiBlockChange(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketNamedEntitySpawn(Packet):
|
||||
|
@ -12,10 +13,10 @@ class PacketNamedEntitySpawn(Packet):
|
|||
metadata : dict
|
||||
pitch : int
|
||||
playerUUID : str
|
||||
x : Union[int,float]
|
||||
y : Union[int,float]
|
||||
x : Union[float,int]
|
||||
y : Union[float,int]
|
||||
yaw : int
|
||||
z : Union[int,float]
|
||||
z : Union[float,int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
currentItem:int=None,
|
||||
|
@ -23,10 +24,10 @@ class PacketNamedEntitySpawn(Packet):
|
|||
metadata:dict=None,
|
||||
pitch:int=None,
|
||||
playerUUID:str=None,
|
||||
x:Union[int,float]=None,
|
||||
y:Union[int,float]=None,
|
||||
x:Union[float,int]=None,
|
||||
y:Union[float,int]=None,
|
||||
yaw:int=None,
|
||||
z:Union[int,float]=None,
|
||||
z:Union[float,int]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketNamedSoundEffect(Packet):
|
||||
__slots__ = ( 'id', 'pitch', 'soundCategory', 'soundName', 'volume', 'x', 'y', 'z' )
|
||||
|
||||
pitch : Union[int,float]
|
||||
pitch : Union[float,int]
|
||||
soundCategory : int
|
||||
soundName : str
|
||||
volume : float
|
||||
|
@ -16,7 +17,7 @@ class PacketNamedSoundEffect(Packet):
|
|||
z : int
|
||||
|
||||
def __init__(self, proto:int,
|
||||
pitch:Union[int,float]=None,
|
||||
pitch:Union[float,int]=None,
|
||||
soundCategory:int=None,
|
||||
soundName:str=None,
|
||||
volume:float=None,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketNbtQueryResponse(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketOpenBook(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketOpenHorseWindow(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketOpenSignEntity(Packet):
|
||||
|
|
|
@ -2,19 +2,20 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketOpenWindow(Packet):
|
||||
__slots__ = ( 'id', 'entityId', 'inventoryType', 'slotCount', 'windowId', 'windowTitle' )
|
||||
|
||||
entityId : Union[int, None]
|
||||
entityId : Union[None, int]
|
||||
inventoryType : Union[int,str]
|
||||
slotCount : int
|
||||
windowId : int
|
||||
windowTitle : str
|
||||
|
||||
def __init__(self, proto:int,
|
||||
entityId:Union[int, None]=None,
|
||||
entityId:Union[None, int]=None,
|
||||
inventoryType:Union[int,str]=None,
|
||||
slotCount:int=None,
|
||||
windowId:int=None,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketPing(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketPlayerInfo(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketPlayerlistHeader(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketPosition(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketRelEntityMove(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketRemoveEntityEffect(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketResourcePackSend(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketRespawn(Packet):
|
||||
|
@ -9,7 +10,7 @@ class PacketRespawn(Packet):
|
|||
|
||||
copyMetadata : bool
|
||||
difficulty : int
|
||||
dimension : Union[int,dict,str]
|
||||
dimension : Union[dict,int,str]
|
||||
gamemode : int
|
||||
hashedSeed : int
|
||||
isDebug : bool
|
||||
|
@ -21,7 +22,7 @@ class PacketRespawn(Packet):
|
|||
def __init__(self, proto:int,
|
||||
copyMetadata:bool=None,
|
||||
difficulty:int=None,
|
||||
dimension:Union[int,dict,str]=None,
|
||||
dimension:Union[dict,int,str]=None,
|
||||
gamemode:int=None,
|
||||
hashedSeed:int=None,
|
||||
isDebug:bool=None,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketScoreboardDisplayObjective(Packet):
|
||||
|
|
|
@ -2,21 +2,22 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketScoreboardObjective(Packet):
|
||||
__slots__ = ( 'id', 'action', 'displayText', 'name', 'type' )
|
||||
|
||||
action : int
|
||||
displayText : Union[str, None]
|
||||
displayText : Union[None, str]
|
||||
name : str
|
||||
type : Union[Union[str, None],Union[int, None]]
|
||||
type : Union[Union[None, int],Union[None, str]]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
action:int=None,
|
||||
displayText:Union[str, None]=None,
|
||||
displayText:Union[None, str]=None,
|
||||
name:str=None,
|
||||
type:Union[Union[str, None],Union[int, None]]=None,
|
||||
type:Union[Union[None, int],Union[None, str]]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketScoreboardScore(Packet):
|
||||
|
@ -10,13 +11,13 @@ class PacketScoreboardScore(Packet):
|
|||
action : int
|
||||
itemName : str
|
||||
scoreName : str
|
||||
value : Union[int, None]
|
||||
value : Union[None, int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
action:int=None,
|
||||
itemName:str=None,
|
||||
scoreName:str=None,
|
||||
value:Union[int, None]=None,
|
||||
value:Union[None, int]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,32 +2,33 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketScoreboardTeam(Packet):
|
||||
__slots__ = ( 'id', 'collisionRule', 'color', 'friendlyFire', 'mode', 'name', 'nameTagVisibility', 'players', 'prefix', 'suffix', 'team' )
|
||||
|
||||
collisionRule : Union[str, None]
|
||||
color : Union[int, None]
|
||||
friendlyFire : Union[int, None]
|
||||
collisionRule : Union[None, str]
|
||||
color : Union[None, int]
|
||||
friendlyFire : Union[None, int]
|
||||
mode : int
|
||||
name : Union[str, None]
|
||||
nameTagVisibility : Union[str, None]
|
||||
players : Union[list, None]
|
||||
prefix : Union[str, None]
|
||||
suffix : Union[str, None]
|
||||
name : Union[None, str]
|
||||
nameTagVisibility : Union[None, str]
|
||||
players : Union[None, list]
|
||||
prefix : Union[None, str]
|
||||
suffix : Union[None, str]
|
||||
team : str
|
||||
|
||||
def __init__(self, proto:int,
|
||||
collisionRule:Union[str, None]=None,
|
||||
color:Union[int, None]=None,
|
||||
friendlyFire:Union[int, None]=None,
|
||||
collisionRule:Union[None, str]=None,
|
||||
color:Union[None, int]=None,
|
||||
friendlyFire:Union[None, int]=None,
|
||||
mode:int=None,
|
||||
name:Union[str, None]=None,
|
||||
nameTagVisibility:Union[str, None]=None,
|
||||
players:Union[list, None]=None,
|
||||
prefix:Union[str, None]=None,
|
||||
suffix:Union[str, None]=None,
|
||||
name:Union[None, str]=None,
|
||||
nameTagVisibility:Union[None, str]=None,
|
||||
players:Union[None, list]=None,
|
||||
prefix:Union[None, str]=None,
|
||||
suffix:Union[None, str]=None,
|
||||
team:str=None,
|
||||
**kwargs
|
||||
):
|
||||
|
|
|
@ -2,19 +2,20 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSculkVibrationSignal(Packet):
|
||||
__slots__ = ( 'id', 'arrivalTicks', 'destination', 'destinationIdentifier', 'sourcePosition' )
|
||||
|
||||
arrivalTicks : int
|
||||
destination : Union[int, tuple, None]
|
||||
destination : Union[None, int, tuple]
|
||||
destinationIdentifier : str
|
||||
sourcePosition : tuple
|
||||
|
||||
def __init__(self, proto:int,
|
||||
arrivalTicks:int=None,
|
||||
destination:Union[int, tuple, None]=None,
|
||||
destination:Union[None, int, tuple]=None,
|
||||
destinationIdentifier:str=None,
|
||||
sourcePosition:tuple=None,
|
||||
**kwargs
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSelectAdvancementTab(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSetCompression(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSetCooldown(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSetPassengers(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSetSlot(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSetTitleSubtitle(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSetTitleText(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSetTitleTime(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSimulationDistance(Packet):
|
||||
|
|
|
@ -2,13 +2,14 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSoundEffect(Packet):
|
||||
__slots__ = ( 'id', 'parrottedEntityType', 'pitch', 'soundCategory', 'soundId', 'volume', 'x', 'y', 'z' )
|
||||
|
||||
parrottedEntityType : str
|
||||
pitch : Union[int,float]
|
||||
pitch : Union[float,int]
|
||||
soundCategory : int
|
||||
soundId : int
|
||||
volume : float
|
||||
|
@ -18,7 +19,7 @@ class PacketSoundEffect(Packet):
|
|||
|
||||
def __init__(self, proto:int,
|
||||
parrottedEntityType:str=None,
|
||||
pitch:Union[int,float]=None,
|
||||
pitch:Union[float,int]=None,
|
||||
soundCategory:int=None,
|
||||
soundId:int=None,
|
||||
volume:float=None,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSpawnEntity(Packet):
|
||||
|
@ -9,32 +10,32 @@ class PacketSpawnEntity(Packet):
|
|||
|
||||
entityId : int
|
||||
entityUUID : str
|
||||
objectData : Union[int,dict]
|
||||
objectData : Union[dict,int]
|
||||
objectUUID : str
|
||||
pitch : int
|
||||
type : int
|
||||
velocityX : int
|
||||
velocityY : int
|
||||
velocityZ : int
|
||||
x : Union[int,float]
|
||||
y : Union[int,float]
|
||||
x : Union[float,int]
|
||||
y : Union[float,int]
|
||||
yaw : int
|
||||
z : Union[int,float]
|
||||
z : Union[float,int]
|
||||
|
||||
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,
|
||||
velocityX:int=None,
|
||||
velocityY:int=None,
|
||||
velocityZ:int=None,
|
||||
x:Union[int,float]=None,
|
||||
y:Union[int,float]=None,
|
||||
x:Union[float,int]=None,
|
||||
y:Union[float,int]=None,
|
||||
yaw:int=None,
|
||||
z:Union[int,float]=None,
|
||||
z:Union[float,int]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSpawnEntityExperienceOrb(Packet):
|
||||
|
@ -9,16 +10,16 @@ class PacketSpawnEntityExperienceOrb(Packet):
|
|||
|
||||
count : int
|
||||
entityId : int
|
||||
x : Union[int,float]
|
||||
y : Union[int,float]
|
||||
z : Union[int,float]
|
||||
x : Union[float,int]
|
||||
y : Union[float,int]
|
||||
z : Union[float,int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
count:int=None,
|
||||
entityId:int=None,
|
||||
x:Union[int,float]=None,
|
||||
y:Union[int,float]=None,
|
||||
z:Union[int,float]=None,
|
||||
x:Union[float,int]=None,
|
||||
y:Union[float,int]=None,
|
||||
z:Union[float,int]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSpawnEntityLiving(Packet):
|
||||
|
@ -16,10 +17,10 @@ class PacketSpawnEntityLiving(Packet):
|
|||
velocityX : int
|
||||
velocityY : int
|
||||
velocityZ : int
|
||||
x : Union[int,float]
|
||||
y : Union[int,float]
|
||||
x : Union[float,int]
|
||||
y : Union[float,int]
|
||||
yaw : int
|
||||
z : Union[int,float]
|
||||
z : Union[float,int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
entityId:int=None,
|
||||
|
@ -31,10 +32,10 @@ class PacketSpawnEntityLiving(Packet):
|
|||
velocityX:int=None,
|
||||
velocityY:int=None,
|
||||
velocityZ:int=None,
|
||||
x:Union[int,float]=None,
|
||||
y:Union[int,float]=None,
|
||||
x:Union[float,int]=None,
|
||||
y:Union[float,int]=None,
|
||||
yaw:int=None,
|
||||
z:Union[int,float]=None,
|
||||
z:Union[float,int]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSpawnEntityPainting(Packet):
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSpawnEntityWeather(Packet):
|
||||
|
@ -9,16 +10,16 @@ class PacketSpawnEntityWeather(Packet):
|
|||
|
||||
entityId : int
|
||||
type : int
|
||||
x : Union[int,float]
|
||||
y : Union[int,float]
|
||||
z : Union[int,float]
|
||||
x : Union[float,int]
|
||||
y : Union[float,int]
|
||||
z : Union[float,int]
|
||||
|
||||
def __init__(self, proto:int,
|
||||
entityId:int=None,
|
||||
type:int=None,
|
||||
x:Union[int,float]=None,
|
||||
y:Union[int,float]=None,
|
||||
z:Union[int,float]=None,
|
||||
x:Union[float,int]=None,
|
||||
y:Union[float,int]=None,
|
||||
z:Union[float,int]=None,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(proto,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from typing import Tuple, List, Dict, Union, Optional
|
||||
from ....packet import Packet
|
||||
from ....definitions import *
|
||||
from ....types import *
|
||||
|
||||
class PacketSpawnPosition(Packet):
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue