LKBlockSettings - Lemonszz/LKLib GitHub Wiki
LKBlockSettings can be found in party.lemons.lklib.util.registry
LKBlockSettings is essentially the same as FabricBlockSettings
with the addition of a method to set the block's render layer.
This saves you from manually registering the Block's render layer elsewhere.
Usage
You should use LKBlockSettings
just as you would FabricBlockSettings
, but add on the .layer
method to the chain if your block requires a specific layer.
public static final Block WOOL_SOFA = new WoolSofaBlock(new LKBlockSettings(Material.WOOL).layer(RLayer.CUTOUT).hardness(1F))
Available Render Layers are:
RLayer.TRIPWIRE
RLayer.CUTOUT_MIPPED
RLayer.CUTOUT
RLayer.TRANSLUCENT
Your block will automatically be added to the given render layer.