forked from TAIGA/TAIGA
general code cleanup
This commit is contained in:
@@ -20,6 +20,7 @@ repositories {
|
|||||||
name = "chickenbones"
|
name = "chickenbones"
|
||||||
url = "http://chickenbones.net/maven/"
|
url = "http://chickenbones.net/maven/"
|
||||||
}
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
name 'DVS1 Maven FS'
|
name 'DVS1 Maven FS'
|
||||||
url 'http://dvs1.progwml6.com/files/maven'
|
url 'http://dvs1.progwml6.com/files/maven'
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockAardiumOre extends BasicBlockOre {
|
public class BlockAardiumOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockAardiumOre() {
|
public BlockAardiumOre() {
|
||||||
super("aardium_ore", Material.ROCK, 55.0f, 400.0f, 3 );
|
super("aardium_ore", Material.ROCK, 55.0f, 400.0f, 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockAdamantiteOre extends BasicBlockOre {
|
public class BlockAdamantiteOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockAdamantiteOre() {
|
public BlockAdamantiteOre() {
|
||||||
super("adamantite_ore", Material.ROCK, 80.0f, 1000.0f,4);
|
super("adamantite_ore", Material.ROCK, 80.0f, 1000.0f, 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockArcaniteOre extends BasicBlockOre {
|
public class BlockArcaniteOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockArcaniteOre() {
|
public BlockArcaniteOre() {
|
||||||
super("arcanite_ore", Material.ROCK, 23.0f, 25.0f,2);
|
super("arcanite_ore", Material.ROCK, 23.0f, 25.0f, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockAxiidianOre extends BasicBlockOre {
|
public class BlockAxiidianOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockAxiidianOre() {
|
public BlockAxiidianOre() {
|
||||||
super("axiidian_ore", Material.ROCK, 13.0f, 13.0f,3);
|
super("axiidian_ore", Material.ROCK, 13.0f, 13.0f, 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockBasalt extends BasicBlockOre {
|
public class BlockBasalt extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockBasalt() {
|
public BlockBasalt() {
|
||||||
super("basalt", Material.ROCK, 35.0f, 35.0f,3);
|
super("basalt", Material.ROCK, 35.0f, 35.0f, 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockBismuthOre extends BasicBlockOre {
|
public class BlockBismuthOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockBismuthOre() {
|
public BlockBismuthOre() {
|
||||||
super("bismuth_ore", Material.ROCK, 8.0f, 8.0f,1);
|
super("bismuth_ore", Material.ROCK, 8.0f, 8.0f, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockEterniteOre extends BasicBlockOre {
|
public class BlockEterniteOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockEterniteOre() {
|
public BlockEterniteOre() {
|
||||||
super("eternite_ore", Material.ROCK, 24.0f, 25.0f,3);
|
super("eternite_ore", Material.ROCK, 24.0f, 25.0f, 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,7 +6,7 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockIgnititeOre extends BasicBlockOre {
|
public class BlockIgnititeOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockIgnititeOre() {
|
public BlockIgnititeOre() {
|
||||||
super("ignitite_ore", Material.ROCK, 23.0f, 25.0f,3);
|
super("ignitite_ore", Material.ROCK, 23.0f, 25.0f, 3);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockKarmesineOre extends BasicBlockOre {
|
public class BlockKarmesineOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockKarmesineOre() {
|
public BlockKarmesineOre() {
|
||||||
super("karmesine_ore", Material.ROCK, 13.0f, 15.0f,1);
|
super("karmesine_ore", Material.ROCK, 13.0f, 15.0f, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -15,22 +15,21 @@ import java.util.Random;
|
|||||||
public class BlockLigniteOre extends BasicBlockOre {
|
public class BlockLigniteOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockLigniteOre() {
|
public BlockLigniteOre() {
|
||||||
super("lignite_ore", Material.ROCK, 4.0f, 5.0f,1);
|
super("lignite_ore", Material.ROCK, 4.0f, 5.0f, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getExpDrop(IBlockState state, IBlockAccess world, BlockPos pos, int fortune) {
|
public int getExpDrop(IBlockState state, IBlockAccess world, BlockPos pos, int fortune) {
|
||||||
Random rand = world instanceof World ? ((World) world).rand : new Random();
|
Random rand = world instanceof World ? ((World) world).rand : new Random();
|
||||||
int r = RANDOM.nextInt(11);
|
int r = RANDOM.nextInt(11);
|
||||||
if(r > 7) {
|
if (r > 7) {
|
||||||
return MathHelper.getRandomIntegerInRange(rand, 0, 10) + fortune;
|
return MathHelper.getRandomIntegerInRange(rand, 0, 10) + fortune;
|
||||||
}
|
} else return 0;
|
||||||
else return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int quantityDropped(IBlockState state, int fortune, Random random) {
|
public int quantityDropped(IBlockState state, int fortune, Random random) {
|
||||||
return MathHelper.getRandomIntegerInRange(random, 1, 3 + fortune);
|
return MathHelper.getRandomIntegerInRange(random, 1, 3 + fortune);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockMeteoriteOre extends BasicBlockOre {
|
public class BlockMeteoriteOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockMeteoriteOre() {
|
public BlockMeteoriteOre() {
|
||||||
super("meteorite_ore", Material.ROCK, 60.0f,500.0f,4);
|
super("meteorite_ore", Material.ROCK, 60.0f, 500.0f, 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockMindoriteOre extends BasicBlockOre {
|
public class BlockMindoriteOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockMindoriteOre() {
|
public BlockMindoriteOre() {
|
||||||
super("mindorite_ore", Material.ROCK, 12.0f, 12.0f,2);
|
super("mindorite_ore", Material.ROCK, 12.0f, 12.0f, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockMythrilOre extends BasicBlockOre {
|
public class BlockMythrilOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockMythrilOre() {
|
public BlockMythrilOre() {
|
||||||
super("mythril_ore", Material.ROCK, 25.0f, 25.0f,4);
|
super("mythril_ore", Material.ROCK, 25.0f, 25.0f, 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockPalladiumOre extends BasicBlockOre {
|
public class BlockPalladiumOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockPalladiumOre() {
|
public BlockPalladiumOre() {
|
||||||
super("palladium_ore", Material.ROCK, 25.0f, 25.0f,3);
|
super("palladium_ore", Material.ROCK, 25.0f, 25.0f, 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -7,7 +7,7 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockRottenGround extends BasicBlockGround {
|
public class BlockRottenGround extends BasicBlockGround {
|
||||||
|
|
||||||
public BlockRottenGround() {
|
public BlockRottenGround() {
|
||||||
super("rotten_ground", Material.GROUND, 2.0f, 2.0f,0);
|
super("rotten_ground", Material.GROUND, 2.0f, 2.0f, 0);
|
||||||
this.setSoundType(SoundType.GROUND);
|
this.setSoundType(SoundType.GROUND);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockSlaggoldOre extends BasicBlockOre {
|
public class BlockSlaggoldOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockSlaggoldOre() {
|
public BlockSlaggoldOre() {
|
||||||
super("slaggold_ore", Material.ROCK, 3.0f, 5.0f,1);
|
super("slaggold_ore", Material.ROCK, 3.0f, 5.0f, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockSlagironOre extends BasicBlockOre {
|
public class BlockSlagironOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockSlagironOre() {
|
public BlockSlagironOre() {
|
||||||
super("slagiron_ore", Material.ROCK, 3.0f, 5.0f,1);
|
super("slagiron_ore", Material.ROCK, 3.0f, 5.0f, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockTiberiumOre extends BasicBlockOreGlow {
|
public class BlockTiberiumOre extends BasicBlockOreGlow {
|
||||||
|
|
||||||
public BlockTiberiumOre() {
|
public BlockTiberiumOre() {
|
||||||
super("tiberium_ore", Material.ROCK, 30.0f, 30.0f, 3,0.66f);
|
super("tiberium_ore", Material.ROCK, 30.0f, 30.0f, 3, 0.66f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockVibraniumOre extends BasicBlockOre {
|
public class BlockVibraniumOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockVibraniumOre() {
|
public BlockVibraniumOre() {
|
||||||
super("vibranium_ore", Material.ROCK, 70.0f, 800.0f,4);
|
super("vibranium_ore", Material.ROCK, 70.0f, 800.0f, 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -6,6 +6,6 @@ import net.minecraft.block.material.Material;
|
|||||||
public class BlockYrdeanOre extends BasicBlockOre {
|
public class BlockYrdeanOre extends BasicBlockOre {
|
||||||
|
|
||||||
public BlockYrdeanOre() {
|
public BlockYrdeanOre() {
|
||||||
super("yrdean_ore", Material.ROCK, 13.0f, 15.0f,3);
|
super("yrdean_ore", Material.ROCK, 13.0f, 15.0f, 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -11,6 +11,6 @@ public class BasicBlockGround extends Block {
|
|||||||
setRegistryName(name);
|
setRegistryName(name);
|
||||||
setHardness(hardness);
|
setHardness(hardness);
|
||||||
setResistance(resistance);
|
setResistance(resistance);
|
||||||
setHarvestLevel("shovel",harvest);
|
setHarvestLevel("shovel", harvest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package items;
|
package items;
|
||||||
|
|
||||||
public class ItemIronNugget extends BasicItem{
|
public class ItemIronNugget extends BasicItem {
|
||||||
|
|
||||||
public ItemIronNugget(){
|
public ItemIronNugget() {
|
||||||
super("iron_nugget");
|
super("iron_nugget");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package items;
|
package items;
|
||||||
|
|
||||||
public class ItemKarmesineIngot extends BasicItem{
|
public class ItemKarmesineIngot extends BasicItem {
|
||||||
|
|
||||||
public ItemKarmesineIngot(){
|
public ItemKarmesineIngot() {
|
||||||
super("karmesine_ingot");
|
super("karmesine_ingot");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package items;
|
package items;
|
||||||
|
|
||||||
public class ItemMeteoriteIngot extends BasicItem{
|
public class ItemMeteoriteIngot extends BasicItem {
|
||||||
|
|
||||||
public ItemMeteoriteIngot(){
|
public ItemMeteoriteIngot() {
|
||||||
super("meteorite_ingot");
|
super("meteorite_ingot");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package items;
|
package items;
|
||||||
|
|
||||||
public class ItemMindoriteIngot extends BasicItem{
|
public class ItemMindoriteIngot extends BasicItem {
|
||||||
|
|
||||||
public ItemMindoriteIngot(){
|
public ItemMindoriteIngot() {
|
||||||
super("mindorite_ingot");
|
super("mindorite_ingot");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package items;
|
package items;
|
||||||
|
|
||||||
public class ItemMythrilIngot extends BasicItem{
|
public class ItemMythrilIngot extends BasicItem {
|
||||||
|
|
||||||
public ItemMythrilIngot(){
|
public ItemMythrilIngot() {
|
||||||
super("mythril_ingot");
|
super("mythril_ingot");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package items;
|
package items;
|
||||||
|
|
||||||
public class ItemPalladiumIngot extends BasicItem{
|
public class ItemPalladiumIngot extends BasicItem {
|
||||||
|
|
||||||
public ItemPalladiumIngot(){
|
public ItemPalladiumIngot() {
|
||||||
super("palladium_ingot");
|
super("palladium_ingot");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package items;
|
package items;
|
||||||
|
|
||||||
public class ItemPrometheumIngot extends BasicItem{
|
public class ItemPrometheumIngot extends BasicItem {
|
||||||
|
|
||||||
public ItemPrometheumIngot(){
|
public ItemPrometheumIngot() {
|
||||||
super("prometheum_ingot");
|
super("prometheum_ingot");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package items;
|
package items;
|
||||||
|
|
||||||
public class ItemTiberiumIngot extends BasicItem{
|
public class ItemTiberiumIngot extends BasicItem {
|
||||||
|
|
||||||
public ItemTiberiumIngot(){
|
public ItemTiberiumIngot() {
|
||||||
super("tiberium_ingot");
|
super("tiberium_ingot");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package items;
|
package items;
|
||||||
|
|
||||||
public class ItemVibraniumIngot extends BasicItem{
|
public class ItemVibraniumIngot extends BasicItem {
|
||||||
|
|
||||||
public ItemVibraniumIngot(){
|
public ItemVibraniumIngot() {
|
||||||
super("vibranium_ingot");
|
super("vibranium_ingot");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package items;
|
package items;
|
||||||
|
|
||||||
public class ItemYrdeanIngot extends BasicItem{
|
public class ItemYrdeanIngot extends BasicItem {
|
||||||
|
|
||||||
public ItemYrdeanIngot(){
|
public ItemYrdeanIngot() {
|
||||||
super("yrdean_ingot");
|
super("yrdean_ingot");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -134,7 +134,6 @@ public class ZCompression {
|
|||||||
GameRegistry.registerFuelHandler(new FuelHandler());
|
GameRegistry.registerFuelHandler(new FuelHandler());
|
||||||
new Smelting();
|
new Smelting();
|
||||||
new Crafting();
|
new Crafting();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
@@ -8,11 +8,11 @@ import org.apache.commons.lang3.RandomUtils;
|
|||||||
public class FuelHandler implements IFuelHandler {
|
public class FuelHandler implements IFuelHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getBurnTime(ItemStack fuel){
|
public int getBurnTime(ItemStack fuel) {
|
||||||
if(fuel.getItem().equals(ZCompression.lignite)) {
|
if (fuel.getItem().equals(ZCompression.lignite)) {
|
||||||
return 200*2;
|
return 200 * 2;
|
||||||
}
|
}
|
||||||
if(fuel.getItem().equals(ZCompression.fuel_brick)) {
|
if (fuel.getItem().equals(ZCompression.fuel_brick)) {
|
||||||
return RandomUtils.nextInt(1, 64) * 200;
|
return RandomUtils.nextInt(1, 64) * 200;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -17,7 +17,7 @@ public class Generator {
|
|||||||
public static void generateNetherOre(IBlockState state, Random random, int x, int z, World world, int chance, int minY, int maxY, int minSize, int maxSize) {
|
public static void generateNetherOre(IBlockState state, Random random, int x, int z, World world, int chance, int minY, int maxY, int minSize, int maxSize) {
|
||||||
generateOre(state, Blocks.NETHERRACK.getDefaultState(), null, null, random, x, z, world, chance, minY, maxY, minSize, maxSize);
|
generateOre(state, Blocks.NETHERRACK.getDefaultState(), null, null, random, x, z, world, chance, minY, maxY, minSize, maxSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void generateEndOre(IBlockState state, Random random, int x, int z, World world, int chance, int minY, int maxY, int minSize, int maxSize) {
|
public static void generateEndOre(IBlockState state, Random random, int x, int z, World world, int chance, int minY, int maxY, int minSize, int maxSize) {
|
||||||
generateOre(state, Blocks.END_STONE.getDefaultState(), null, null, random, x, z, world, chance, minY, maxY, minSize, maxSize);
|
generateOre(state, Blocks.END_STONE.getDefaultState(), null, null, random, x, z, world, chance, minY, maxY, minSize, maxSize);
|
||||||
}
|
}
|
||||||
|
@@ -13,10 +13,10 @@ public class StateMatcher implements Predicate<IBlockState> {
|
|||||||
private final Comparable value;
|
private final Comparable value;
|
||||||
|
|
||||||
private StateMatcher(IBlockState state, IProperty property, Comparable value) {
|
private StateMatcher(IBlockState state, IProperty property, Comparable value) {
|
||||||
this.state = state;
|
this.state = state;
|
||||||
this.property = property;
|
this.property = property;
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static StateMatcher forState(IBlockState state, IProperty property, Comparable value) {
|
public static StateMatcher forState(IBlockState state, IProperty property, Comparable value) {
|
||||||
return new StateMatcher(state, property, value);
|
return new StateMatcher(state, property, value);
|
||||||
|
@@ -24,27 +24,25 @@ public class ZWorldGen implements IWorldGenerator {
|
|||||||
Generator.generateOre(ZCompression.slaggoldOre.getDefaultState(), random, x, z, world, 20, 8, 48, 5, 9);
|
Generator.generateOre(ZCompression.slaggoldOre.getDefaultState(), random, x, z, world, 20, 8, 48, 5, 9);
|
||||||
Generator.generateOre(ZCompression.ligniteOre.getDefaultState(), random, x, z, world, 40, 8, 96, 5, 15);
|
Generator.generateOre(ZCompression.ligniteOre.getDefaultState(), random, x, z, world, 40, 8, 96, 5, 15);
|
||||||
Generator.generateOre(Blocks.IRON_ORE.getDefaultState(), random, x, z, world, 40, 8, 96, 2, 14);
|
Generator.generateOre(Blocks.IRON_ORE.getDefaultState(), random, x, z, world, 40, 8, 96, 2, 14);
|
||||||
|
|
||||||
Generator.generateOre(ZCompression.basalt.getDefaultState(), Blocks.LAVA.getDefaultState(), random, x, z, world, 100, 8, 24, 2, 5);
|
Generator.generateOre(ZCompression.basalt.getDefaultState(), Blocks.LAVA.getDefaultState(), random, x, z, world, 100, 8, 24, 2, 5);
|
||||||
Generator.generateOre(ZCompression.rottenGround.getDefaultState(), Blocks.DIRT.getDefaultState(), random, x, z, world, 25, 50, 70, 2, 15);
|
Generator.generateOre(ZCompression.rottenGround.getDefaultState(), Blocks.DIRT.getDefaultState(), random, x, z, world, 25, 50, 70, 2, 15);
|
||||||
|
|
||||||
|
|
||||||
Generator.generateOre(ZCompression.vibraniumOre.getDefaultState(), random, x, z, world, 18, 48, 64, 2, 4);
|
Generator.generateOre(ZCompression.vibraniumOre.getDefaultState(), random, x, z, world, 18, 48, 64, 2, 4);
|
||||||
Generator.generateOre(ZCompression.karmesineOre.getDefaultState(), random, x, z, world, 30, 16, 48, 2, 5);
|
Generator.generateOre(ZCompression.karmesineOre.getDefaultState(), random, x, z, world, 30, 16, 48, 2, 5);
|
||||||
Generator.generateOre(ZCompression.bismuthOre.getDefaultState(), random, x, z, world, 50, 50, 130, 2, 4);
|
Generator.generateOre(ZCompression.bismuthOre.getDefaultState(), random, x, z, world, 50, 50, 130, 2, 4);
|
||||||
Generator.generateOre(ZCompression.mythrilOre.getDefaultState(), random, x, z, world, 18, 16, 32, 2, 4);
|
Generator.generateOre(ZCompression.mythrilOre.getDefaultState(), random, x, z, world, 18, 16, 32, 2, 4);
|
||||||
Generator.generateOre(ZCompression.meteoriteOre.getDefaultState(), random, x, z, world, 12, 0, 32, 2, 10);
|
Generator.generateOre(ZCompression.meteoriteOre.getDefaultState(), random, x, z, world, 12, 0, 32, 2, 10);
|
||||||
Generator.generateOre(ZCompression.mindoriteOre.getDefaultState(), Blocks.STONE.getDefaultState(), BlockStone.VARIANT, BlockStone.EnumType.DIORITE, random, x, z, world, 200, 16, 96, 2, 4);
|
Generator.generateOre(ZCompression.mindoriteOre.getDefaultState(), Blocks.STONE.getDefaultState(), BlockStone.VARIANT, BlockStone.EnumType.DIORITE, random, x, z, world, 200, 16, 96, 2, 4);
|
||||||
Generator.generateOre(ZCompression.arcaniteOre.getDefaultState(), Blocks.STONE.getDefaultState(), BlockStone.VARIANT, BlockStone.EnumType.GRANITE, random, x, z, world, 200, 16, 96, 2, 4);
|
Generator.generateOre(ZCompression.arcaniteOre.getDefaultState(), Blocks.STONE.getDefaultState(), BlockStone.VARIANT, BlockStone.EnumType.GRANITE, random, x, z, world, 200, 16, 96, 2, 4);
|
||||||
Generator.generateOre(ZCompression.eterniteOre.getDefaultState(), Blocks.STONE.getDefaultState(), BlockStone.VARIANT, BlockStone.EnumType.ANDESITE, random, x, z, world, 200, 16, 96, 2, 4);
|
Generator.generateOre(ZCompression.eterniteOre.getDefaultState(), Blocks.STONE.getDefaultState(), BlockStone.VARIANT, BlockStone.EnumType.ANDESITE, random, x, z, world, 200, 16, 96, 2, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void end(Random random, int x, int z, World world) {
|
private void end(Random random, int x, int z, World world) {
|
||||||
|
|
||||||
Generator.generateEndOre(ZCompression.yrdeanOre.getDefaultState(), random, x, z, world, 16, 10, 35, 2, 6);
|
Generator.generateEndOre(ZCompression.yrdeanOre.getDefaultState(), random, x, z, world, 16, 10, 35, 2, 6);
|
||||||
Generator.generateEndOre(ZCompression.ignititeOre.getDefaultState(), random, x, z, world, 16, 20, 45, 2, 6);
|
Generator.generateEndOre(ZCompression.ignititeOre.getDefaultState(), random, x, z, world, 16, 20, 45, 2, 6);
|
||||||
Generator.generateEndOre(ZCompression.axiidianOre.getDefaultState(), random, x, z, world, 16, 30, 55, 2, 6);
|
Generator.generateEndOre(ZCompression.axiidianOre.getDefaultState(), random, x, z, world, 16, 30, 55, 2, 6);
|
||||||
Generator.generateEndOre(ZCompression.aardiumOre.getDefaultState(), random, x, z, world, 16, 40, 65, 2, 6);
|
Generator.generateEndOre(ZCompression.aardiumOre.getDefaultState(), random, x, z, world, 16, 40, 65, 2, 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -8,6 +8,14 @@ import net.minecraft.item.Item;
|
|||||||
|
|
||||||
public class ClientProxy extends ServerProxy {
|
public class ClientProxy extends ServerProxy {
|
||||||
|
|
||||||
|
private static void registerBlockModel(Block block) {
|
||||||
|
registerItemModel(Item.getItemFromBlock(block));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void registerItemModel(Item item) {
|
||||||
|
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerClientStuff() {
|
public void registerClientStuff() {
|
||||||
// Items
|
// Items
|
||||||
@@ -56,15 +64,5 @@ public class ClientProxy extends ServerProxy {
|
|||||||
registerBlockModel(ZCompression.tiberiumOre);
|
registerBlockModel(ZCompression.tiberiumOre);
|
||||||
registerBlockModel(ZCompression.vibraniumOre);
|
registerBlockModel(ZCompression.vibraniumOre);
|
||||||
registerBlockModel(ZCompression.yrdeanOre);
|
registerBlockModel(ZCompression.yrdeanOre);
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void registerBlockModel(Block block) {
|
|
||||||
registerItemModel(Item.getItemFromBlock(block));
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void registerItemModel(Item item) {
|
|
||||||
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user