2018-11-03 13:23:10 +01:00
|
|
|
package de.ellpeck.naturesaura.blocks;
|
|
|
|
|
|
|
|
import de.ellpeck.naturesaura.reg.IModItem;
|
|
|
|
import de.ellpeck.naturesaura.reg.IModelProvider;
|
|
|
|
import de.ellpeck.naturesaura.reg.ModRegistry;
|
2019-11-04 19:08:49 +01:00
|
|
|
import net.minecraft.block.Block;
|
2019-10-20 22:30:49 +02:00
|
|
|
import net.minecraft.block.BlockState;
|
2019-11-04 19:08:49 +01:00
|
|
|
import net.minecraft.block.StairsBlock;
|
|
|
|
|
|
|
|
import java.util.function.Supplier;
|
2018-11-03 13:23:10 +01:00
|
|
|
|
2019-10-20 22:30:49 +02:00
|
|
|
public class BlockStairsNA extends StairsBlock implements IModItem, ICreativeItem, IModelProvider {
|
2018-11-03 13:23:10 +01:00
|
|
|
|
|
|
|
private final String baseName;
|
|
|
|
|
2019-11-04 19:08:49 +01:00
|
|
|
public BlockStairsNA(String baseName, Supplier<BlockState> modelState, Block.Properties properties) {
|
|
|
|
super(modelState, properties.variableOpacity());
|
2018-11-03 13:23:10 +01:00
|
|
|
this.baseName = baseName;
|
2018-11-29 17:58:47 +01:00
|
|
|
ModRegistry.add(this);
|
2018-11-03 13:23:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getBaseName() {
|
|
|
|
return this.baseName;
|
|
|
|
}
|
|
|
|
}
|