mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-24 06:50:46 +00:00
ough
This commit is contained in:
parent
f0fe4119f5
commit
1cf051a8b1
@ -1,6 +1,6 @@
|
|||||||
mod_version=1.0.27
|
mod_version=1.0.27
|
||||||
# Empty build number makes a release type
|
# Empty build number makes a release type
|
||||||
mod_build_number=4550
|
mod_build_number=4551
|
||||||
|
|
||||||
credits=HbMinecraft, rodolphito (explosion algorithms), grangerave (explosion algorithms),\
|
credits=HbMinecraft, rodolphito (explosion algorithms), grangerave (explosion algorithms),\
|
||||||
\ Hoboy (textures, models), Doctor17 (russian localization), Drillgon200 (effects, models, porting),\
|
\ Hoboy (textures, models), Doctor17 (russian localization), Drillgon200 (effects, models, porting),\
|
||||||
|
|||||||
@ -14,7 +14,6 @@ import com.hbm.items.ModItems;
|
|||||||
import com.hbm.lib.RefStrings;
|
import com.hbm.lib.RefStrings;
|
||||||
import com.hbm.render.block.RenderBlockMultipass;
|
import com.hbm.render.block.RenderBlockMultipass;
|
||||||
import com.hbm.util.ColorUtil;
|
import com.hbm.util.ColorUtil;
|
||||||
import com.hbm.util.I18nUtil;
|
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
@ -35,6 +34,7 @@ import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
|
|||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
|
import net.minecraft.util.StatCollector;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
@ -281,7 +281,7 @@ public class BlockMotherOfAllOres extends BlockContainer implements IBlockMultiP
|
|||||||
if(name.getItemDamage() == OreDictionary.WILDCARD_VALUE) {
|
if(name.getItemDamage() == OreDictionary.WILDCARD_VALUE) {
|
||||||
name.setItemDamage(0);
|
name.setItemDamage(0);
|
||||||
}
|
}
|
||||||
return I18nUtil.resolveKey(this.getUnlocalizedName() + ".name", name.getItem().getItemStackDisplayName(name));
|
return StatCollector.translateToLocalFormatted(this.getUnlocalizedName() + ".name", name.getItem().getItemStackDisplayName(name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,8 @@ public class Watz extends BlockDummyable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||||
return super.standardOpenBehavior(world, x, y, z, player, 0);
|
//return super.standardOpenBehavior(world, x, y, z, player, 0);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -3,7 +3,7 @@ package com.hbm.lib;
|
|||||||
public class RefStrings {
|
public class RefStrings {
|
||||||
public static final String MODID = "hbm";
|
public static final String MODID = "hbm";
|
||||||
public static final String NAME = "Hbm's Nuclear Tech Mod";
|
public static final String NAME = "Hbm's Nuclear Tech Mod";
|
||||||
public static final String VERSION = "1.0.27 BETA (4550)";
|
public static final String VERSION = "1.0.27 BETA (4551)";
|
||||||
//HBM's Beta Naming Convention:
|
//HBM's Beta Naming Convention:
|
||||||
//V T (X)
|
//V T (X)
|
||||||
//V -> next release version
|
//V -> next release version
|
||||||
|
|||||||
@ -45,10 +45,12 @@ public class StatHelper {
|
|||||||
StatList.objectMineStats.clear();
|
StatList.objectMineStats.clear();
|
||||||
StatList.itemStats.clear();
|
StatList.itemStats.clear();
|
||||||
|
|
||||||
initCraftItemStats();
|
try {
|
||||||
initBlockMineStats();
|
initCraftItemStats();
|
||||||
initItemUseStats();
|
initBlockMineStats();
|
||||||
initItemBreakStats();
|
initItemUseStats();
|
||||||
|
initItemBreakStats();
|
||||||
|
} catch(Exception ex) { } // just to be sure
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -59,42 +61,15 @@ public class StatHelper {
|
|||||||
* 2) The system just will never work with items that don't have crafting table recipes
|
* 2) The system just will never work with items that don't have crafting table recipes
|
||||||
*/
|
*/
|
||||||
private static void initCraftItemStats() {
|
private static void initCraftItemStats() {
|
||||||
/*HashSet hashset = new HashSet();
|
|
||||||
Iterator iterator = CraftingManager.getInstance().getRecipeList().iterator();
|
|
||||||
|
|
||||||
while(iterator.hasNext()) {
|
|
||||||
IRecipe irecipe = (IRecipe) iterator.next();
|
|
||||||
|
|
||||||
if(irecipe.getRecipeOutput() != null) {
|
|
||||||
hashset.add(irecipe.getRecipeOutput().getItem());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
iterator = FurnaceRecipes.smelting().getSmeltingList().values().iterator();
|
|
||||||
|
|
||||||
while(iterator.hasNext()) {
|
|
||||||
ItemStack itemstack = (ItemStack) iterator.next();
|
|
||||||
hashset.add(itemstack.getItem());
|
|
||||||
}
|
|
||||||
|
|
||||||
iterator = hashset.iterator();
|
|
||||||
|
|
||||||
while(iterator.hasNext()) {
|
|
||||||
Item item = (Item) iterator.next();
|
|
||||||
|
|
||||||
if(item != null) {
|
|
||||||
int i = Item.getIdFromItem(item);
|
|
||||||
StatList.objectCraftStats[i] = registerStat(new StatCrafting("stat.craftItem." + i, new ChatComponentTranslation("stat.craftItem", new Object[] { (new ItemStack(item)).func_151000_E() }), item));
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
Iterator iterator = Item.itemRegistry.iterator();
|
Iterator iterator = Item.itemRegistry.iterator();
|
||||||
while(iterator.hasNext()) {
|
while(iterator.hasNext()) {
|
||||||
Item item = (Item) iterator.next();
|
Item item = (Item) iterator.next();
|
||||||
|
|
||||||
if(item != null) {
|
if(item != null) {
|
||||||
int i = Item.getIdFromItem(item);
|
int i = Item.getIdFromItem(item);
|
||||||
StatList.objectCraftStats[i] = registerStat(new StatCrafting("stat.craftItem." + i, new ChatComponentTranslation("stat.craftItem", new Object[] { (new ItemStack(item)).func_151000_E() }), item));
|
try {
|
||||||
|
StatList.objectCraftStats[i] = registerStat(new StatCrafting("stat.craftItem." + i, new ChatComponentTranslation("stat.craftItem", new Object[] { (new ItemStack(item)).func_151000_E() }), item));
|
||||||
|
} catch(Exception ex) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,11 +84,12 @@ public class StatHelper {
|
|||||||
|
|
||||||
if(Item.getItemFromBlock(block) != null) {
|
if(Item.getItemFromBlock(block) != null) {
|
||||||
int i = Block.getIdFromBlock(block);
|
int i = Block.getIdFromBlock(block);
|
||||||
|
try {
|
||||||
if(block.getEnableStats()) {
|
if(block.getEnableStats()) {
|
||||||
StatList.mineBlockStatArray[i] = registerStat(new StatCrafting("stat.mineBlock." + i, new ChatComponentTranslation("stat.mineBlock", new Object[] { (new ItemStack(block)).func_151000_E() }), Item.getItemFromBlock(block)));
|
StatList.mineBlockStatArray[i] = registerStat(new StatCrafting("stat.mineBlock." + i, new ChatComponentTranslation("stat.mineBlock", new Object[] { (new ItemStack(block)).func_151000_E() }), Item.getItemFromBlock(block)));
|
||||||
StatList.objectMineStats.add((StatCrafting) StatList.mineBlockStatArray[i]);
|
StatList.objectMineStats.add((StatCrafting) StatList.mineBlockStatArray[i]);
|
||||||
}
|
}
|
||||||
|
} catch(Exception ex) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,11 +104,12 @@ public class StatHelper {
|
|||||||
|
|
||||||
if(item != null) {
|
if(item != null) {
|
||||||
int i = Item.getIdFromItem(item);
|
int i = Item.getIdFromItem(item);
|
||||||
StatList.objectUseStats[i] = registerStat(new StatCrafting("stat.useItem." + i, new ChatComponentTranslation("stat.useItem", new Object[] { (new ItemStack(item)).func_151000_E() }), item));
|
try {
|
||||||
|
StatList.objectUseStats[i] = registerStat(new StatCrafting("stat.useItem." + i, new ChatComponentTranslation("stat.useItem", new Object[] { (new ItemStack(item)).func_151000_E() }), item));
|
||||||
if(!(item instanceof ItemBlock)) {
|
if(!(item instanceof ItemBlock)) {
|
||||||
StatList.itemStats.add((StatCrafting) StatList.objectUseStats[i]);
|
StatList.itemStats.add((StatCrafting) StatList.objectUseStats[i]);
|
||||||
}
|
}
|
||||||
|
} catch(Exception ex) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,9 +124,11 @@ public class StatHelper {
|
|||||||
|
|
||||||
if(item != null) {
|
if(item != null) {
|
||||||
int i = Item.getIdFromItem(item);
|
int i = Item.getIdFromItem(item);
|
||||||
if(item.isDamageable()) {
|
try {
|
||||||
StatList.objectBreakStats[i] = registerStat(new StatCrafting("stat.breakItem." + i, new ChatComponentTranslation("stat.breakItem", new Object[] { (new ItemStack(item)).func_151000_E() }), item));
|
if(item.isDamageable()) {
|
||||||
}
|
StatList.objectBreakStats[i] = registerStat(new StatCrafting("stat.breakItem." + i, new ChatComponentTranslation("stat.breakItem", new Object[] { (new ItemStack(item)).func_151000_E() }), item));
|
||||||
|
}
|
||||||
|
} catch(Exception ex) { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user