DrawType
Package: com.hypixel.hytale.protocol
public enum DrawTypeDetermines how a block or entity is visually rendered.
Constants
Section titled “Constants”| Constant | Ordinal | Description |
|---|---|---|
Empty | 0 | Not rendered (invisible/air block). |
GizmoCube | 1 | Editor-only gizmo cube for debugging. |
Cube | 2 | Standard cube block with per-face textures. |
Model | 3 | Custom 3D model (non-cube shapes). |
CubeWithModel | 4 | Cube collision with additional model overlay. |
Methods
Section titled “Methods”public int getValue()Returns the integer wire value for this DrawType constant.
public static DrawType fromValue(int value)Returns the DrawType constant for the given wire value. Throws ProtocolException if the value is out of range.
Serialization
Section titled “Serialization”Serialized as a single byte (0—4). The static VALUES array is used for O(1) lookup by ordinal.
Related Types
Section titled “Related Types”
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.