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 booleanaffectsTouchMovementSpeed(net.minecraft.world.level.block.Block blockType) static booleanisBlockFree(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 booleanisFullBlock(net.minecraft.world.level.block.state.BlockState state) 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 booleanisSuffocating(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 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)
-