Package net.notcoded.codelib.util.item
Class BlockUtil
java.lang.Object
net.notcoded.codelib.util.item.BlockUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringblockToText(net.minecraft.world.level.block.Block block) Gets the block name, e.g.static StringblockToText(net.minecraft.world.level.block.state.BlockState blockState) Gets the block name, e.g.
-
Constructor Details
-
BlockUtil
public BlockUtil()
-
-
Method Details
-
blockToText
Gets the block name, e.g. iron_block.- Parameters:
blockState- Block State.- Returns:
- Block name.
-
blockToText
Gets the block name, e.g. iron_block- Parameters:
block- Block.- Returns:
- Block name.
-