FillerBlockUtil

public class FillerBlockUtil

Class FillerBlockUtil. Provides fillerblockutil functionality for the Hytale server.

java.lang.Object > FillerBlockUtil

Field Summary

boundingBox

final Box boundingBox

Field boundingBox.

blockWidth

final int blockWidth

Field blockWidth.

blockHeight

final int blockHeight

Field blockHeight.

blockDepth

final int blockDepth

Field blockDepth.

blockType

final BlockType blockType

Field blockType.

id

final String id

Field id.

fillerX

final int fillerX

Field fillerX.

fillerY

final int fillerY

Field fillerY.

fillerZ

final int fillerZ

Field fillerZ.

baseBlockId

final int baseBlockId

Field baseBlockId.

baseBlock

final BlockType baseBlock

Field baseBlock.

baseId

final String baseId

Field baseId.

hitbox

final BlockBoundingBoxes hitbox

Field hitbox.

baseFiller

final int baseFiller

Field baseFiller.

baseRotation

final int baseRotation

Field baseRotation.

hitbox2

final BlockBoundingBoxes hitbox2

Field hitbox2.

result

final boolean result

Field result.

worldX

final int worldX

Field worldX.

worldY

final int worldY

Field worldY.

worldZ

final int worldZ

Field worldZ.

fillerBlockId

final int fillerBlockId

Field fillerBlockId.

fillerBlock

final BlockType fillerBlock

Field fillerBlock.

expectedFiller

final int expectedFiller

Field expectedFiller.

blockTypeKey

final String blockTypeKey

Field blockTypeKey.

Method Detail

forEachFillerBlock

static void forEachFillerBlock (@Nonnull final BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, @Nonnull final TriIntConsumer consumer)

Method forEachFillerBlock.

Parameters:
@Nonnull final BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes
@Nonnull final TriIntConsumer consumer

testFillerBlocks

static boolean testFillerBlocks (@Nonnull final BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, @Nonnull final TriIntPredicate predicate)

Method testFillerBlocks.

Parameters:
@Nonnull final BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes
@Nonnull final TriIntPredicate predicate

validateBlock

static ValidationResult validateBlock (final int x, final int y, final int z, final int blockId, final int rotation, final int filler, final A a, final B b, @Nonnull final FillerFetcher fetcher)

Method validateBlock.

Parameters:
final int x
final int y
final int z
final int blockId
final int rotation
final int filler
final A a
final B b
@Nonnull final FillerFetcher fetcher

if

public else if (fetcher.getRotationIndex(a, b, worldX, worldY, worldZ)

Method if.

Parameters:
fetcher.getRotationIndex(a fetcher.getRotationIndex(a
b b
worldX worldX
worldY worldY
worldZ worldZ

pack

static int pack (final int x, final int y, final int z)

Method pack.

Parameters:
final int x
final int y
final int z

unpackX

static int unpackX (final int val)

Method unpackX.

Parameters:
final int val

unpackY

static int unpackY (final int val)

Method unpackY.

Parameters:
final int val

unpackZ

static int unpackZ (final int val)

Method unpackZ.

Parameters:
final int val