Class BlockPlacementHelper

java.lang.Object
com.hypixel.hytale.server.npc.util.BlockPlacementHelper

public class BlockPlacementHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canPlaceBlock(World world, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType placedBlockType, int rotationIndex, boolean allowEmptyMaterials, int x, int y, int z)
     
    static boolean
    canPlaceUnitBlock(World world, com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType placedBlockType, boolean allowEmptyMaterials, int x, int y, int z)
     
    static boolean
    testBlock(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 boolean
    testSupportingBlock(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, int rotation, int filler)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)