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.RotatedVariantBoxesblockBoundingBoxes@Nonnull final TriIntConsumerconsumer
testFillerBlocks
static
boolean
testFillerBlocks
(@Nonnull final BlockBoundingBoxes.RotatedVariantBoxes blockBoundingBoxes, @Nonnull final TriIntPredicate predicate)
Method testFillerBlocks.
- Parameters:
@Nonnull final BlockBoundingBoxes.RotatedVariantBoxesblockBoundingBoxes@Nonnull final TriIntPredicatepredicate
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.
if
public
else
if
(fetcher.getRotationIndex(a, b, worldX, worldY, worldZ)
Method if.
- Parameters:
fetcher.getRotationIndex(afetcher.getRotationIndex(abbworldXworldXworldYworldYworldZworldZ
pack
static
int
pack
(final int x, final int y, final int z)
Method pack.
- Parameters:
final intxfinal intyfinal intz
unpackX
static
int
unpackX
(final int val)
Method unpackX.
- Parameters:
final intval
unpackY
static
int
unpackY
(final int val)
Method unpackY.
- Parameters:
final intval
unpackZ
static
int
unpackZ
(final int val)
Method unpackZ.
- Parameters:
final intval