Skip to content

BlockType

Package: com.hypixel.hytale.protocol

public class BlockType

Comprehensive block type definition containing all rendering, physics, gameplay, and metadata properties for a block in the game world.

TypeNameNullableDescription
StringitemYes
StringnameYes
booleanunknownNo
DrawTypedrawTypeNoDefault: DrawType.Empty.
BlockMaterialmaterialNoDefault: BlockMaterial.Empty.
OpacityopacityNoDefault: Opacity.Solid.
ShaderType[]shaderEffectYes
inthitboxNo
intinteractionHitboxNo
StringmodelYes
ModelTexture[]modelTextureYes
floatmodelScaleNo
StringmodelAnimationYes
booleanloopingNo
intmaxSupportDistanceNo
BlockSupportsRequiredForTypeblockSupportsRequiredForNoDefault: BlockSupportsRequiredForType.Any.
Map``<``BlockNeighbor, RequiredBlockFaceSupport[]``>supportYes
Map``<``BlockNeighbor, BlockFaceSupport[]``>supportingYes
booleanrequiresAlphaBlendingNo
BlockTextures[]cubeTexturesYes
StringcubeSideMaskTextureYes
ShadingModecubeShadingModeNoDefault: ShadingMode.Standard.
RandomRotationrandomRotationNoDefault: RandomRotation.None.
VariantRotationvariantRotationNoDefault: VariantRotation.None.
RotationrotationYawPlacementOffsetNoDefault: Rotation.None.
intblockSoundSetIndexNo
intambientSoundEventIndexNo
ModelParticle[]particlesYes
StringblockParticleSetIdYes
StringblockBreakingDecalIdYes
ColorparticleColorYes
ColorLightlightYes
TinttintYes
TintbiomeTintYes
intgroupNo
StringtransitionTextureYes
int``[]transitionToGroupsYes
BlockMovementSettingsmovementSettingsYes
BlockFlagsflagsYes
StringinteractionHintYes
BlockGatheringgatheringYes
BlockPlacementSettingsplacementSettingsYes
ModelDisplaydisplayYes
RailConfigrailYes
booleanignoreSupportWhenPlacedNo
Map<InteractionType, ``Integer``>interactionsYes
Map<``String``, ``Integer``>statesYes
inttransitionToTagNo
int``[]tagIndexesYes
BenchbenchYes
ConnectedBlockRuleSetconnectedBlockRuleSetYes
ConstantValue
NULLABLE_BIT_FIELD_SIZE4
FIXED_BLOCK_SIZE164
VARIABLE_FIELD_COUNT24
VARIABLE_BLOCK_START260
MAX_SIZE1,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.

@Nonnull
public 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.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.