Class SFBlockHelpers
java.lang.Object
com.soulfiremc.server.util.SFBlockHelpers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IDBooleanMap<net.minecraft.world.level.block.state.BlockState> static final IDMap<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.phys.shapes.VoxelShape> -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaffectsTouchMovementSpeed(net.minecraft.world.level.block.Block blockType) static booleanisBlockFree(net.minecraft.world.level.block.state.BlockState blockState) static booleanisCollisionShapeEmpty(net.minecraft.world.level.block.state.BlockState blockState) static booleanisCollisionShapeFullBlock(net.minecraft.world.level.block.state.BlockState blockState) static booleanisDiggable(net.minecraft.world.level.block.Block type) static booleanisEmptyBlock(net.minecraft.world.level.block.Block type) static booleanisHurtOnTouchFluid(net.minecraft.world.level.material.Fluid fluidType) static booleanisHurtOnTouchSide(net.minecraft.world.level.block.state.BlockState blockState) static booleanisHurtWhenStoodOn(net.minecraft.world.level.block.state.BlockState blockState) static booleanisSafeBlockToStandOn(net.minecraft.world.level.block.state.BlockState state) static booleanisTopFullBlock(net.minecraft.world.level.block.state.BlockState blockState) static booleanisUsableBlockItem(net.minecraft.world.level.block.Block blockType)
-
Field Details
-
RAW_COLLISION_SHAPES
public static final IDMap<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.phys.shapes.VoxelShape> RAW_COLLISION_SHAPES -
COLLISION_SHAPE_TOP_FACE_FULL
public static final IDBooleanMap<net.minecraft.world.level.block.state.BlockState> COLLISION_SHAPE_TOP_FACE_FULL
-
-
Method Details
-
isBlockFree
public static boolean isBlockFree(net.minecraft.world.level.block.state.BlockState blockState) -
isCollisionShapeEmpty
public static boolean isCollisionShapeEmpty(net.minecraft.world.level.block.state.BlockState blockState) -
isCollisionShapeFullBlock
public static boolean isCollisionShapeFullBlock(net.minecraft.world.level.block.state.BlockState blockState) -
affectsTouchMovementSpeed
public static boolean affectsTouchMovementSpeed(net.minecraft.world.level.block.Block blockType) -
isHurtOnTouchFluid
public static boolean isHurtOnTouchFluid(net.minecraft.world.level.material.Fluid fluidType) -
isHurtOnTouchSide
public static boolean isHurtOnTouchSide(net.minecraft.world.level.block.state.BlockState blockState) -
isHurtWhenStoodOn
public static boolean isHurtWhenStoodOn(net.minecraft.world.level.block.state.BlockState blockState) -
isSafeBlockToStandOn
public static boolean isSafeBlockToStandOn(net.minecraft.world.level.block.state.BlockState state) -
isTopFullBlock
public static boolean isTopFullBlock(net.minecraft.world.level.block.state.BlockState blockState) -
isDiggable
public static boolean isDiggable(net.minecraft.world.level.block.Block type) -
isUsableBlockItem
public static boolean isUsableBlockItem(net.minecraft.world.level.block.Block blockType) -
isEmptyBlock
public static boolean isEmptyBlock(net.minecraft.world.level.block.Block type)
-