From 06d03266c97e6ef5499350080644b1c686c24064 Mon Sep 17 00:00:00 2001 From: alemidev Date: Wed, 24 Nov 2021 02:51:56 +0100 Subject: [PATCH] added position to definitions but should be a type --- aiocraft/mc/definitions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aiocraft/mc/definitions.py b/aiocraft/mc/definitions.py index 730da3d..674a2c9 100644 --- a/aiocraft/mc/definitions.py +++ b/aiocraft/mc/definitions.py @@ -1,4 +1,11 @@ from enum import Enum +from dataclasses import dataclass + +@dataclass # TODO use the one from types +class Position: + x : float + y : float + z : float class Dimension(Enum): NETHER = -1