Package com.soulfiremc.server.util
Class SFBlockHelpers
java.lang.Object
com.soulfiremc.server.util.SFBlockHelpers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic IDBooleanMap
<net.minecraft.world.level.block.state.BlockState> static IDBooleanMap
<net.minecraft.world.level.block.state.BlockState> static IDBooleanMap
<net.minecraft.world.level.block.state.BlockState> static IDBooleanMap
<net.minecraft.world.level.block.state.BlockState> static IDMap
<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.phys.shapes.VoxelShape> -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
affectsTouchMovementSpeed
(net.minecraft.world.level.block.Block blockType) static boolean
isBlockFree
(net.minecraft.world.level.block.state.BlockState blockState) static boolean
isDiggable
(net.minecraft.world.level.block.Block type) static boolean
isEmptyBlock
(net.minecraft.world.level.block.Block type) static boolean
isFullBlock
(net.minecraft.world.level.block.state.BlockState state) static boolean
isHurtOnTouchFluid
(net.minecraft.world.level.material.Fluid fluidType) static boolean
isHurtOnTouchSide
(net.minecraft.world.level.block.state.BlockState blockState) static boolean
isHurtWhenStoodOn
(net.minecraft.world.level.block.state.BlockState blockState) static boolean
isSafeBlockToStandOn
(net.minecraft.world.level.block.state.BlockState state) static boolean
isSuffocating
(net.minecraft.world.level.block.state.BlockState state) static boolean
isTopFullBlock
(net.minecraft.world.level.block.state.BlockState blockState) static boolean
isUsableBlockItem
(net.minecraft.world.level.block.Block blockType)
-
Field Details
-
RAW_COLLISION_SHAPES
public static IDMap<net.minecraft.world.level.block.state.BlockState,net.minecraft.world.phys.shapes.VoxelShape> RAW_COLLISION_SHAPES -
COLLISION_SHAPE_EMPTY
-
COLLISION_SHAPE_NOT_EMPTY
public static IDBooleanMap<net.minecraft.world.level.block.state.BlockState> COLLISION_SHAPE_NOT_EMPTY -
COLLISION_SHAPE_FULL_BLOCK
public static IDBooleanMap<net.minecraft.world.level.block.state.BlockState> COLLISION_SHAPE_FULL_BLOCK -
COLLISION_SHAPE_TOP_FACE_FULL
public static IDBooleanMap<net.minecraft.world.level.block.state.BlockState> COLLISION_SHAPE_TOP_FACE_FULL
-
-
Method Details
-
isFullBlock
public static boolean isFullBlock(net.minecraft.world.level.block.state.BlockState state) -
isBlockFree
public static boolean isBlockFree(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) -
isSuffocating
public static boolean isSuffocating(net.minecraft.world.level.block.state.BlockState state)
-