@@ -34,18 +34,18 @@ class BlockMesh:
3434 def __init__ (
3535 self ,
3636 transparency : BlockMeshTransparency ,
37- textures : list [str ],
37+ textures : collections . abc . Sequence [str ],
3838 parts : tuple [
39- BlockMeshPart | None ,
40- BlockMeshPart | None ,
41- BlockMeshPart | None ,
42- BlockMeshPart | None ,
43- BlockMeshPart | None ,
44- BlockMeshPart | None ,
45- BlockMeshPart | None ,
39+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
40+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
41+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
42+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
43+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
44+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
45+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
4646 ],
4747 ) -> None : ...
48- def rotate (self , rotx : int , roty : int ) -> BlockMesh :
48+ def rotate (self , rotx : typing . SupportsInt , roty : typing . SupportsInt ) -> BlockMesh :
4949 """
5050 Rotate the mesh in the x and y axis. Accepted values are -3 to 3 which correspond to 90 degree rotations.
5151 """
@@ -54,13 +54,13 @@ class BlockMesh:
5454 def parts (
5555 self ,
5656 ) -> tuple [
57- BlockMeshPart | None ,
58- BlockMeshPart | None ,
59- BlockMeshPart | None ,
60- BlockMeshPart | None ,
61- BlockMeshPart | None ,
62- BlockMeshPart | None ,
63- BlockMeshPart | None ,
57+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
58+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
59+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
60+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
61+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
62+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
63+ amulet . resource_pack . mesh . block . BlockMeshPart | None ,
6464 ]:
6565 """
6666 The mesh parts that make up this mesh. The index corresponds to the value of BlockMeshCullDirection.
@@ -129,7 +129,7 @@ class BlockMeshCullDirection:
129129 def __gt__ (self , other : typing .Any ) -> bool : ...
130130 def __hash__ (self ) -> int : ...
131131 def __index__ (self ) -> int : ...
132- def __init__ (self , value : int ) -> None : ...
132+ def __init__ (self , value : typing . SupportsInt ) -> None : ...
133133 def __int__ (self ) -> int : ...
134134 def __invert__ (self ) -> typing .Any : ...
135135 def __le__ (self , other : typing .Any ) -> bool : ...
@@ -152,7 +152,11 @@ class BlockMeshPart:
152152 A part of a block mesh for one of the culling directions.
153153 """
154154
155- def __init__ (self , verts : list [Vertex ], triangles : list [Triangle ]) -> None : ...
155+ def __init__ (
156+ self ,
157+ verts : collections .abc .Sequence [Vertex ],
158+ triangles : collections .abc .Sequence [Triangle ],
159+ ) -> None : ...
156160 @property
157161 def triangles (self ) -> list [Triangle ]:
158162 """
@@ -195,7 +199,7 @@ class BlockMeshTransparency:
195199 def __gt__ (self , other : typing .Any ) -> bool : ...
196200 def __hash__ (self ) -> int : ...
197201 def __index__ (self ) -> int : ...
198- def __init__ (self , value : int ) -> None : ...
202+ def __init__ (self , value : typing . SupportsInt ) -> None : ...
199203 def __int__ (self ) -> int : ...
200204 def __le__ (self , other : typing .Any ) -> bool : ...
201205 def __lt__ (self , other : typing .Any ) -> bool : ...
@@ -212,7 +216,7 @@ class FloatVec2:
212216 A 2D floating point vector
213217 """
214218
215- def __init__ (self , x : float , y : float ) -> None : ...
219+ def __init__ (self , x : typing . SupportsFloat , y : typing . SupportsFloat ) -> None : ...
216220 @property
217221 def x (self ) -> float : ...
218222 @property
@@ -223,7 +227,9 @@ class FloatVec3:
223227 A 3D floating point vector
224228 """
225229
226- def __init__ (self , x : float , y : float , z : float ) -> None : ...
230+ def __init__ (
231+ self , x : typing .SupportsFloat , y : typing .SupportsFloat , z : typing .SupportsFloat
232+ ) -> None : ...
227233 @property
228234 def x (self ) -> float : ...
229235 @property
@@ -238,10 +244,10 @@ class Triangle:
238244
239245 def __init__ (
240246 self ,
241- vert_index_a : int ,
242- vert_index_b : int ,
243- vert_index_c : int ,
244- texture_index : int ,
247+ vert_index_a : typing . SupportsInt ,
248+ vert_index_b : typing . SupportsInt ,
249+ vert_index_c : typing . SupportsInt ,
250+ texture_index : typing . SupportsInt ,
245251 ) -> None : ...
246252 @property
247253 def texture_index (self ) -> int : ...
0 commit comments