package dev.latvian.mods.kubejs.fluid;

import dev.latvian.mods.kubejs.generator.KubeAssetGenerator;
import dev.latvian.mods.kubejs.item.ItemBuilder;
import net.minecraft.world.item.BucketItem;

public class FluidBucketItemBuilder extends ItemBuilder {
	public final FluidBuilder fluidBuilder;

	public FluidBucketItemBuilder(FluidBuilder b) {
		super(b.newID("", "_bucket"));
		fluidBuilder = b;
		maxStackSize(1);
	}

	@Override
	public BucketItem createObject() {
		return new BucketItem(fluidBuilder.get(), createItemProperties());
	}

	@Override
	public void generateAssets(KubeAssetGenerator generator) {
		if (hasCustomModel()) {
			super.generateAssets(generator);
		}
	}
}
