2022-01-08 19:54:43 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.blocks.base;
|
|
|
|
|
2024-03-02 21:23:08 +01:00
|
|
|
import net.minecraft.world.item.Item;
|
|
|
|
import net.minecraft.world.level.ItemLike;
|
|
|
|
import net.minecraft.world.level.block.CropBlock;
|
2022-01-08 19:54:43 +01:00
|
|
|
|
|
|
|
import java.util.function.Supplier;
|
|
|
|
|
2024-03-02 21:23:08 +01:00
|
|
|
public class AACrops extends CropBlock {
|
2022-01-08 19:54:43 +01:00
|
|
|
Supplier<Item> itemSupplier;
|
|
|
|
public AACrops(Properties p_i48421_1_, Supplier<Item> seedSupplier) {
|
|
|
|
super(p_i48421_1_);
|
|
|
|
this.itemSupplier = seedSupplier;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2024-03-02 21:23:08 +01:00
|
|
|
protected ItemLike getBaseSeedId() {
|
2022-01-08 19:54:43 +01:00
|
|
|
return this.itemSupplier.get();
|
|
|
|
}
|
|
|
|
}
|