mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-03-11 20:25:36 +00:00
Fixed a lot of NBT saves, rebalanced generators, etc
This commit is contained in:
parent
bb0474a7e0
commit
6770e62957
@ -200,12 +200,13 @@ tile.fwatz_plasma.name=Destabilisiertes Antischrabidiumplasma
|
||||
container.fusionaryWatzPlant=Fusionares Watzwerk
|
||||
|
||||
tile.machine_rtg_grey.name=Radioisotopengenerator
|
||||
container.rtg=Radioisotopengenerator
|
||||
tile.machine_rtg_red.name=Fulminationsgenerator
|
||||
tile.machine_rtg_orange.name=Starker RTG
|
||||
tile.machine_rtg_yellow.name=Australium Supergenerator
|
||||
tile.machine_rtg_green.name=Verticium-Reichtumsgenerator
|
||||
tile.machine_rtg_cyan.name=Schrabidium-Zerfallsenergie-Generator
|
||||
tile.machine_rtg_blue.name=Convectionsgenerator
|
||||
tile.machine_rtg_cyan.name=Schrabidium-Zerfallsenergie-Generator (WIP)
|
||||
tile.machine_rtg_blue.name=Konvektionsgenerator
|
||||
tile.machine_rtg_purple.name=Paarvernichtungsgenerator
|
||||
|
||||
item.fuse.name=Sicherung
|
||||
@ -429,6 +430,7 @@ item.centrifuge_element.name=Zentrifugenelement
|
||||
item.centrifuge_tower.name=Zentrifugenturm
|
||||
item.reactor_core.name=Brutreaktorkern
|
||||
item.pellet_rtg.name=Plutonium 238 Pellet
|
||||
item.pellet_rtg_weak.name=Schwaches Uran RTG-Pellet
|
||||
item.rtg_unit.name=RTG Einheit
|
||||
item.hazmat_cloth.name=Strahlenschutzanzugsstoff
|
||||
item.filter_coal.name=Aktivkohlefilter
|
||||
|
||||
@ -199,12 +199,13 @@ tile.fwatz_core.name=Fusionary Watz Reactor Control
|
||||
tile.fwatz_plasma.name=Destabilized Antischrabidium Plasma
|
||||
container.fusionaryWatzPlant=Fusionary Watz Plant
|
||||
|
||||
tile.machine_rtg_grey.name=Radioisotope Thermoelectric Generator
|
||||
tile.machine_rtg_grey.name=RT Generator
|
||||
container.rtg=Radioisotope Thermoelectric Generator
|
||||
tile.machine_rtg_red.name=Fulmination Generator
|
||||
tile.machine_rtg_orange.name=Strong RT Generator
|
||||
tile.machine_rtg_yellow.name=Australium Superfuel Reactor
|
||||
tile.machine_rtg_green.name=Verticium Wealth Generator
|
||||
tile.machine_rtg_cyan.name=Schrabidium Decay Generator
|
||||
tile.machine_rtg_cyan.name=Schrabidium Decay Generator (WIP)
|
||||
tile.machine_rtg_blue.name=Convection Generator
|
||||
tile.machine_rtg_purple.name=Antimatter Annihilation Generator
|
||||
|
||||
@ -429,6 +430,7 @@ item.centrifuge_element.name=Centrifuge Element
|
||||
item.centrifuge_tower.name=Centrifuge Tower
|
||||
item.reactor_core.name=Breeding Reactor Core
|
||||
item.pellet_rtg.name=Plutonium 238 Fuel Pellet
|
||||
item.pellet_rtg_weak.name=Weak Uranium RTG Pellet
|
||||
item.rtg_unit.name=RTG Unit
|
||||
item.hazmat_cloth.name=Hazmat Cloth
|
||||
item.filter_coal.name=Activated Carbon Filter
|
||||
|
||||
@ -6,6 +6,9 @@
|
||||
|
||||
"block.crateBreak": {"category": "block", "sounds": ["block/crateBreak1", "block/crateBreak2", "block/crateBreak3", "block/crateBreak4", "block/crateBreak5"]},
|
||||
|
||||
"item.techBleep": {"category": "player", "sounds": [{"name": "tool/techBleep", "stream": false}]},
|
||||
"item.techBoop": {"category": "player", "sounds": [{"name": "tool/techBoop", "stream": false}]},
|
||||
|
||||
"music.recordLambdaCore": {"category": "record", "sounds": [{"name": "music/recordLambdaCore", "stream": true}]},
|
||||
"music.recordSectorSweep": {"category": "record", "sounds": [{"name": "music/recordSectorSweep", "stream": true}]},
|
||||
"music.recordVortalCombat": {"category": "record", "sounds": [{"name": "music/recordVortalCombat", "stream": true}]},
|
||||
@ -29,6 +32,7 @@
|
||||
"weapon.immolatorIgnite": {"category": "player", "sounds": [{"name": "weapon/immolatorIgnite", "stream": false}]},
|
||||
"weapon.immolatorShoot": {"category": "player", "sounds": [{"name": "weapon/immolatorShoot", "stream": false}]},
|
||||
"weapon.cryolatorShoot": {"category": "player", "sounds": [{"name": "weapon/cryolatorShoot", "stream": false}]},
|
||||
"weapon.missileTakeOff": {"category": "player", "sounds": [{"name": "weapon/missileTakeOff", "stream": false}]},
|
||||
|
||||
"entity.chopperFlyingLoop": {"category": "hostile", "sounds": [{"name": "entity/chopperFlyingLoop", "stream": true}]},
|
||||
"entity.chopperDrop": {"category": "hostile", "sounds": [{"name": "entity/chopperDrop", "stream": false}]},
|
||||
|
||||
BIN
assets/hbm/sounds/tool/techBleep.ogg
Normal file
BIN
assets/hbm/sounds/tool/techBleep.ogg
Normal file
Binary file not shown.
BIN
assets/hbm/sounds/tool/techBoop.ogg
Normal file
BIN
assets/hbm/sounds/tool/techBoop.ogg
Normal file
Binary file not shown.
BIN
assets/hbm/sounds/weapon/missileTakeOff.ogg
Normal file
BIN
assets/hbm/sounds/weapon/missileTakeOff.ogg
Normal file
Binary file not shown.
BIN
assets/hbm/textures/items/ingot_lanthanium_alloy.png
Normal file
BIN
assets/hbm/textures/items/ingot_lanthanium_alloy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 442 B |
BIN
assets/hbm/textures/items/quartz_plutonium.png
Normal file
BIN
assets/hbm/textures/items/quartz_plutonium.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 401 B |
@ -290,6 +290,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_anti_ballistic && entity.power >= 75000)
|
||||
{
|
||||
@ -298,6 +299,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_incendiary && entity.power >= 75000)
|
||||
{
|
||||
@ -306,6 +308,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_cluster && entity.power >= 75000)
|
||||
{
|
||||
@ -314,6 +317,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_buster && entity.power >= 75000)
|
||||
{
|
||||
@ -322,6 +326,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_strong && entity.power >= 75000)
|
||||
{
|
||||
@ -330,6 +335,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_incendiary_strong && entity.power >= 75000)
|
||||
{
|
||||
@ -338,6 +344,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_cluster_strong && entity.power >= 75000)
|
||||
{
|
||||
@ -346,6 +353,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_buster_strong && entity.power >= 75000)
|
||||
{
|
||||
@ -354,6 +362,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_burst && entity.power >= 75000)
|
||||
{
|
||||
@ -362,6 +371,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_inferno && entity.power >= 75000)
|
||||
{
|
||||
@ -370,6 +380,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_rain && entity.power >= 75000)
|
||||
{
|
||||
@ -378,6 +389,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_drill && entity.power >= 75000)
|
||||
{
|
||||
@ -386,6 +398,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_nuclear && entity.power >= 75000)
|
||||
{
|
||||
@ -394,6 +407,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_endo && entity.power >= 75000)
|
||||
{
|
||||
@ -402,6 +416,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_exo && entity.power >= 75000)
|
||||
{
|
||||
@ -410,6 +425,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_nuclear_cluster && entity.power >= 75000)
|
||||
{
|
||||
@ -418,6 +434,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
if(entity.slots[0] != null && entity.slots[0].getItem() == ModItems.missile_anti_ballistic && entity.power >= 75000)
|
||||
{
|
||||
@ -426,6 +443,7 @@ public class LaunchPad extends BlockContainer implements IBomb {
|
||||
entity.power -= 75000;
|
||||
|
||||
entity.slots[0] = null;
|
||||
p_149695_1_.playSoundEffect(x, y, z, "hbm:weapon.missileTakeOff", 2.0F, 1.0F);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -37,7 +37,8 @@ public class RedBarrel extends BlockContainer {
|
||||
{
|
||||
if (p_149695_1_.getBlock(x + 1, y, z) == Blocks.fire || p_149695_1_.getBlock(x - 1, y, z) == Blocks.fire || p_149695_1_.getBlock(x, y + 1, z) == Blocks.fire || p_149695_1_.getBlock(x, y - 1, z) == Blocks.fire || p_149695_1_.getBlock(x, y, z + 1) == Blocks.fire || p_149695_1_.getBlock(x, y, z - 1) == Blocks.fire)
|
||||
{
|
||||
explode(p_149695_1_, x, y, z);
|
||||
if(!p_149695_1_.isRemote)
|
||||
explode(p_149695_1_, x, y, z);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -9,6 +9,7 @@ import com.hbm.main.MainRegistry;
|
||||
import com.hbm.tileentity.TileEntityCoreAdvanced;
|
||||
import com.hbm.tileentity.TileEntityCoreTitanium;
|
||||
import com.hbm.tileentity.TileEntityHatch;
|
||||
import com.hbm.tileentity.TileEntityMachineBattery;
|
||||
|
||||
import cpw.mods.fml.common.network.internal.FMLNetworkHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
@ -46,6 +47,9 @@ public class BlockSeal extends Block implements IBomb {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int metadata) {
|
||||
metadata = metadata % 4;
|
||||
if(metadata == 0 || metadata == 1)
|
||||
metadata += 4;
|
||||
return side == 1 ? this.iconTop : (side == 0 ? this.iconTop : (metadata == 0 && side == 3 ? this.blockIcon : (side == metadata ? this.blockIcon : this.iconTop)));
|
||||
}
|
||||
|
||||
@ -81,11 +85,11 @@ public class BlockSeal extends Block implements IBomb {
|
||||
}
|
||||
if(block3.func_149730_j() && !block4.func_149730_j())
|
||||
{
|
||||
b0 = 5;
|
||||
b0 = 1;
|
||||
}
|
||||
if(block4.func_149730_j() && !block3.func_149730_j())
|
||||
{
|
||||
b0 = 4;
|
||||
b0 = 0;
|
||||
}
|
||||
|
||||
world.setBlockMetadataWithNotify(x, y, z, b0, 2);
|
||||
@ -102,7 +106,7 @@ public class BlockSeal extends Block implements IBomb {
|
||||
}
|
||||
if(i == 1)
|
||||
{
|
||||
world.setBlockMetadataWithNotify(x, y, z, 5, 2);
|
||||
world.setBlockMetadataWithNotify(x, y, z, 1, 2);
|
||||
}
|
||||
if(i == 2)
|
||||
{
|
||||
@ -110,7 +114,7 @@ public class BlockSeal extends Block implements IBomb {
|
||||
}
|
||||
if(i == 3)
|
||||
{
|
||||
world.setBlockMetadataWithNotify(x, y, z, 4, 2);
|
||||
world.setBlockMetadataWithNotify(x, y, z, 0, 2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -145,13 +149,13 @@ public class BlockSeal extends Block implements IBomb {
|
||||
|
||||
int xOff = 0;
|
||||
int zOff = 0;
|
||||
if(world.getBlockMetadata(x, y, z) == 2)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 2)
|
||||
zOff += size;
|
||||
if(world.getBlockMetadata(x, y, z) == 3)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 3)
|
||||
zOff -= size;
|
||||
if(world.getBlockMetadata(x, y, z) == 4)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 0)
|
||||
xOff += size;
|
||||
if(world.getBlockMetadata(x, y, z) == 5)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 1)
|
||||
xOff -= size;
|
||||
|
||||
for(int X = x - size; X <= x + size; X ++) {
|
||||
@ -195,13 +199,13 @@ public class BlockSeal extends Block implements IBomb {
|
||||
|
||||
int xOff = 0;
|
||||
int zOff = 0;
|
||||
if(world.getBlockMetadata(x, y, z) == 2)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 2)
|
||||
zOff += size;
|
||||
if(world.getBlockMetadata(x, y, z) == 3)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 3)
|
||||
zOff -= size;
|
||||
if(world.getBlockMetadata(x, y, z) == 4)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 0)
|
||||
xOff += size;
|
||||
if(world.getBlockMetadata(x, y, z) == 5)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 1)
|
||||
xOff -= size;
|
||||
|
||||
for(int X = x - size + 1; X <= x + size - 1; X++) {
|
||||
@ -221,13 +225,13 @@ public class BlockSeal extends Block implements IBomb {
|
||||
|
||||
int xOff = 0;
|
||||
int zOff = 0;
|
||||
if(world.getBlockMetadata(x, y, z) == 2)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 2)
|
||||
zOff += size;
|
||||
if(world.getBlockMetadata(x, y, z) == 3)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 3)
|
||||
zOff -= size;
|
||||
if(world.getBlockMetadata(x, y, z) == 4)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 0)
|
||||
xOff += size;
|
||||
if(world.getBlockMetadata(x, y, z) == 5)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 1)
|
||||
xOff -= size;
|
||||
|
||||
for(int X = x - size + 1; X <= x + size - 1; X++) {
|
||||
@ -243,13 +247,13 @@ public class BlockSeal extends Block implements IBomb {
|
||||
|
||||
int xOff = 0;
|
||||
int zOff = 0;
|
||||
if(world.getBlockMetadata(x, y, z) == 2)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 2)
|
||||
zOff += size;
|
||||
if(world.getBlockMetadata(x, y, z) == 3)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 3)
|
||||
zOff -= size;
|
||||
if(world.getBlockMetadata(x, y, z) == 4)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 0)
|
||||
xOff += size;
|
||||
if(world.getBlockMetadata(x, y, z) == 5)
|
||||
if(world.getBlockMetadata(x, y, z) % 4 == 1)
|
||||
xOff -= size;
|
||||
|
||||
for(int X = x - size + 1; X <= x + size - 1; X++) {
|
||||
@ -275,4 +279,31 @@ public class BlockSeal extends Block implements IBomb {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNeighborBlockChange(World world, int x, int y, int z, Block block)
|
||||
{
|
||||
if (world.isBlockIndirectlyGettingPowered(x, y, z))
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if(meta < 4) {
|
||||
world.setBlockMetadataWithNotify(x, y, z, meta + 4, 2);
|
||||
|
||||
int i = this.getFrameSize(world, x, y, z);
|
||||
|
||||
if(i != 0)
|
||||
if(this.isSealClosed(world, x, y, z, i))
|
||||
this.openSeal(world, x, y, z, i);
|
||||
else
|
||||
this.closeSeal(world, x, y, z, i);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if(meta >= 4) {
|
||||
world.setBlockMetadataWithNotify(x, y, z, meta % 4, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -198,6 +198,9 @@ public class ExplosionNukeGeneric {
|
||||
&& world.getBlock(x, y, z) != ModBlocks.reinforced_lamp_off
|
||||
&& world.getBlock(x, y, z) != ModBlocks.reinforced_lamp_on
|
||||
&& world.getBlock(x, y, z) != ModBlocks.cmb_brick
|
||||
&& world.getBlock(x, y, z) != ModBlocks.crystal_virus
|
||||
&& world.getBlock(x, y, z) != ModBlocks.crystal_hardened
|
||||
&& world.getBlock(x, y, z) != ModBlocks.crystal_pulsar
|
||||
&& world.getBlock(x, y, z) != ModBlocks.cmb_brick_reinforced
|
||||
&& !(world.getBlock(x, y, z) instanceof DecoBlockAlt)) {
|
||||
if (world.getBlock(x, y, z) == ModBlocks.brick_concrete) {
|
||||
|
||||
@ -77,7 +77,7 @@ public class ContainerMachineRTG extends Container {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
else if (!this.mergeItemStack(var5, 0, 16, false))
|
||||
else if (!this.mergeItemStack(var5, 0, 15, false))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -47,6 +47,11 @@ public class ItemCustomLore extends ItemRadioactive {
|
||||
list.add("RTG fuel pellet for infinite energy! (almost)");
|
||||
}
|
||||
|
||||
if(this == ModItems.pellet_rtg_weak)
|
||||
{
|
||||
list.add("Cheaper and weaker pellet, now with more U238!");
|
||||
}
|
||||
|
||||
if(this == ModItems.pellet_cluster)
|
||||
{
|
||||
list.add("Used in multi purpose bombs:");
|
||||
@ -384,7 +389,7 @@ public class ItemCustomLore extends ItemRadioactive {
|
||||
@Override
|
||||
public EnumRarity getRarity(ItemStack p_77613_1_) {
|
||||
|
||||
if(this == ModItems.nugget_euphemium || this == ModItems.ingot_euphemium || this == ModItems.rod_quad_euphemium || this == ModItems.watch || this == ModItems.powder_iodine || this == ModItems.powder_thorium || this == ModItems.powder_neodymium || this == ModItems.powder_neptunium || this == ModItems.powder_astatine || this == ModItems.powder_caesium)
|
||||
if(this == ModItems.nugget_euphemium || this == ModItems.ingot_euphemium || this == ModItems.rod_quad_euphemium || this == ModItems.watch || this == ModItems.powder_iodine || this == ModItems.powder_thorium || this == ModItems.powder_neodymium || this == ModItems.powder_neptunium || this == ModItems.powder_astatine || this == ModItems.powder_caesium || this == ModItems.powder_strontium || this == ModItems.powder_cobalt || this == ModItems.powder_bromine || this == ModItems.powder_niobium || this == ModItems.powder_tennessine || this == ModItems.powder_cerium)
|
||||
{
|
||||
return EnumRarity.epic;
|
||||
}
|
||||
|
||||
@ -17,84 +17,84 @@ public class ItemFuelRod extends ItemRadioactive {
|
||||
|
||||
if(this == ModItems.rod_uranium_fuel)
|
||||
{
|
||||
list.add("Generates 10 power per tick");
|
||||
list.add("Generates 100 power per tick");
|
||||
list.add("Generates 1 heat per tick");
|
||||
list.add("Lasts 10000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_dual_uranium_fuel)
|
||||
{
|
||||
list.add("Generates 10 power per tick");
|
||||
list.add("Generates 100 power per tick");
|
||||
list.add("Generates 1 heat per tick");
|
||||
list.add("Lasts 20000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_quad_uranium_fuel)
|
||||
{
|
||||
list.add("Generates 10 power per tick");
|
||||
list.add("Generates 100 power per tick");
|
||||
list.add("Generates 1 heat per tick");
|
||||
list.add("Lasts 40000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_plutonium_fuel)
|
||||
{
|
||||
list.add("Generates 15 power per tick");
|
||||
list.add("Generates 150 power per tick");
|
||||
list.add("Generates 2 heat per tick");
|
||||
list.add("Lasts 25000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_dual_plutonium_fuel)
|
||||
{
|
||||
list.add("Generates 15 power per tick");
|
||||
list.add("Generates 150 power per tick");
|
||||
list.add("Generates 2 heat per tick");
|
||||
list.add("Lasts 50000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_quad_plutonium_fuel)
|
||||
{
|
||||
list.add("Generates 15 power per tick");
|
||||
list.add("Generates 150 power per tick");
|
||||
list.add("Generates 2 heat per tick");
|
||||
list.add("Lasts 100000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_mox_fuel)
|
||||
{
|
||||
list.add("Generates 5 power per tick");
|
||||
list.add("Generates 50 power per tick");
|
||||
list.add("Generates 1 heat per tick");
|
||||
list.add("Lasts 100000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_dual_mox_fuel)
|
||||
{
|
||||
list.add("Generates 5 power per tick");
|
||||
list.add("Generates 50 power per tick");
|
||||
list.add("Generates 1 heat per tick");
|
||||
list.add("Lasts 200000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_quad_mox_fuel)
|
||||
{
|
||||
list.add("Generates 5 power per tick");
|
||||
list.add("Generates 50 power per tick");
|
||||
list.add("Generates 1 heat per tick");
|
||||
list.add("Lasts 400000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_schrabidium_fuel)
|
||||
{
|
||||
list.add("Generates 25 power per tick");
|
||||
list.add("Generates 25000 power per tick");
|
||||
list.add("Generates 10 heat per tick");
|
||||
list.add("Lasts 2500000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_dual_schrabidium_fuel)
|
||||
{
|
||||
list.add("Generates 25 power per tick");
|
||||
list.add("Generates 25000 power per tick");
|
||||
list.add("Generates 10 heat per tick");
|
||||
list.add("Lasts 5000000 ticks");
|
||||
}
|
||||
|
||||
if(this == ModItems.rod_quad_schrabidium_fuel)
|
||||
{
|
||||
list.add("Generates 25 power per tick");
|
||||
list.add("Generates 25000 power per tick");
|
||||
list.add("Generates 10 heat per tick");
|
||||
list.add("Lasts 10000000 ticks");
|
||||
}
|
||||
|
||||
@ -47,6 +47,8 @@ public class ItemCrateCaller extends Item {
|
||||
player.addChatMessage(new ChatComponentText("Called in supply drop!"));
|
||||
}
|
||||
|
||||
world.playSoundAtEntity(player, "hbm:item.techBleep", 1.0F, 1.0F);
|
||||
|
||||
player.swingItem();
|
||||
|
||||
return stack;
|
||||
|
||||
@ -51,6 +51,9 @@ public class ItemDesingator extends Item {
|
||||
{
|
||||
p_77648_2_.addChatMessage(new ChatComponentText("Position set!"));
|
||||
}
|
||||
|
||||
p_77648_3_.playSoundAtEntity(p_77648_2_, "hbm:item.techBleep", 1.0F, 1.0F);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -56,6 +56,9 @@ public class ItemDesingatorRange extends Item {
|
||||
{
|
||||
player.addChatMessage(new ChatComponentText("Position set to X:" + x + ", Z:" + z));
|
||||
}
|
||||
|
||||
world.playSoundAtEntity(player, "hbm:item.techBleep", 1.0F, 1.0F);
|
||||
|
||||
return stack;
|
||||
}
|
||||
|
||||
|
||||
@ -45,6 +45,9 @@ public class ItemDetonator extends Item {
|
||||
{
|
||||
player.addChatMessage(new ChatComponentText("Position set!"));
|
||||
}
|
||||
|
||||
world.playSoundAtEntity(player, "hbm:item.techBoop", 2.0F, 1.0F);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -56,7 +59,8 @@ public class ItemDetonator extends Item {
|
||||
|
||||
if(stack.stackTagCompound == null)
|
||||
{
|
||||
player.addChatMessage(new ChatComponentText("Error: Position not set."));
|
||||
if(world.isRemote)
|
||||
player.addChatMessage(new ChatComponentText("Error: Position not set."));
|
||||
} else {
|
||||
int x = stack.stackTagCompound.getInteger("x");
|
||||
int y = stack.stackTagCompound.getInteger("y");
|
||||
@ -64,6 +68,7 @@ public class ItemDetonator extends Item {
|
||||
|
||||
if(world.getBlock(x, y, z) instanceof IBomb)
|
||||
{
|
||||
world.playSoundAtEntity(player, "hbm:item.techBleep", 1.0F, 1.0F);
|
||||
if(!world.isRemote)
|
||||
{
|
||||
((IBomb)world.getBlock(x, y, z)).explode(world, x, y, z);
|
||||
|
||||
@ -44,6 +44,9 @@ public class ItemMultitoolPassive extends Item {
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
|
||||
{
|
||||
if(player.isSneaking()) {
|
||||
|
||||
world.playSoundAtEntity(player, "hbm:item.techBoop", 2.0F, 1.0F);
|
||||
|
||||
if (this == ModItems.multitool_ext) {
|
||||
return new ItemStack(ModItems.multitool_miner, 1, stack.getItemDamage());
|
||||
} else if(this == ModItems.multitool_miner) {
|
||||
@ -72,6 +75,7 @@ public class ItemMultitoolPassive extends Item {
|
||||
item.addEnchantment(Enchantment.fortune, 3);
|
||||
return item;
|
||||
}
|
||||
|
||||
} else {
|
||||
if(this == ModItems.multitool_ext) {
|
||||
return stack;
|
||||
|
||||
@ -41,6 +41,9 @@ public class ItemMultitoolTool extends ItemTool {
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
|
||||
{
|
||||
if(player.isSneaking()) {
|
||||
|
||||
world.playSoundAtEntity(player, "hbm:item.techBoop", 2.0F, 1.0F);
|
||||
|
||||
if(this == ModItems.multitool_dig) {
|
||||
ItemStack item = new ItemStack(ModItems.multitool_silk, 1, stack.getItemDamage());
|
||||
item.addEnchantment(Enchantment.silkTouch, 3);
|
||||
|
||||
@ -129,9 +129,9 @@ public class GunJack extends Item {
|
||||
@Override
|
||||
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean bool) {
|
||||
|
||||
//list.add("POW! Haha!");
|
||||
list.add("Alright, alright, I couldn't think of a proper name,");
|
||||
list.add("are you happy now?");
|
||||
list.add("One barrel? Boring.");
|
||||
list.add("Two barrels? Nah.");
|
||||
list.add("Four barrels? Heck yes!");
|
||||
list.add("");
|
||||
list.add("Ammo: Quadruple Shotgun Shells");
|
||||
list.add("Damage: 12 - 24");
|
||||
|
||||
12
com/hbm/lib/SPCLStrings.java
Normal file
12
com/hbm/lib/SPCLStrings.java
Normal file
@ -0,0 +1,12 @@
|
||||
package com.hbm.lib;
|
||||
|
||||
public class SPCLStrings {
|
||||
|
||||
//Cheeky easter egg
|
||||
String stringStanley = "54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52 20 54 48 45 20 45 4e 44 20 49 53 20 4e 45 56 45 52";
|
||||
//Replace e998, universal task
|
||||
String stringQuestion = "41 4d 20 4e 4f 54 20 4f 46 20 55 4e 44 45 52 53 54 41 4e 44 49 4e 47 20 48 4f 57 20 4d 41 4e 45 20 49 53 20 4f 46 20 57 41 56 49 4e 47";
|
||||
//Hash value for error reports
|
||||
String stringError = "T1VUT0ZGVUVMT1VUT0ZGVUVMT1VUT0ZGVUVMT1VUT0ZGVUVMT1VUT0ZGVUVMT1VUT0ZGVUVMT1VUT0ZGVUVMT1VUT0ZGVUVMT1VUT0ZGVUVM";
|
||||
|
||||
}
|
||||
@ -326,6 +326,7 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.nugget_euphemium, 9, 34), new Object[] { "#", '#', new ItemStack(ModItems.ingot_euphemium, 1, 34) });
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.pellet_rtg, 1), new Object[] { "IPI", "PPP", "IPI", 'I', "plateIron", 'P', "tinyPu238" }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.pellet_rtg_weak, 1), new Object[] { "IUI", "UPU", "IUI", 'I', "plateIron", 'P', "tinyPu238", 'U', "tinyU238" }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.tritium_deuterium_cake, 1), new Object[] { "DLD", "LTL", "DLD", 'L', "ingotLithium", 'D', ModItems.cell_deuterium, 'T', ModItems.cell_tritium }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.pellet_schrabidium, 1), new Object[] { "IPI", "PPP", "IPI", 'I', "plateIron", 'P', "ingotSchrabidium" }));
|
||||
@ -381,7 +382,7 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.warhead_generic_large, 1), new Object[] { "PTP", "PTP", "TTT", 'P', "plateTitanium", 'T', Item.getItemFromBlock(Blocks.tnt) }));
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.warhead_incendiary_large, 1), new Object[] { "PXP", "XWX", "PXP", 'P', ModItems.powder_fire, 'W', ModItems.warhead_generic_large, 'X', Items.lava_bucket });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.warhead_cluster_large, 1), new Object[] { "PXP", "XWX", "PXP", 'P', ModItems.pellet_cluster, 'W', ModItems.warhead_generic_large, 'X', Item.getItemFromBlock(ModBlocks.det_cord) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.warhead_buster_large, 1), new Object[] { "PXP", "XWX", "PXP", 'P', Item.getItemFromBlock(ModBlocks.det_cord), 'W', ModItems.warhead_generic_large, 'X', Item.getItemFromBlock(Blocks.tnt) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.warhead_buster_large, 1), new Object[] { "PXP", "XWX", "PXP", 'P', Item.getItemFromBlock(ModBlocks.det_cord), 'W', ModItems.warhead_generic_large, 'X', ModBlocks.det_charge });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.warhead_nuclear, 1), new Object[] { " N ", "TZT", "TBT", 'N', ModItems.boy_shielding, 'Z', ModItems.boy_target, 'B', ModItems.boy_bullet, 'T', ModItems.plate_titanium });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.warhead_mirvlet, 1), new Object[] { " S ", "SPS", "STS", 'S', ModItems.plate_steel, 'P', ModItems.ingot_pu239, 'T', Item.getItemFromBlock(Blocks.tnt) });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.warhead_mirv, 1), new Object[] { "MMM", "MWM", "MMM", 'M', ModItems.warhead_mirvlet, 'W', ModItems.warhead_generic_large });
|
||||
@ -452,6 +453,7 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_shredder), 1), new Object[] { "SHS", "MBM", "CFC", 'H', ModItems.hull_big_steel, 'S', ModBlocks.steel_beam, 'M', ModItems.motor, 'B', Blocks.iron_bars, 'C', ModBlocks.red_wire_coated, 'F', Item.getItemFromBlock(ModBlocks.machine_electric_furnace_off) });
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_combine_factory), 1), new Object[] { "HCH", "STS", "RFR", 'H', ModItems.tank_steel, 'C', ModItems.coil_advanced_torus, 'S', "plateSteel", 'T', ModBlocks.block_magnetized_tungsten, 'R', ModItems.wire_red_copper, 'F', Item.getItemFromBlock(ModBlocks.machine_difurnace_off) }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_teleporter), 1), new Object[] { "PTP", "FKF", "BBB", 'P', "plateTitanium", 'T', ModItems.telepad, 'F', Item.getItemFromBlock(ModBlocks.factory_advanced_hull), 'K', ModItems.entanglement_kit, 'B', Item.getItemFromBlock(ModBlocks.machine_battery) }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.machine_rtg_grey), 1), new Object[] { "UPU", "UWU", "UPU", 'P', "plateSteel", 'U', ModItems.rtg_unit, 'W', ModBlocks.red_wire_coated }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.factory_titanium_hull), 1), new Object[] { "PIP", "I I", "PIP", 'P', "plateTitanium", 'I', "ingotTitanium" }));
|
||||
GameRegistry.addRecipe(new ItemStack(Item.getItemFromBlock(ModBlocks.factory_titanium_furnace), 1), new Object[] { "HMH", "MFM", "HMH", 'H', Item.getItemFromBlock(ModBlocks.factory_titanium_hull), 'M', ModItems.motor, 'F', Item.getItemFromBlock(Blocks.furnace) });
|
||||
@ -478,6 +480,7 @@ public class CraftingManager {
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.screwdriver, 1), new Object[] { " I", " I ", "S ", 'S', "ingotSteel", 'I', "ingotIron" }));
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.overfuse, 1), new Object[] { ModItems.screwdriver, "dustNeptunium", ModItems.powder_iodine, ModItems.powder_thorium, ModItems.powder_astatine, ModItems.powder_neodymium, ModItems.board_copper, ModItems.black_hole, ModItems.powder_caesium }));
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.overfuse, 1), new Object[] { ModItems.screwdriver, ModItems.powder_strontium, ModItems.powder_bromine, ModItems.powder_cobalt, ModItems.powder_tennessine, ModItems.powder_niobium, ModItems.board_copper, ModItems.black_hole, ModItems.powder_cerium }));
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.thermo_element, 1), new Object[] { "GRG", "APA", "GRG", 'P', "plateSteel", 'G', Items.gold_nugget, 'R', ModItems.wire_red_copper, 'A', ModItems.wire_aluminium }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.limiter, 1), new Object[] { "SC", "SC", "LS", 'S', "plateSteel", 'C', ModItems.circuit_copper, 'L', "plateLead" }));
|
||||
@ -669,6 +672,8 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.syringe_metal_stimpak, 1), new Object[] { " N ", "NSN", " N ", 'N', Items.nether_wart, 'S', ModItems.syringe_metal_empty });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.syringe_metal_medx, 1), new Object[] { " N ", "NSN", " N ", 'N', Items.quartz, 'S', ModItems.syringe_metal_empty });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.syringe_metal_psycho, 1), new Object[] { " N ", "NSN", " N ", 'N', Items.glowstone_dust, 'S', ModItems.syringe_metal_empty });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.pill_iodine, 8), new Object[] { "IF", 'I', ModItems.powder_iodine, 'F', ModItems.fluorite });
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.plan_c, 1), new Object[] { "PFP", 'P', ModItems.powder_poison, 'F', ModItems.fluorite });
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.stealth_boy, 1), new Object[] { " B", "LI", "LC", 'B', Item.getItemFromBlock(Blocks.stone_button), 'L', Items.leather, 'I', "ingotSteel", 'C', ModItems.circuit_red_copper }));
|
||||
|
||||
@ -852,6 +857,7 @@ public class CraftingManager {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.emerald, 1), new Object[] { "#", '#', "dustEmerald" }));
|
||||
if(MainRegistry.enableNITAN)
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.canister_NITAN, 1), new Object[] { ModItems.canister_empty, ModItems.canister_napalm, ModItems.powder_neptunium, ModItems.powder_iodine, ModItems.powder_thorium, ModItems.powder_astatine, ModItems.powder_neodymium, ModItems.powder_caesium });
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.canister_NITAN, 1), new Object[] { ModItems.canister_empty, ModItems.canister_napalm, ModItems.powder_strontium, ModItems.powder_cobalt, ModItems.powder_bromine, ModItems.powder_tennessine, ModItems.powder_niobium, ModItems.powder_cerium });
|
||||
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.record_lc, 1), new Object[] { " S ", "SDS", " S ", 'S', "ingotSteel", 'D', "dustLapis" }));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.record_ss, 1), new Object[] { " S ", "SDS", " S ", 'S', "ingotSteel", 'D', "dustAdvanced" }));
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
@ -267,4 +269,11 @@ public class TileEntityBombMulti extends TileEntity implements ISidedInventory {
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
@ -7,6 +7,8 @@ import com.hbm.calc.UnionOfTileEntitiesAndBooleans;
|
||||
import com.hbm.interfaces.IConductor;
|
||||
import com.hbm.lib.Library;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import scala.Int;
|
||||
@ -45,4 +47,11 @@ public class TileEntityCable extends TileEntity implements IConductor {
|
||||
else connections[5] = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
package com.hbm.tileentity;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
|
||||
@ -10,4 +12,11 @@ public class TileEntityDecoBlock extends TileEntity {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
package com.hbm.tileentity;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
|
||||
@ -10,4 +12,11 @@ public class TileEntityDecoBlockAlt extends TileEntity {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -3,6 +3,8 @@ package com.hbm.tileentity;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.potion.Potion;
|
||||
@ -67,4 +69,11 @@ public class TileEntityDecoBlockAltF extends TileEntity {
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
package com.hbm.tileentity;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
|
||||
@ -10,4 +12,11 @@ public class TileEntityDecoBlockAltG extends TileEntity {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
package com.hbm.tileentity;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
|
||||
@ -10,4 +12,11 @@ public class TileEntityDecoBlockAltW extends TileEntity {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,7 +1,16 @@
|
||||
package com.hbm.tileentity;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TileEntityDecoPoleSatelliteReceiver extends TileEntity {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,7 +1,16 @@
|
||||
package com.hbm.tileentity;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TileEntityDecoPoleTop extends TileEntity {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,7 +1,16 @@
|
||||
package com.hbm.tileentity;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TileEntityDecoSteelPoles extends TileEntity {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.blocks.generic.DecoTapeRecorder;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TileEntityDecoTapeRecorder extends TileEntity {
|
||||
@ -26,4 +28,11 @@ public class TileEntityDecoTapeRecorder extends TileEntity {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -160,7 +160,7 @@ public class TileEntityDiFurnace extends TileEntity implements ISidedInventory {
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
this.dualPower = nbt.getShort("powerTime");
|
||||
this.dualPower = nbt.getInteger("powerTime");
|
||||
this.dualCookTime = nbt.getShort("cookTime");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
@ -178,7 +178,7 @@ public class TileEntityDiFurnace extends TileEntity implements ISidedInventory {
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("powerTime", (short) dualPower);
|
||||
nbt.setInteger("powerTime", dualPower);
|
||||
nbt.setShort("cookTime", (short) dualCookTime);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
|
||||
@ -165,10 +165,10 @@ public class TileEntityFWatzCore extends TileEntity implements ISidedInventory,
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
cool = nbt.getShort("cool") * 10000;
|
||||
power = nbt.getShort("power") * 10000;
|
||||
amat = nbt.getShort("amat") * 10000;
|
||||
aSchrab = nbt.getShort("aSchrab") * 10000;
|
||||
cool = nbt.getInteger("cool");
|
||||
power = nbt.getInteger("power");
|
||||
amat = nbt.getInteger("amat");
|
||||
aSchrab = nbt.getInteger("aSchrab");
|
||||
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
@ -186,10 +186,10 @@ public class TileEntityFWatzCore extends TileEntity implements ISidedInventory,
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("cool", (short) (cool/10000));
|
||||
nbt.setShort("power", (short) (power/10000));
|
||||
nbt.setShort("amat", (short) (amat/10000));
|
||||
nbt.setShort("aSchrab", (short) (aSchrab/10000));
|
||||
nbt.setInteger("cool", cool);
|
||||
nbt.setInteger("power", power);
|
||||
nbt.setInteger("amat", amat);
|
||||
nbt.setInteger("aSchrab", aSchrab);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
|
||||
@ -32,7 +32,7 @@ public class TileEntityFusionMultiblock extends TileEntity implements ISidedInve
|
||||
public int trit;
|
||||
public final static int tritMax = 10000000;
|
||||
public int power;
|
||||
public final static int maxPower = 10000000;
|
||||
public final static int maxPower = 100000000;
|
||||
private ItemStack slots[];
|
||||
public int age = 0;
|
||||
public List<IConsumer> list = new ArrayList();
|
||||
@ -155,10 +155,10 @@ public class TileEntityFusionMultiblock extends TileEntity implements ISidedInve
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
water = nbt.getShort("water") * 1000;
|
||||
deut = nbt.getShort("deut") * 1000;
|
||||
power = nbt.getShort("power") * 1000;
|
||||
trit = nbt.getShort("trit") * 1000;
|
||||
water = nbt.getInteger("water");
|
||||
deut = nbt.getInteger("deut");
|
||||
power = nbt.getInteger("power");
|
||||
trit = nbt.getInteger("trit");
|
||||
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
@ -176,10 +176,10 @@ public class TileEntityFusionMultiblock extends TileEntity implements ISidedInve
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("water", (short) (water/1000));
|
||||
nbt.setShort("deut", (short) (deut/1000));
|
||||
nbt.setShort("power", (short) (power/1000));
|
||||
nbt.setShort("trit", (short) (trit/1000));
|
||||
nbt.setInteger("water", water);
|
||||
nbt.setInteger("deut", deut);
|
||||
nbt.setInteger("power", power);
|
||||
nbt.setInteger("trit", trit);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
@ -197,6 +197,9 @@ public class TileEntityFusionMultiblock extends TileEntity implements ISidedInve
|
||||
|
||||
@Override
|
||||
public boolean isStructureValid(World world) {
|
||||
|
||||
//...and I wrote all of this by hand! Ha!
|
||||
|
||||
if(world.getBlock(this.xCoord + 5, this.yCoord - 2, this.zCoord - 3) == ModBlocks.fusion_conductor &&
|
||||
world.getBlock(this.xCoord + 5, this.yCoord - 2, this.zCoord - 2) == ModBlocks.fusion_conductor &&
|
||||
world.getBlock(this.xCoord + 5, this.yCoord - 2, this.zCoord - 1) == ModBlocks.fusion_conductor &&
|
||||
@ -1088,14 +1091,14 @@ public class TileEntityFusionMultiblock extends TileEntity implements ISidedInve
|
||||
deut -= 100;
|
||||
trit -= 100;
|
||||
|
||||
if(water - 1000 >= 0)
|
||||
if(water - 100 >= 0)
|
||||
{
|
||||
water -= 1000;
|
||||
power += 10000;
|
||||
water -= 100;
|
||||
power += 100000;
|
||||
|
||||
if(isCoatingValid(worldObj))
|
||||
{
|
||||
power += 10000;
|
||||
power += 100000;
|
||||
}
|
||||
|
||||
if(power > maxPower)
|
||||
|
||||
@ -12,6 +12,8 @@ import com.hbm.items.ModItems;
|
||||
import com.hbm.items.special.ItemBattery;
|
||||
import com.hbm.lib.Library;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
@ -36,7 +38,7 @@ public class TileEntityIGenerator extends TileEntity implements ISidedInventory,
|
||||
public int fuel;
|
||||
public int burn;
|
||||
public int soundCycle = 0;
|
||||
public static final int maxPower = 100000;
|
||||
public static final int maxPower = 10000;
|
||||
public static final int maxTorque = 2500;
|
||||
public static final int maxHeat = 7500;
|
||||
public static final int maxWater = 10000;
|
||||
@ -680,4 +682,11 @@ public class TileEntityIGenerator extends TileEntity implements ISidedInventory,
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -5,6 +5,8 @@ import com.hbm.interfaces.IConductor;
|
||||
import com.hbm.interfaces.IConsumer;
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -135,7 +137,7 @@ public class TileEntityLaunchPad extends TileEntity implements ISidedInventory,
|
||||
public void readFromNBT(NBTTagCompound nbt) {
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
power = nbt.getShort("power");
|
||||
power = nbt.getInteger("power");
|
||||
state = nbt.getShort("state");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
@ -154,7 +156,7 @@ public class TileEntityLaunchPad extends TileEntity implements ISidedInventory,
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
NBTTagList list = new NBTTagList();
|
||||
nbt.setShort("power", (short) power);
|
||||
nbt.setInteger("power", power);
|
||||
nbt.setShort("state", (short) state);
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
@ -444,4 +446,11 @@ public class TileEntityLaunchPad extends TileEntity implements ISidedInventory,
|
||||
return maxPower;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ public class TileEntityMachineBattery extends TileEntity implements ISidedInvent
|
||||
private ItemStack slots[];
|
||||
|
||||
public int power = 0;
|
||||
public final int maxPower = 100000;
|
||||
public final int maxPower = 1000000;
|
||||
|
||||
public boolean conducts = false;
|
||||
|
||||
@ -138,7 +138,7 @@ public class TileEntityMachineBattery extends TileEntity implements ISidedInvent
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
this.power = nbt.getShort("power");
|
||||
this.power = nbt.getInteger("power");
|
||||
this.conducts = nbt.getBoolean("conducts");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
@ -156,7 +156,7 @@ public class TileEntityMachineBattery extends TileEntity implements ISidedInvent
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("power", (short) power);
|
||||
nbt.setInteger("power", power);
|
||||
nbt.setBoolean("conducts", conducts);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ public class TileEntityMachineCMBFactory extends TileEntity implements ISidedInv
|
||||
public int process = 0;
|
||||
public int soundCycle = 0;
|
||||
public static final int maxFill = 1000;
|
||||
public static final int maxPower = 10000;
|
||||
public static final int maxPower = 100000;
|
||||
public static final int processSpeed = 200;
|
||||
|
||||
private static final int[] slots_top = new int[] {1, 3};
|
||||
@ -151,8 +151,8 @@ public class TileEntityMachineCMBFactory extends TileEntity implements ISidedInv
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
power = nbt.getShort("power");
|
||||
waste = nbt.getShort("waste");
|
||||
power = nbt.getInteger("power");
|
||||
waste = nbt.getInteger("waste");
|
||||
process = nbt.getShort("process");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
@ -170,8 +170,8 @@ public class TileEntityMachineCMBFactory extends TileEntity implements ISidedInv
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("power", (short) power);
|
||||
nbt.setShort("waste", (short) waste);
|
||||
nbt.setInteger("power", power);
|
||||
nbt.setInteger("waste", waste);
|
||||
nbt.setShort("process", (short) process);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
@ -246,7 +246,7 @@ public class TileEntityMachineCMBFactory extends TileEntity implements ISidedInv
|
||||
|
||||
public void process() {
|
||||
waste -= 1;
|
||||
power -= 3;
|
||||
power -= 15;
|
||||
|
||||
process++;
|
||||
|
||||
|
||||
@ -3,6 +3,8 @@ package com.hbm.tileentity;
|
||||
import com.hbm.gui.MachineRecipes;
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
@ -166,7 +168,7 @@ public class TileEntityMachineCentrifuge extends TileEntity implements ISidedInv
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
dualPower = nbt.getShort("powerTime");
|
||||
dualPower = nbt.getInteger("powerTime");
|
||||
dualCookTime = nbt.getShort("CookTime");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
@ -184,7 +186,7 @@ public class TileEntityMachineCentrifuge extends TileEntity implements ISidedInv
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("powerTime", (short) dualPower);
|
||||
nbt.setInteger("powerTime", dualPower);
|
||||
nbt.setShort("cookTime", (short) dualCookTime);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
@ -392,4 +394,11 @@ public class TileEntityMachineCentrifuge extends TileEntity implements ISidedInv
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@ public class TileEntityMachineCoal extends TileEntity implements ISidedInventory
|
||||
public int power;
|
||||
public int water;
|
||||
public int burnTime;
|
||||
public static final int maxPower = 10000;
|
||||
public static final int maxPower = 100000;
|
||||
public static final int maxWater = 10000;
|
||||
public int age = 0;
|
||||
public List<IConsumer> list = new ArrayList();
|
||||
@ -154,8 +154,8 @@ public class TileEntityMachineCoal extends TileEntity implements ISidedInventory
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
this.power = nbt.getShort("powerTime");
|
||||
this.water = nbt.getShort("water");
|
||||
this.power = nbt.getInteger("powerTime");
|
||||
this.water = nbt.getInteger("water");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
for(int i = 0; i < list.tagCount(); i++)
|
||||
@ -172,8 +172,8 @@ public class TileEntityMachineCoal extends TileEntity implements ISidedInventory
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("powerTime", (short) power);
|
||||
nbt.setShort("water", (short) water);
|
||||
nbt.setInteger("powerTime", power);
|
||||
nbt.setInteger("water", water);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
@ -360,9 +360,9 @@ public class TileEntityMachineCoal extends TileEntity implements ISidedInventory
|
||||
{
|
||||
water -= 1;
|
||||
|
||||
if(power + 10 <= maxPower)
|
||||
if(power + 100 <= maxPower)
|
||||
{
|
||||
power += 10;
|
||||
power += 100;
|
||||
} else {
|
||||
power = maxPower;
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ public class TileEntityMachineDeuterium extends TileEntity implements ISidedInve
|
||||
public int sulfur = 0;
|
||||
public int process = 0;
|
||||
public static final int maxFill = 1000;
|
||||
public static final int maxPower = 10000;
|
||||
public static final int maxPower = 100000;
|
||||
public static final int processSpeed = 200;
|
||||
|
||||
private static final int[] slots_top = new int[] {3};
|
||||
@ -152,10 +152,10 @@ public class TileEntityMachineDeuterium extends TileEntity implements ISidedInve
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
power = nbt.getShort("power");
|
||||
water = nbt.getShort("water");
|
||||
sulfur = nbt.getShort("sulfur");
|
||||
process = nbt.getShort("process");
|
||||
power = nbt.getInteger("power");
|
||||
water = nbt.getInteger("water");
|
||||
sulfur = nbt.getInteger("sulfur");
|
||||
process = nbt.getInteger("process");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
for(int i = 0; i < list.tagCount(); i++)
|
||||
@ -172,10 +172,10 @@ public class TileEntityMachineDeuterium extends TileEntity implements ISidedInve
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("power", (short) power);
|
||||
nbt.setShort("water", (short) water);
|
||||
nbt.setShort("sulfur", (short) sulfur);
|
||||
nbt.setShort("process", (short) process);
|
||||
nbt.setInteger("power", power);
|
||||
nbt.setInteger("water", water);
|
||||
nbt.setInteger("sulfur", sulfur);
|
||||
nbt.setInteger("process", process);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
@ -247,7 +247,7 @@ public class TileEntityMachineDeuterium extends TileEntity implements ISidedInve
|
||||
public void process() {
|
||||
water -= 2;
|
||||
sulfur -= 1;
|
||||
power -= 5;
|
||||
power -= 25;
|
||||
|
||||
process++;
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ public class TileEntityMachineDiesel extends TileEntity implements ISidedInvento
|
||||
public int power;
|
||||
public int diesel;
|
||||
public int soundCycle = 0;
|
||||
public static final int maxPower = 10000;
|
||||
public static final int maxPower = 100000;
|
||||
public int powerCap = 10000;
|
||||
public int superTimer;
|
||||
public static final int maxDiesel = 10000;
|
||||
@ -151,7 +151,7 @@ public class TileEntityMachineDiesel extends TileEntity implements ISidedInvento
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
this.power = nbt.getInteger("powerTime");
|
||||
this.diesel = nbt.getShort("diesel");
|
||||
this.diesel = nbt.getInteger("diesel");
|
||||
this.powerCap = nbt.getInteger("powerCap");
|
||||
this.superTimer = nbt.getInteger("superTimer");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
@ -169,7 +169,7 @@ public class TileEntityMachineDiesel extends TileEntity implements ISidedInvento
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setInteger("powerTime", power);
|
||||
nbt.setShort("diesel", (short) diesel);
|
||||
nbt.setInteger("diesel", diesel);
|
||||
nbt.setInteger("powerCap", powerCap);
|
||||
nbt.setInteger("superTimer", superTimer);
|
||||
NBTTagList list = new NBTTagList();
|
||||
@ -344,8 +344,8 @@ public class TileEntityMachineDiesel extends TileEntity implements ISidedInvento
|
||||
if (diesel < 0)
|
||||
diesel = 0;
|
||||
|
||||
if (power + 25 <= powerCap && this.superTimer <= 0) {
|
||||
power += 25;
|
||||
if (power + 250 <= powerCap && this.superTimer <= 0) {
|
||||
power += 250;
|
||||
} else if (power + 1000000000 <= powerCap && this.superTimer > 0) {
|
||||
power += 1000000000;
|
||||
} else {
|
||||
|
||||
@ -22,7 +22,7 @@ public class TileEntityMachineElectricFurnace extends TileEntity implements ISid
|
||||
|
||||
public int dualCookTime;
|
||||
public int power;
|
||||
public static final int maxPower = 10000;
|
||||
public static final int maxPower = 100000;
|
||||
public static final int processingSpeed = 100;
|
||||
|
||||
private static final int[] slots_top = new int[] {1};
|
||||
@ -140,8 +140,8 @@ public class TileEntityMachineElectricFurnace extends TileEntity implements ISid
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
this.power = nbt.getShort("powerTime");
|
||||
this.dualCookTime = nbt.getShort("cookTime");
|
||||
this.power = nbt.getInteger("powerTime");
|
||||
this.dualCookTime = nbt.getInteger("cookTime");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
for(int i = 0; i < list.tagCount(); i++)
|
||||
@ -158,8 +158,8 @@ public class TileEntityMachineElectricFurnace extends TileEntity implements ISid
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("powerTime", (short) power);
|
||||
nbt.setShort("cookTime", (short) dualCookTime);
|
||||
nbt.setInteger("powerTime", power);
|
||||
nbt.setInteger("cookTime", dualCookTime);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
@ -280,7 +280,7 @@ public class TileEntityMachineElectricFurnace extends TileEntity implements ISid
|
||||
{
|
||||
dualCookTime++;
|
||||
|
||||
power -= 5;
|
||||
power -= 50;
|
||||
|
||||
if(this.dualCookTime == TileEntityMachineElectricFurnace.processingSpeed)
|
||||
{
|
||||
|
||||
@ -170,10 +170,10 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
water = nbt.getShort("water") * 100;
|
||||
cool = nbt.getShort("cool") * 100;
|
||||
power = nbt.getShort("power") * 100;
|
||||
heat = nbt.getShort("heat") * 100;
|
||||
water = nbt.getInteger("water");
|
||||
cool = nbt.getInteger("cool");
|
||||
power = nbt.getInteger("power");
|
||||
heat = nbt.getInteger("heat");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
for(int i = 0; i < list.tagCount(); i++)
|
||||
@ -190,10 +190,10 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("water", (short) (water/100));
|
||||
nbt.setShort("cool", (short) (cool/100));
|
||||
nbt.setShort("power", (short) (power/100));
|
||||
nbt.setShort("heat", (short) (heat/100));
|
||||
nbt.setInteger("water", water);
|
||||
nbt.setInteger("cool", cool);
|
||||
nbt.setInteger("power", power);
|
||||
nbt.setInteger("heat", heat);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
@ -385,7 +385,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(10);
|
||||
attemptPower(100);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -397,7 +397,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(10);
|
||||
attemptPower(100);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -409,7 +409,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(10);
|
||||
attemptPower(100);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -421,7 +421,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(2);
|
||||
attemptPower(15);
|
||||
attemptPower(150);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -433,7 +433,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(2);
|
||||
attemptPower(15);
|
||||
attemptPower(150);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -445,7 +445,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(2);
|
||||
attemptPower(15);
|
||||
attemptPower(150);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -457,7 +457,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(5);
|
||||
attemptPower(50);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -469,7 +469,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(5);
|
||||
attemptPower(50);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -481,7 +481,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(5);
|
||||
attemptPower(50);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -493,7 +493,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(10);
|
||||
attemptPower(25);
|
||||
attemptPower(25000);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -505,7 +505,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(10);
|
||||
attemptPower(25);
|
||||
attemptPower(25000);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -517,7 +517,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(10);
|
||||
attemptPower(25);
|
||||
attemptPower(25000);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -546,10 +546,10 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
||||
((slots[7] != null && !(slots[7].getItem() instanceof ItemFuelRod)) || slots[7] == null) &&
|
||||
((slots[8] != null && !(slots[8].getItem() instanceof ItemFuelRod)) || slots[8] == null))
|
||||
{
|
||||
if(this.heat - 10 >= 0 && this.cool - 10 >= 0)
|
||||
if(this.heat - 10 >= 0 && this.cool - 2 >= 0)
|
||||
{
|
||||
this.heat -= 10;
|
||||
this.cool -= 10;
|
||||
this.cool -= 2;
|
||||
}
|
||||
|
||||
if(this.heat < 10 && this.cool != 0)
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -264,4 +266,11 @@ public class TileEntityMachinePuF6Tank extends TileEntity implements ISidedInven
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -20,7 +20,7 @@ public class TileEntityMachineSchrabidiumTransmutator extends TileEntity impleme
|
||||
public int power = 0;
|
||||
public int process = 0;
|
||||
public int soundCycle = 0;
|
||||
public static final int maxPower = 500000000;
|
||||
public static final int maxPower = 5000000;
|
||||
public static final int processSpeed = 60;
|
||||
Random rand = new Random();
|
||||
|
||||
@ -158,7 +158,7 @@ public class TileEntityMachineSchrabidiumTransmutator extends TileEntity impleme
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setInteger("power", (short) (power));
|
||||
nbt.setInteger("power", power);
|
||||
nbt.setShort("process", (short) process);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
@ -202,10 +202,7 @@ public class TileEntityMachineSchrabidiumTransmutator extends TileEntity impleme
|
||||
}
|
||||
|
||||
public int getPowerScaled(int i) {
|
||||
int p = (int) (power / 50000);
|
||||
int m = (int) (maxPower / 50000);
|
||||
int r = (p * i) / m;
|
||||
return r;
|
||||
return (power * i) / maxPower;
|
||||
}
|
||||
|
||||
public int getProgressScaled(int i) {
|
||||
@ -213,7 +210,7 @@ public class TileEntityMachineSchrabidiumTransmutator extends TileEntity impleme
|
||||
}
|
||||
|
||||
public boolean canProcess() {
|
||||
if (power >= 499000000 && slots[0] != null && slots[0].getItem() == ModItems.ingot_uranium && slots[2] != null
|
||||
if (power >= 4990000 && slots[0] != null && slots[0].getItem() == ModItems.ingot_uranium && slots[2] != null
|
||||
&& slots[2].getItem() == ModItems.redcoil_capacitor
|
||||
&& slots[2].getItemDamage() < slots[2].getMaxDamage()
|
||||
&& (slots[1] == null || (slots[1] != null && slots[1].getItem() == ModItems.ingot_schrabidium
|
||||
|
||||
@ -148,7 +148,7 @@ public class TileEntityMachineShredder extends TileEntity implements ISidedInven
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
this.power = nbt.getShort("powerTime");
|
||||
this.power = nbt.getInteger("powerTime");
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
for(int i = 0; i < list.tagCount(); i++)
|
||||
@ -165,7 +165,7 @@ public class TileEntityMachineShredder extends TileEntity implements ISidedInven
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("powerTime", (short) power);
|
||||
nbt.setInteger("powerTime", power);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -264,4 +266,11 @@ public class TileEntityMachineUF6Tank extends TileEntity implements ISidedInvent
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -190,4 +192,11 @@ public class TileEntityNukeBoy extends TileEntity implements ISidedInventory {
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,6 +3,8 @@ package com.hbm.tileentity;
|
||||
import com.hbm.blocks.ModBlocks;
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
@ -458,4 +460,11 @@ public class TileEntityNukeCustom extends TileEntity implements ISidedInventory
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -200,4 +202,11 @@ public class TileEntityNukeFleija extends TileEntity implements ISidedInventory
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -252,4 +254,11 @@ public class TileEntityNukeGadget extends TileEntity implements ISidedInventory
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -226,4 +228,11 @@ public class TileEntityNukeMan extends TileEntity implements ISidedInventory {
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -212,4 +214,11 @@ public class TileEntityNukeMike extends TileEntity implements ISidedInventory {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -202,4 +204,11 @@ public class TileEntityNukePrototype extends TileEntity implements ISidedInvento
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,6 +2,8 @@ package com.hbm.tileentity;
|
||||
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.inventory.ISidedInventory;
|
||||
@ -209,4 +211,11 @@ public class TileEntityNukeTsar extends TileEntity implements ISidedInventory {
|
||||
public AxisAlignedBB getRenderBoundingBox() {
|
||||
return TileEntity.INFINITE_EXTENT_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
@ -176,10 +176,10 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
water = nbt.getShort("water") * 1000;
|
||||
cool = nbt.getShort("cool") * 1000;
|
||||
power = nbt.getShort("power") * 100;
|
||||
heat = nbt.getShort("heat") * 100;
|
||||
water = nbt.getInteger("water");
|
||||
cool = nbt.getInteger("cool");
|
||||
power = nbt.getInteger("power");
|
||||
heat = nbt.getInteger("heat");
|
||||
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
@ -197,10 +197,10 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("water", (short) (water/1000));
|
||||
nbt.setShort("cool", (short) (cool/1000));
|
||||
nbt.setShort("power", (short) (power/100));
|
||||
nbt.setShort("heat", (short) (heat/100));
|
||||
nbt.setInteger("water", water);
|
||||
nbt.setInteger("cool", cool);
|
||||
nbt.setInteger("power", power);
|
||||
nbt.setInteger("heat", heat);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
@ -317,7 +317,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(10);
|
||||
attemptPower(250);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -329,7 +329,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(10);
|
||||
attemptPower(250);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -341,7 +341,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(10);
|
||||
attemptPower(250);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -353,7 +353,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(2);
|
||||
attemptPower(15);
|
||||
attemptPower(375);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -365,7 +365,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(2);
|
||||
attemptPower(15);
|
||||
attemptPower(375);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -377,7 +377,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(2);
|
||||
attemptPower(15);
|
||||
attemptPower(375);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -389,7 +389,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(5);
|
||||
attemptPower(125);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -401,7 +401,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(5);
|
||||
attemptPower(125);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -413,7 +413,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(1);
|
||||
attemptPower(5);
|
||||
attemptPower(125);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -425,7 +425,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(10);
|
||||
attemptPower(25);
|
||||
attemptPower(62500);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -437,7 +437,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(10);
|
||||
attemptPower(25);
|
||||
attemptPower(62500);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -449,7 +449,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
int j = slots[i].getItemDamage();
|
||||
this.slots[i].setItemDamage(j += 1);
|
||||
attemptHeat(10);
|
||||
attemptPower(25);
|
||||
attemptPower(62500);
|
||||
|
||||
if(this.slots[i].getItemDamage() == this.slots[i].getMaxDamage())
|
||||
{
|
||||
@ -503,7 +503,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
||||
if(this.heat - 10 >= 0 && this.cool - 10 >= 0)
|
||||
{
|
||||
this.heat -= 10;
|
||||
this.cool -= 10;
|
||||
this.cool -= 2;
|
||||
}
|
||||
|
||||
if(this.heat < 10 && this.cool != 0)
|
||||
|
||||
@ -1,7 +1,16 @@
|
||||
package com.hbm.tileentity;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TileEntityRedBarrel extends TileEntity {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -167,8 +167,8 @@ public class TileEntityWatzCore extends TileEntity implements ISidedInventory, I
|
||||
super.readFromNBT(nbt);
|
||||
NBTTagList list = nbt.getTagList("items", 10);
|
||||
|
||||
waste = nbt.getShort("deut") * 1000;
|
||||
power = nbt.getShort("power") * 10000;
|
||||
waste = nbt.getInteger("deut");
|
||||
power = nbt.getInteger("power");
|
||||
|
||||
slots = new ItemStack[getSizeInventory()];
|
||||
|
||||
@ -186,8 +186,8 @@ public class TileEntityWatzCore extends TileEntity implements ISidedInventory, I
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound nbt) {
|
||||
super.writeToNBT(nbt);
|
||||
nbt.setShort("deut", (short) (waste/1000));
|
||||
nbt.setShort("power", (short) (power/10000));
|
||||
nbt.setInteger("deut", waste);
|
||||
nbt.setInteger("power", power);
|
||||
NBTTagList list = new NBTTagList();
|
||||
|
||||
for(int i = 0; i < slots.length; i++)
|
||||
|
||||
@ -6,6 +6,8 @@ import java.util.List;
|
||||
import com.hbm.entity.mob.EntityNuclearCreeper;
|
||||
import com.hbm.lib.Library;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.monster.EntityCreeper;
|
||||
@ -94,4 +96,11 @@ public class TileEntityYellowBarrel extends TileEntity {
|
||||
|
||||
strength = (int)f;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public double getMaxRenderDistanceSquared()
|
||||
{
|
||||
return 65536.0D;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user