mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-24 22:24:35 +00:00
Finish Hex Blocks (Fixes #98). Change block class names (warlordjones).
Fix items not loading
This commit is contained in:
1 parent
fbbe24152c
commit
89ed8e94ac
21 files changed
+104
-96
No files matched your search
+6
-6
@@ -16,26 +16,26 @@ import net.minecraft.world.World;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class BlockMarbleSlab extends BlockCarvable {
|
||||
public class BlockCarvableSlab extends BlockCarvable {
|
||||
|
||||
public Block master;
|
||||
public BlockMarbleSlab bottom;
|
||||
public BlockMarbleSlab top;
|
||||
public BlockCarvableSlab bottom;
|
||||
public BlockCarvableSlab top;
|
||||
public boolean isBottom;
|
||||
|
||||
public BlockMarbleSlab(BlockCarvable marble) {
|
||||
public BlockCarvableSlab(BlockCarvable marble) {
|
||||
opaque = true;
|
||||
|
||||
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);
|
||||
|
||||
master = marble;
|
||||
bottom = this;
|
||||
top = new BlockMarbleSlab(this);
|
||||
top = new BlockCarvableSlab(this);
|
||||
|
||||
isBottom = true;
|
||||
}
|
||||
|
||||
public BlockMarbleSlab(BlockMarbleSlab bottomBlock) {
|
||||
public BlockCarvableSlab(BlockCarvableSlab bottomBlock) {
|
||||
super();
|
||||
setBlockBounds(0.0F, 0.5F, 0.0F, 1.0F, 1.0F, 1.0F);
|
||||
master = bottomBlock.master;
|
||||
+2
-2
@@ -18,12 +18,12 @@ import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.carving.CarvableVariation;
|
||||
import com.cricketcraft.chisel.client.render.BlockMarbleStairsRenderer;
|
||||
|
||||
public class BlockMarbleStairs extends BlockStairs implements ICarvable {
|
||||
public class BlockCarvableStairs extends BlockStairs implements ICarvable {
|
||||
|
||||
CarvableHelper carverHelper;
|
||||
int blockMeta;
|
||||
|
||||
public BlockMarbleStairs(Block block, int meta, CarvableHelper helper) {
|
||||
public BlockCarvableStairs(Block block, int meta, CarvableHelper helper) {
|
||||
super(block, meta);
|
||||
|
||||
this.useNeighborBrightness = true;
|
||||
@@ -9,7 +9,7 @@ import net.minecraft.world.World;
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.init.ChiselBlocks;
|
||||
|
||||
public class BlockMarbleIceStairs extends BlockMarbleStairs {
|
||||
public class BlockMarbleIceStairs extends BlockCarvableStairs {
|
||||
|
||||
public BlockMarbleIceStairs(Block block, int meta, CarvableHelper helper) {
|
||||
super(block, meta, helper);
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.minecraft.world.World;
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.init.ChiselBlocks;
|
||||
|
||||
public class BlockMarblePackedIceStairs extends BlockMarbleStairs {
|
||||
public class BlockMarblePackedIceStairs extends BlockCarvableStairs {
|
||||
|
||||
public BlockMarblePackedIceStairs(Block block, int meta, CarvableHelper helper) {
|
||||
super(block, meta, helper);
|
||||
|
||||
@@ -13,7 +13,7 @@ import cpw.mods.fml.common.registry.GameRegistry;
|
||||
public class BlockMarbleStairsMaker {
|
||||
|
||||
public CarvableHelper carverHelper;
|
||||
BlockMarbleStairs blocks[];
|
||||
BlockCarvableStairs blocks[];
|
||||
|
||||
// int idStart;
|
||||
Block blockBase;
|
||||
@@ -29,10 +29,10 @@ public class BlockMarbleStairsMaker {
|
||||
}
|
||||
|
||||
public void create(BlockMarbleStairsMakerCreator creator, String name) {
|
||||
blocks = new BlockMarbleStairs[carverHelper.variations.size() / 2];
|
||||
blocks = new BlockCarvableStairs[carverHelper.variations.size() / 2];
|
||||
for (int i = 0; i < blocks.length; i++) {
|
||||
String n = name + "." + i;
|
||||
blocks[i] = creator == null ? new BlockMarbleStairs(blockBase, i * 2, carverHelper) : creator.create(blockBase, i * 2, carverHelper);
|
||||
blocks[i] = creator == null ? new BlockCarvableStairs(blockBase, i * 2, carverHelper) : creator.create(blockBase, i * 2, carverHelper);
|
||||
|
||||
blocks[i].setBlockName(n);
|
||||
GameRegistry.registerBlock(blocks[i], ItemCarvable.class, n);
|
||||
|
||||
@@ -6,5 +6,5 @@ import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
|
||||
public interface BlockMarbleStairsMakerCreator {
|
||||
|
||||
public BlockMarbleStairs create(Block block, int meta, CarvableHelper helper);
|
||||
public BlockCarvableStairs create(Block block, int meta, CarvableHelper helper);
|
||||
}
|
||||
Reference in new issue
Block a user