[Fix] Charcoal Block uses new Fuel API to prevent Quilt from early generating an Empty Item (#41, QuiltMC/quilted-fabric-api#25)
This commit is contained in:
parent
a340de4adc
commit
e10a5680c5
1 changed files with 7 additions and 3 deletions
|
@ -1,15 +1,19 @@
|
|||
package org.betterx.betterend.blocks;
|
||||
|
||||
import org.betterx.bclib.blocks.BaseBlock;
|
||||
import org.betterx.bclib.interfaces.Fuel;
|
||||
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.fabricmc.fabric.api.registry.FuelRegistry;
|
||||
|
||||
public class CharcoalBlock extends BaseBlock {
|
||||
public class CharcoalBlock extends BaseBlock implements Fuel {
|
||||
public CharcoalBlock() {
|
||||
super(FabricBlockSettings.copyOf(Blocks.COAL_BLOCK));
|
||||
FuelRegistry.INSTANCE.add(this, 16000);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getFuelTime() {
|
||||
return 16000;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue