Cleaned things
This commit is contained in:
parent
7cf77cdad0
commit
de274b87b5
15 changed files with 25 additions and 87 deletions
|
|
@ -113,11 +113,11 @@ public class BlockBase extends Block {
|
|||
case 12:
|
||||
return Items.Resource.itemID;
|
||||
case 8:
|
||||
return this.BlackSoulstoneDrops(par1, random, par3);
|
||||
return BlackSoulstoneDrops(par1, random, par3);
|
||||
case 9:
|
||||
return this.BlueSoulstoneDrops(par1, random, par3);
|
||||
return BlueSoulstoneDrops(par1, random, par3);
|
||||
case 10:
|
||||
return this.RedSoulstoneDrops(par1, random, par3);
|
||||
return RedSoulstoneDrops(par1, random, par3);
|
||||
default:
|
||||
return blockID;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package mysticores.items;
|
|||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.EnumToolMaterial;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.EnumHelper;
|
||||
|
||||
public class EnumTools
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ public class Config {
|
|||
}
|
||||
}
|
||||
} else if (i < 1 && txt.contains("[") && txt.contains("]")) {
|
||||
boolean remove = txt.startsWith("-");
|
||||
boolean remove = txt.trim().startsWith("-");
|
||||
txt = txt.substring(txt.indexOf("["), txt.indexOf("]"));
|
||||
if (txt.split(";").length == 2) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ public class StructureRuin$1 extends WorldGenerator {
|
|||
}
|
||||
int i2 = random.nextInt(3) + 1;
|
||||
if (i2 == 1) {
|
||||
int j2 = random.nextInt(8) + 5;
|
||||
int i3 = random.nextInt(8) + 5;
|
||||
int l3 = random.nextInt(8) + 5;
|
||||
int k4 = random.nextInt(4) + 3;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ public class StructureRuin extends WorldGenerator {
|
|||
}
|
||||
int i2 = random.nextInt(3) + 1;
|
||||
if (i2 == 1) {
|
||||
int j2 = random.nextInt(8) + 5;
|
||||
int i3 = random.nextInt(8) + 5;
|
||||
int l3 = random.nextInt(8) + 5;
|
||||
int k4 = random.nextInt(4) + 3;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ public class Config {
|
|||
public static int stoneBricksID;
|
||||
public static int reinforcedBricksID;
|
||||
public static int[] rare = new int[keys.length];
|
||||
public static List<Integer> allowed = new ArrayList();
|
||||
public static List<Integer> allowed = new ArrayList<Integer>();
|
||||
|
||||
public static void initialize(File file) {
|
||||
Configuration config = new Configuration(file);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package mysticworld.entity;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import mysticworld.MysticWorld;
|
||||
import net.minecraft.entity.Entity;
|
||||
|
|
@ -17,12 +16,6 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
|
||||
public class EntityChargeAir extends Entity {
|
||||
public EntityPlayer shootingEntity;
|
||||
private boolean inGround = false;
|
||||
private int xTile = -1;
|
||||
private int yTile = -1;
|
||||
private int zTile = -1;
|
||||
private int inTile = 0;
|
||||
private int ticksAlive;
|
||||
private int ticksInAir = 0;
|
||||
private float particleScale = 1.0f;
|
||||
private double powerHeight = 0.75D;
|
||||
|
|
@ -135,7 +128,6 @@ public class EntityChargeAir extends Entity {
|
|||
}
|
||||
|
||||
protected void onImpact(MovingObjectPosition par1MovingObjectPosition) {
|
||||
Random rand = new Random();
|
||||
if (!this.worldObj.isRemote) {
|
||||
this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, "random.explode", 4.0F, (1.0F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F);
|
||||
if (par1MovingObjectPosition.entityHit != null) {
|
||||
|
|
|
|||
|
|
@ -27,12 +27,6 @@ public class EntityChargeEarth extends Entity {
|
|||
public EntityPlayer entityPlayer;
|
||||
public EntityDragon entityDragon;
|
||||
public EntityWither entityWither;
|
||||
private boolean inGround = false;
|
||||
private int xTile = -1;
|
||||
private int yTile = -1;
|
||||
private int zTile = -1;
|
||||
private int inTile = 0;
|
||||
private int ticksAlive;
|
||||
private int ticksInAir = 0;
|
||||
|
||||
public EntityChargeEarth(World par1World) {
|
||||
|
|
|
|||
|
|
@ -17,12 +17,6 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
|
||||
public class EntityChargeEnergy extends Entity {
|
||||
public EntityPlayer shootingEntity;
|
||||
private boolean inGround = false;
|
||||
private int xTile = -1;
|
||||
private int yTile = -1;
|
||||
private int zTile = -1;
|
||||
private int inTile = 0;
|
||||
private int ticksAlive;
|
||||
private int ticksInAir = 0;
|
||||
|
||||
public EntityChargeEnergy(World par1World) {
|
||||
|
|
|
|||
|
|
@ -18,12 +18,6 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
|
||||
public class EntityChargeFire extends Entity {
|
||||
public EntityPlayer shootingEntity;
|
||||
private boolean inGround = false;
|
||||
private int xTile = -1;
|
||||
private int yTile = -1;
|
||||
private int zTile = -1;
|
||||
private int inTile = 0;
|
||||
private int ticksAlive;
|
||||
private int ticksInAir = 0;
|
||||
|
||||
public EntityChargeFire(World par1World) {
|
||||
|
|
|
|||
|
|
@ -17,12 +17,6 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
|
||||
public class EntityChargeWater extends Entity {
|
||||
public EntityPlayer shootingEntity;
|
||||
private boolean inGround = false;
|
||||
private int xTile = -1;
|
||||
private int yTile = -1;
|
||||
private int zTile = -1;
|
||||
private int inTile = 0;
|
||||
private int ticksAlive;
|
||||
private int ticksInAir = 0;
|
||||
|
||||
public EntityChargeWater(World par1World) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import net.minecraft.client.renderer.Tessellator;
|
|||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
|
|
@ -13,7 +12,6 @@ import org.lwjgl.opengl.GL11;
|
|||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
public class RenderStaffPower extends Render {
|
||||
private Item item;
|
||||
private int meta = 0;
|
||||
|
||||
public RenderStaffPower(int par1) {
|
||||
|
|
|
|||
|
|
@ -16,13 +16,8 @@ import cpw.mods.fml.common.IScheduledTickHandler;
|
|||
import cpw.mods.fml.common.TickType;
|
||||
|
||||
public class TickHandler implements IScheduledTickHandler {
|
||||
private EnumSet ticks;
|
||||
public static final Enchantment[] enchantmentsPick = { Enchantment.efficiency, Enchantment.fortune, Enchantment.silkTouch, Enchantment.unbreaking };
|
||||
|
||||
public TickHandler() {
|
||||
this.ticks = EnumSet.of(TickType.PLAYER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLabel() {
|
||||
return "mystic world tick";
|
||||
|
|
@ -35,14 +30,11 @@ public class TickHandler implements IScheduledTickHandler {
|
|||
|
||||
@Override
|
||||
public void tickEnd(EnumSet<TickType> type, Object... tickData) {
|
||||
EntityPlayer player = (EntityPlayer) tickData[0];
|
||||
World world = player.worldObj;
|
||||
InventoryPlayer inventory = player.inventory;
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumSet ticks() {
|
||||
return this.ticks;
|
||||
public EnumSet<TickType> ticks() {
|
||||
return EnumSet.of(TickType.PLAYER);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -22,8 +22,7 @@ public class WorldGenOres implements IWorldGenerator {
|
|||
|
||||
@Override
|
||||
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
|
||||
switch (world.provider.dimensionId) {
|
||||
case 0:
|
||||
if (!world.provider.isHellWorld) {
|
||||
generateSurface(world, random, chunkX * 16, chunkZ * 16);
|
||||
}
|
||||
}
|
||||
|
|
@ -31,67 +30,51 @@ public class WorldGenOres implements IWorldGenerator {
|
|||
private void generateSurface(World world, Random random, int blockX, int blockZ) {
|
||||
for (int i = 0; i < Rarity.ADAMANTINE; i++) {
|
||||
int Xcoord = blockX + random.nextInt(8);
|
||||
int Ycoord = random.nextInt(16);
|
||||
int Ycoord = random.nextInt(13) + 3;
|
||||
int Zcoord = blockZ + random.nextInt(8);
|
||||
if (Ycoord > 2) {
|
||||
adamantine.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
adamantine.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
for (int i = 0; i < Rarity.AGATE; i++) {
|
||||
int Xcoord = blockX + random.nextInt(32);
|
||||
int Ycoord = random.nextInt(60);
|
||||
int Ycoord = random.nextInt(57) + 3;
|
||||
int Zcoord = blockZ + random.nextInt(32);
|
||||
if (Ycoord > 2) {
|
||||
agate.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
agate.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
for (int i = 0; i < Rarity.AMETHYST; i++) {
|
||||
int Xcoord = blockX + random.nextInt(24);
|
||||
int Ycoord = random.nextInt(60);
|
||||
int Ycoord = random.nextInt(57) + 3;
|
||||
int Zcoord = blockZ + random.nextInt(24);
|
||||
if (Ycoord > 2) {
|
||||
amethyst.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
amethyst.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
for (int i = 0; i < Rarity.IRIDIUM; i++) {
|
||||
int Xcoord = blockX + random.nextInt(16);
|
||||
int Ycoord = random.nextInt(12);
|
||||
int Ycoord = random.nextInt(9) + 3;
|
||||
int Zcoord = blockZ + random.nextInt(16);
|
||||
if (Ycoord > 2) {
|
||||
iridium.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
iridium.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
for (int i = 0; i < Rarity.MITHRIL; i++) {
|
||||
int Xcoord = blockX + random.nextInt(16);
|
||||
int Ycoord = random.nextInt(64);
|
||||
int Ycoord = random.nextInt(61) + 3;
|
||||
int Zcoord = blockZ + random.nextInt(16);
|
||||
if (Ycoord > 2) {
|
||||
mithril.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
mithril.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
for (int i = 0; i < Rarity.TOPAZ; i++) {
|
||||
int Xcoord = blockX + random.nextInt(16);
|
||||
int Ycoord = random.nextInt(60);
|
||||
int Ycoord = random.nextInt(57) + 3;
|
||||
int Zcoord = blockZ + random.nextInt(16);
|
||||
if (Ycoord > 2) {
|
||||
topaz.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
topaz.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
for (int i = 0; i < Rarity.TOURMALINE; i++) {
|
||||
int Xcoord = blockX + random.nextInt(32);
|
||||
int Ycoord = random.nextInt(60);
|
||||
int Ycoord = random.nextInt(57) + 3;
|
||||
int Zcoord = blockZ + random.nextInt(32);
|
||||
if (Ycoord > 2) {
|
||||
tourmaline.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
tourmaline.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
for (int i = 0; i < Rarity.VERDITE; i++) {
|
||||
int Xcoord = blockX + random.nextInt(16);
|
||||
int Ycoord = random.nextInt(20) + 80;
|
||||
int Zcoord = blockZ + random.nextInt(16);
|
||||
if (Ycoord > 2) {
|
||||
verdite.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
verdite.generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -9,8 +9,8 @@ import net.minecraft.item.ItemStack;
|
|||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class ChestFiller {
|
||||
public static List<ItemStack> rares = new ArrayList();
|
||||
public static List<ItemStack> valuables = new ArrayList();
|
||||
public static List<ItemStack> rares = new ArrayList<ItemStack>();
|
||||
public static List<ItemStack> valuables = new ArrayList<ItemStack>();
|
||||
|
||||
public static void fillWithRares(TileEntity tile) {
|
||||
fill(tile, rares, 2.5D);
|
||||
|
|
|
|||
Loading…
Reference in a new issue