add visuals
This commit is contained in:
parent
1bf4578ad8
commit
220a8432ef
13 changed files with 81 additions and 93 deletions
|
@ -3,7 +3,6 @@ package common.block.artificial;
|
|||
import common.block.Material;
|
||||
import common.item.CheatTab;
|
||||
import common.properties.Property;
|
||||
import common.util.Clientside;
|
||||
import common.util.Color;
|
||||
|
||||
public class BlockStainedGlassPane extends BlockPane
|
||||
|
@ -41,9 +40,4 @@ public class BlockStainedGlassPane extends BlockPane
|
|||
protected String getPaneEdge() {
|
||||
return this.color.getName() + "_glass_pane";
|
||||
}
|
||||
|
||||
@Clientside
|
||||
public float getShinyness() {
|
||||
return 16.0f;
|
||||
}
|
||||
}
|
||||
|
|
23
common/src/main/java/common/block/natural/BlockCyber.java
Normal file
23
common/src/main/java/common/block/natural/BlockCyber.java
Normal file
|
@ -0,0 +1,23 @@
|
|||
package common.block.natural;
|
||||
|
||||
import common.block.Block;
|
||||
import common.block.Material;
|
||||
import common.block.SoundType;
|
||||
import common.item.CheatTab;
|
||||
import common.util.Clientside;
|
||||
|
||||
public class BlockCyber extends Block {
|
||||
public BlockCyber() {
|
||||
super(Material.SOLID);
|
||||
this.setTab(CheatTab.ROCK);
|
||||
this.setHardness(1.25F);
|
||||
this.setResistance(7.0F);
|
||||
this.setSound(SoundType.STONE);
|
||||
this.setDisplay("CYBER");
|
||||
}
|
||||
|
||||
@Clientside
|
||||
public float getShinyness() {
|
||||
return 0.0f;
|
||||
}
|
||||
}
|
|
@ -159,6 +159,7 @@ public abstract class BlockRegistry {
|
|||
colored_clay[color.ordinal()] = register(color.getName() + "_clay", (new BlockColoredClay(color)).setHardness(1.25F).setResistance(7.0F)
|
||||
.setSound(SoundType.STONE).setDisplay(color.getDisplay() + " gefärbter Ton"));
|
||||
}
|
||||
register("cyber", new BlockCyber());
|
||||
register("sand", (new BlockFalling(Material.LOOSE)).setHardness(0.5F).setSound(SoundType.SAND).setDisplay("Sand").setMiningTool(Equipment.SHOVEL).setTab(CheatTab.NATURE));
|
||||
register("red_sand", (new BlockFalling(Material.LOOSE)).setHardness(0.5F).setSound(SoundType.SAND).setDisplay("Roter Sand").setMiningTool(Equipment.SHOVEL).setTab(CheatTab.NATURE));
|
||||
register("gravel", (new BlockGravel()).setHardness(0.6F).setSound(SoundType.GRAVEL).setDisplay("Kies").setMiningTool(Equipment.SHOVEL));
|
||||
|
|
|
@ -869,6 +869,7 @@ public abstract class Blocks {
|
|||
public static final BlockFurnace titanium_furnace = get("titanium_furnace");
|
||||
public static final BlockItemPipe pipe = get("pipe");
|
||||
public static final BlockSuctionPipe suction_pipe = get("suction_pipe");
|
||||
public static final BlockCyber cyber = get("cyber");
|
||||
|
||||
private static <T extends Block> T get(String id) {
|
||||
T block = (T)BlockRegistry.byNameExact(id);
|
||||
|
|
|
@ -1702,6 +1702,7 @@ public abstract class Items {
|
|||
public static final ItemTool zinc_shears = get("zinc_shears");
|
||||
public static final ItemTool zinc_shovel = get("zinc_shovel");
|
||||
public static final ItemTool zinc_sword = get("zinc_sword");
|
||||
public static final Item cyber = get("cyber");
|
||||
|
||||
private static <T extends Item> T get(String id) {
|
||||
T item = (T)ItemRegistry.byName(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue