Skip to content

BuilderToolsPlugin.BuilderState.SmoothSampleData

Package: com.hypixel.hytale.builtin.buildertools

public static class SmoothSampleData

Inner class of BuilderState that accumulates weighted sampling data for the smooth operation. Used with the 3x3x3 smoothing kernel to determine whether a position should become solid or air, and which block type to use.

FieldTypeDefaultDescription
solidStrengthfloat0.0FWeighted sum of solid block contributions from the smoothing kernel.
solidBlockint0Block ID of the most common solid block in the kernel neighborhood.
solidBlockCountint0Count of the most common solid block.
fillerBlockint0Block ID of the most common filler block in the kernel neighborhood.
fillerBlockCountint0Count of the most common filler block.

During a smooth operation, the kernel iterates over a 3x3x3 neighborhood around each position, accumulating weights from SMOOTHING_KERNEL (total weight: 27). If solidStrength exceeds half the total weight, the position is set to the majority solid block; otherwise it is cleared.

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