BlockPlacementHelper

public class BlockPlacementHelper

Class BlockPlacementHelper. Provides blockplacementhelper functionality for the Hytale server.

java.lang.Object > BlockPlacementHelper

Field Summary

chunk

final WorldChunk chunk

Field chunk.

filler

final int filler

Field filler.

rotation

final int rotation

Field rotation.

targetHitbox

final Box targetHitbox

Field targetHitbox.

Method Detail

canPlaceUnitBlock

static boolean canPlaceUnitBlock (@Nonnull final World world, final BlockType placedBlockType, final boolean allowEmptyMaterials, final int x, final int y, final int z)

Method canPlaceUnitBlock.

Parameters:
@Nonnull final World world
final BlockType placedBlockType
final boolean allowEmptyMaterials
final int x
final int y
final int z

canPlaceBlock

static boolean canPlaceBlock (@Nonnull final World world, @Nonnull final BlockType placedBlockType, final int rotationIndex, final boolean allowEmptyMaterials, final int x, final int y, final int z)

Method canPlaceBlock.

Parameters:
@Nonnull final World world
@Nonnull final BlockType placedBlockType
final int rotationIndex
final boolean allowEmptyMaterials
final int x
final int y
final int z

testBlock

public > testBlock (placedBlockType, blockType, allowEmptyMaterials)

Method testBlock.

Parameters:
placedBlockType placedBlockType
blockType blockType
allowEmptyMaterials allowEmptyMaterials