Class BlockPlacementHelper
java.lang.Object
com.hypixel.hytale.server.npc.util.BlockPlacementHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanPlaceBlock(World world, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType placedBlockType, int rotationIndex, boolean allowEmptyMaterials, int x, int y, int z) static booleancanPlaceUnitBlock(World world, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType placedBlockType, boolean allowEmptyMaterials, int x, int y, int z) static booleantestBlock(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType placedBlockType, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, boolean allowEmptyMaterials) static booleantestSupportingBlock(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int rotation, int filler)
-
Constructor Details
-
BlockPlacementHelper
public BlockPlacementHelper()
-
-
Method Details
-
canPlaceUnitBlock
public static boolean canPlaceUnitBlock(@Nonnull World world, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType placedBlockType, boolean allowEmptyMaterials, int x, int y, int z) -
canPlaceBlock
public static boolean canPlaceBlock(@Nonnull World world, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType placedBlockType, int rotationIndex, boolean allowEmptyMaterials, int x, int y, int z) -
testBlock
public static boolean testBlock(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType placedBlockType, @Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, boolean allowEmptyMaterials) -
testSupportingBlock
public static boolean testSupportingBlock(@Nonnull com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int rotation, int filler)
-