package net.minestom.vanilla.blocks.behaviours.oxidisable;

import net.minestom.server.instance.block.Block;
import net.minestom.vanilla.blocks.VanillaBlocks;
import org.jetbrains.annotations.NotNull;

public abstract class OxidatedBlockBehaviour extends WaxableBlockBehaviour implements OxygenSensitive {

    private final int oxidisedLevel;

    public OxidatedBlockBehaviour(VanillaBlocks.@NotNull BlockContext context, Block waxed, int oxidisedLevel) {
        super(context, waxed);
        this.oxidisedLevel = oxidisedLevel;
    }

    @Override
    public int oxidisedLevel() {
        return oxidisedLevel;
    }
}