NaturesAura/src/main/java/de/ellpeck/naturesaura/blocks/BlockStairsNA.java

67 lines
1.7 KiB
Java
Raw Normal View History

2018-11-03 13:23:10 +01:00
package de.ellpeck.naturesaura.blocks;
2018-11-29 17:58:47 +01:00
import de.ellpeck.naturesaura.reg.ICreativeItem;
2018-11-03 13:23:10 +01:00
import de.ellpeck.naturesaura.reg.IModItem;
import de.ellpeck.naturesaura.reg.IModelProvider;
import de.ellpeck.naturesaura.reg.ModRegistry;
import net.minecraft.block.BlockStairs;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
2018-11-29 17:58:47 +01:00
public class BlockStairsNA extends BlockStairs implements IModItem, ICreativeItem, IModelProvider {
2018-11-03 13:23:10 +01:00
private final String baseName;
protected BlockStairsNA(String baseName, IBlockState modelState) {
super(modelState);
this.baseName = baseName;
2018-11-29 17:58:47 +01:00
ModRegistry.add(this);
2018-11-03 13:23:10 +01:00
this.fullBlock = false;
this.lightOpacity = 0;
}
@Override
public String getBaseName() {
return this.baseName;
}
@Override
public void onPreInit(FMLPreInitializationEvent event) {
}
@Override
public void onInit(FMLInitializationEvent event) {
}
@Override
public void onPostInit(FMLPostInitializationEvent event) {
}
@Override
public boolean isFullCube(IBlockState state) {
return false;
}
@Override
public boolean isFullBlock(IBlockState state) {
return false;
}
@Override
public boolean isOpaqueCube(IBlockState state) {
return false;
}
@Override
public boolean isNormalCube(IBlockState state, IBlockAccess world, BlockPos pos) {
return false;
}
}