/**
 * Automatically generated file, changes will be lost.
 */
package org.bukkit.craftbukkit.v1_19_R2.block.impl;

public final class CraftCaveVines extends org.bukkit.craftbukkit.v1_19_R2.block.data.CraftBlockData implements org.bukkit.block.data.type.CaveVines, org.bukkit.block.data.Ageable, org.bukkit.block.data.type.CaveVinesPlant {

    public CraftCaveVines() {
        super();
    }

    public CraftCaveVines(net.minecraft.world.level.block.state.BlockState state) {
        super(state);
    }

    // org.bukkit.craftbukkit.v1_19_R2.block.data.CraftAgeable

    private static final net.minecraft.world.level.block.state.properties.IntegerProperty AGE = getInteger(net.minecraft.world.level.block.CaveVinesBlock.class, "age");

    @Override
    public int getAge() {
        return get(CraftCaveVines.AGE);
    }

    @Override
    public void setAge(int age) {
        set(CraftCaveVines.AGE, age);
    }

    @Override
    public int getMaximumAge() {
        return getMax(CraftCaveVines.AGE);
    }

    // org.bukkit.craftbukkit.v1_19_R2.block.data.type.CraftCaveVinesPlant

    private static final net.minecraft.world.level.block.state.properties.BooleanProperty BERRIES = getBoolean(net.minecraft.world.level.block.CaveVinesBlock.class, "berries");

    @Override
    public boolean isBerries() {
        return get(CraftCaveVines.BERRIES);
    }

    @Override
    public void setBerries(boolean berries) {
        set(CraftCaveVines.BERRIES, berries);
    }
}
