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;
2019-10-20 22:30:49 +02:00
import net.minecraft.block.StairsBlock;
import net.minecraft.block.BlockState;
2018-11-03 13:23:10 +01:00
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;
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-10-20 22:30:49 +02:00
protected BlockStairsNA(String baseName, BlockState modelState) {
2018-11-03 13:23:10 +01:00
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
2019-10-20 22:30:49 +02:00
public boolean isFullCube(BlockState state) {
2018-11-03 13:23:10 +01:00
return false;
}
@Override
2019-10-20 22:30:49 +02:00
public boolean isFullBlock(BlockState state) {
2018-11-03 13:23:10 +01:00
return false;
}
@Override
2019-10-20 22:30:49 +02:00
public boolean isOpaqueCube(BlockState state) {
2018-11-03 13:23:10 +01:00
return false;
}
@Override
2019-10-20 22:30:49 +02:00
public boolean isNormalCube(BlockState state, IBlockAccess world, BlockPos pos) {
2018-11-03 13:23:10 +01:00
return false;
}
}