BlockType
Package: com.hypixel.hytale.protocol
public class BlockTypeComprehensive block type definition containing all rendering, physics, gameplay, and metadata properties for a block in the game world.
Fields
Section titled “Fields”| Type | Name | Nullable | Description |
|---|---|---|---|
String | item | Yes | |
String | name | Yes | |
boolean | unknown | No | |
| DrawType | drawType | No | Default: DrawType.Empty. |
| BlockMaterial | material | No | Default: BlockMaterial.Empty. |
| Opacity | opacity | No | Default: Opacity.Solid. |
ShaderType[] | shaderEffect | Yes | |
int | hitbox | No | |
int | interactionHitbox | No | |
String | model | Yes | |
ModelTexture[] | modelTexture | Yes | |
float | modelScale | No | |
String | modelAnimation | Yes | |
boolean | looping | No | |
int | maxSupportDistance | No | |
| BlockSupportsRequiredForType | blockSupportsRequiredFor | No | Default: BlockSupportsRequiredForType.Any. |
Map``<``BlockNeighbor, RequiredBlockFaceSupport[]``> | support | Yes | |
Map``<``BlockNeighbor, BlockFaceSupport[]``> | supporting | Yes | |
boolean | requiresAlphaBlending | No | |
BlockTextures[] | cubeTextures | Yes | |
String | cubeSideMaskTexture | Yes | |
| ShadingMode | cubeShadingMode | No | Default: ShadingMode.Standard. |
| RandomRotation | randomRotation | No | Default: RandomRotation.None. |
| VariantRotation | variantRotation | No | Default: VariantRotation.None. |
| Rotation | rotationYawPlacementOffset | No | Default: Rotation.None. |
int | blockSoundSetIndex | No | |
int | ambientSoundEventIndex | No | |
ModelParticle[] | particles | Yes | |
String | blockParticleSetId | Yes | |
String | blockBreakingDecalId | Yes | |
| Color | particleColor | Yes | |
| ColorLight | light | Yes | |
| Tint | tint | Yes | |
| Tint | biomeTint | Yes | |
int | group | No | |
String | transitionTexture | Yes | |
int``[] | transitionToGroups | Yes | |
| BlockMovementSettings | movementSettings | Yes | |
| BlockFlags | flags | Yes | |
String | interactionHint | Yes | |
| BlockGathering | gathering | Yes | |
| BlockPlacementSettings | placementSettings | Yes | |
| ModelDisplay | display | Yes | |
| RailConfig | rail | Yes | |
boolean | ignoreSupportWhenPlaced | No | |
Map<InteractionType, ``Integer``> | interactions | Yes | |
Map<``String``, ``Integer``> | states | Yes | |
int | transitionToTag | No | |
int``[] | tagIndexes | Yes | |
| Bench | bench | Yes | |
| ConnectedBlockRuleSet | connectedBlockRuleSet | Yes |
Serialization Layout
Section titled “Serialization Layout”| Constant | Value |
|---|---|
NULLABLE_BIT_FIELD_SIZE | 4 |
FIXED_BLOCK_SIZE | 164 |
VARIABLE_FIELD_COUNT | 24 |
VARIABLE_BLOCK_START | 260 |
MAX_SIZE | 1,677,721,600 |
Binary layout: 4 null-bit bytes + 164 bytes of fixed fields + 24 variable-length fields (4-byte offset slots). All multi-byte primitives use little-endian encoding.
Methods
Section titled “Methods”@Nonnullpublic static BlockType deserialize(@Nonnull ByteBuf buf, int offset)Deserializes a BlockType from the given buffer at the specified offset.
public static int computeBytesConsumed(@Nonnull ByteBuf buf, int offset)Returns the total number of bytes consumed by this BlockType starting at the given offset.
public void serialize(@Nonnull ByteBuf buf)Serializes this BlockType into the given buffer.
public int computeSize()Returns the serialized size in bytes.
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.