mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-10 09:10:24 +02:00
21 lines
539 B
Java
21 lines
539 B
Java
package de.ellpeck.actuallyadditions.mod.blocks.base;
|
|
|
|
import net.minecraft.block.CropsBlock;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.util.IItemProvider;
|
|
|
|
import java.util.function.Supplier;
|
|
|
|
public class AACrops extends CropsBlock {
|
|
Supplier<Item> itemSupplier;
|
|
public AACrops(Properties p_i48421_1_, Supplier<Item> seedSupplier) {
|
|
super(p_i48421_1_);
|
|
this.itemSupplier = seedSupplier;
|
|
}
|
|
|
|
@Override
|
|
protected IItemProvider getBaseSeedId() {
|
|
return this.itemSupplier.get();
|
|
}
|
|
}
|