dynamic barrels, extended fluid properties, new textures
@ -2255,10 +2255,10 @@ item.ams_muzzle.name=Strahlenemissions-Mündung
|
|||||||
|
|
||||||
item.ams_lens.name=Stabilisierer-Linse
|
item.ams_lens.name=Stabilisierer-Linse
|
||||||
|
|
||||||
item.ams_core_sing.name=Vibrierende Singularität (AMS-Kern)
|
item.ams_core_sing.name=Vibrierende Singularität (AMS/DFC-Kern)
|
||||||
item.ams_core_wormhole.name=Winziges Wurmloch (AMS-Kern)
|
item.ams_core_wormhole.name=Winziges Wurmloch (AMS/DFC-Kern)
|
||||||
item.ams_core_eyeofharmony.name=Auge der Harmonie (AMS-Kern)
|
item.ams_core_eyeofharmony.name=Auge der Harmonie (AMS/DFC-Kern)
|
||||||
item.ams_core_thingy.name=Dings (AMS-Kern)
|
item.ams_core_thingy.name=Dings (AMS/DFC-Kern)
|
||||||
|
|
||||||
item.crystal_energy.name=Energiekristall
|
item.crystal_energy.name=Energiekristall
|
||||||
item.pellet_coolant.name=Kühlcluster
|
item.pellet_coolant.name=Kühlcluster
|
||||||
|
|||||||
@ -2255,10 +2255,10 @@ item.ams_muzzle.name=Ray-Emission Muzzle
|
|||||||
|
|
||||||
item.ams_lens.name=Stabilizer Lens
|
item.ams_lens.name=Stabilizer Lens
|
||||||
|
|
||||||
item.ams_core_sing.name=Vibrant Singularity (AMS Core)
|
item.ams_core_sing.name=Vibrant Singularity (AMS/DFC Core)
|
||||||
item.ams_core_wormhole.name=Tiny Wormhole (AMS Core)
|
item.ams_core_wormhole.name=Tiny Wormhole (AMS/DFC Core)
|
||||||
item.ams_core_eyeofharmony.name=Eye of Harmony (AMS Core)
|
item.ams_core_eyeofharmony.name=Eye of Harmony (AMS/DFC Core)
|
||||||
item.ams_core_thingy.name=Thingy (AMS Core)
|
item.ams_core_thingy.name=Thingy (AMS/DFC Core)
|
||||||
|
|
||||||
item.crystal_energy.name=Energy Crystal
|
item.crystal_energy.name=Energy Crystal
|
||||||
item.pellet_coolant.name=Coolant Cluster
|
item.pellet_coolant.name=Coolant Cluster
|
||||||
|
|||||||
BIN
assets/hbm/textures/blocks/barrel_Iron.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/hbm/textures/blocks/barrel_antimatter.png
Normal file
|
After Width: | Height: | Size: 966 B |
BIN
assets/hbm/textures/blocks/barrel_corroded.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
assets/hbm/textures/blocks/barrel_plastic.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 584 B After Width: | Height: | Size: 1.0 KiB |
BIN
assets/hbm/textures/blocks/barrel_steel.png
Normal file
|
After Width: | Height: | Size: 926 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.2 KiB |
BIN
assets/hbm/textures/gui/storage/gui_barrel.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 415 B After Width: | Height: | Size: 445 B |
|
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 400 B |
|
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 325 B |
BIN
assets/hbm/textures/items/plate2grayscale.png
Normal file
|
After Width: | Height: | Size: 358 B |
|
Before Width: | Height: | Size: 393 B |
|
Before Width: | Height: | Size: 470 B |
BIN
assets/hbm/textures/items/plate_aluminum.png
Normal file
|
After Width: | Height: | Size: 380 B |
|
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 382 B |
|
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 416 B |
|
Before Width: | Height: | Size: 323 B After Width: | Height: | Size: 447 B |
|
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 452 B |
|
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 398 B After Width: | Height: | Size: 480 B |
|
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 350 B |
|
Before Width: | Height: | Size: 474 B |
|
Before Width: | Height: | Size: 480 B |
|
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 374 B |
@ -6,6 +6,7 @@ import com.hbm.blocks.fluid.*;
|
|||||||
import com.hbm.blocks.machine.*;
|
import com.hbm.blocks.machine.*;
|
||||||
import com.hbm.blocks.test.*;
|
import com.hbm.blocks.test.*;
|
||||||
import com.hbm.items.bomb.ItemPrototypeBlock;
|
import com.hbm.items.bomb.ItemPrototypeBlock;
|
||||||
|
import com.hbm.items.special.ItemBlockLore;
|
||||||
import com.hbm.items.special.ItemOreBlock;
|
import com.hbm.items.special.ItemOreBlock;
|
||||||
import com.hbm.items.special.ItemPlasmaBlock;
|
import com.hbm.items.special.ItemPlasmaBlock;
|
||||||
import com.hbm.items.special.ItemSchrabidiumBlock;
|
import com.hbm.items.special.ItemSchrabidiumBlock;
|
||||||
@ -395,6 +396,13 @@ public class ModBlocks {
|
|||||||
public static Block gas_duct;
|
public static Block gas_duct;
|
||||||
public static Block fluid_duct;
|
public static Block fluid_duct;
|
||||||
|
|
||||||
|
public static Block barrel_plastic;
|
||||||
|
public static Block barrel_corroded;
|
||||||
|
public static Block barrel_iron;
|
||||||
|
public static Block barrel_steel;
|
||||||
|
public static Block barrel_antimatter;
|
||||||
|
public static final int guiID_barrel = 18;
|
||||||
|
|
||||||
public static Block machine_transformer;
|
public static Block machine_transformer;
|
||||||
public static Block machine_transformer_20;
|
public static Block machine_transformer_20;
|
||||||
public static Block machine_transformer_dnt;
|
public static Block machine_transformer_dnt;
|
||||||
@ -838,7 +846,7 @@ public class ModBlocks {
|
|||||||
asphalt = new BlockGeneric(Material.rock).setBlockName("asphalt").setCreativeTab(MainRegistry.blockTab).setHardness(15.0F).setResistance(100.0F).setBlockTextureName(RefStrings.MODID + ":asphalt");
|
asphalt = new BlockGeneric(Material.rock).setBlockName("asphalt").setCreativeTab(MainRegistry.blockTab).setHardness(15.0F).setResistance(100.0F).setBlockTextureName(RefStrings.MODID + ":asphalt");
|
||||||
|
|
||||||
reinforced_brick = new BlockGeneric(Material.rock).setBlockName("reinforced_brick").setCreativeTab(MainRegistry.blockTab).setLightOpacity(15).setHardness(15.0F).setResistance(8000.0F).setBlockTextureName(RefStrings.MODID + ":reinforced_brick");
|
reinforced_brick = new BlockGeneric(Material.rock).setBlockName("reinforced_brick").setCreativeTab(MainRegistry.blockTab).setLightOpacity(15).setHardness(15.0F).setResistance(8000.0F).setBlockTextureName(RefStrings.MODID + ":reinforced_brick");
|
||||||
reinforced_glass = new ReinforcedBlock(Material.glass).setBlockName("reinforced_glass").setCreativeTab(MainRegistry.blockTab).setLightOpacity(0).setHardness(15.0F).setResistance(200.0F).setBlockTextureName(RefStrings.MODID + ":reinforced_glass");
|
reinforced_glass = new ReinforcedBlock(Material.glass).setBlockName("reinforced_glass").setCreativeTab(MainRegistry.blockTab).setLightOpacity(0).setHardness(5.0F).setResistance(200.0F).setBlockTextureName(RefStrings.MODID + ":reinforced_glass");
|
||||||
reinforced_light = new ReinforcedBlock(Material.rock).setBlockName("reinforced_light").setCreativeTab(MainRegistry.blockTab).setLightOpacity(15).setLightLevel(1.0F).setHardness(15.0F).setResistance(300.0F).setBlockTextureName(RefStrings.MODID + ":reinforced_light");
|
reinforced_light = new ReinforcedBlock(Material.rock).setBlockName("reinforced_light").setCreativeTab(MainRegistry.blockTab).setLightOpacity(15).setLightLevel(1.0F).setHardness(15.0F).setResistance(300.0F).setBlockTextureName(RefStrings.MODID + ":reinforced_light");
|
||||||
reinforced_sand = new BlockGeneric(Material.rock).setBlockName("reinforced_sand").setCreativeTab(MainRegistry.blockTab).setLightOpacity(15).setHardness(15.0F).setResistance(400.0F).setBlockTextureName(RefStrings.MODID + ":reinforced_sand");
|
reinforced_sand = new BlockGeneric(Material.rock).setBlockName("reinforced_sand").setCreativeTab(MainRegistry.blockTab).setLightOpacity(15).setHardness(15.0F).setResistance(400.0F).setBlockTextureName(RefStrings.MODID + ":reinforced_sand");
|
||||||
reinforced_lamp_off = new ReinforcedLamp(Material.rock, false).setBlockName("reinforced_lamp_off").setCreativeTab(MainRegistry.blockTab).setHardness(15.0F).setResistance(300.0F).setBlockTextureName(RefStrings.MODID + ":reinforced_lamp_off");
|
reinforced_lamp_off = new ReinforcedLamp(Material.rock, false).setBlockName("reinforced_lamp_off").setCreativeTab(MainRegistry.blockTab).setHardness(15.0F).setResistance(300.0F).setBlockTextureName(RefStrings.MODID + ":reinforced_lamp_off");
|
||||||
@ -1019,6 +1027,12 @@ public class ModBlocks {
|
|||||||
gas_duct = new BlockGasDuct(Material.iron).setBlockName("gas_duct").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":gas_duct_icon");
|
gas_duct = new BlockGasDuct(Material.iron).setBlockName("gas_duct").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":gas_duct_icon");
|
||||||
fluid_duct = new BlockFluidDuct(Material.iron).setBlockName("fluid_duct").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":fluid_duct_icon");
|
fluid_duct = new BlockFluidDuct(Material.iron).setBlockName("fluid_duct").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":fluid_duct_icon");
|
||||||
|
|
||||||
|
barrel_plastic = new BlockFluidBarrel(Material.iron, 12000).setBlockName("barrel_plastic").setStepSound(Block.soundTypeStone).setHardness(2.0F).setResistance(5.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":barrel_plastic");
|
||||||
|
barrel_corroded = new BlockFluidBarrel(Material.iron, 6000).setBlockName("barrel_corroded").setStepSound(Block.soundTypeMetal).setHardness(2.0F).setResistance(5.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":barrel_corroded");
|
||||||
|
barrel_iron = new BlockFluidBarrel(Material.iron, 8000).setBlockName("barrel_iron").setStepSound(Block.soundTypeMetal).setHardness(2.0F).setResistance(5.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":barrel_iron");
|
||||||
|
barrel_steel = new BlockFluidBarrel(Material.iron, 16000).setBlockName("barrel_steel").setStepSound(Block.soundTypeMetal).setHardness(2.0F).setResistance(5.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":barrel_steel");
|
||||||
|
barrel_antimatter = new BlockFluidBarrel(Material.iron, 16000).setBlockName("barrel_antimatter").setStepSound(Block.soundTypeMetal).setHardness(2.0F).setResistance(5.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":barrel_antimatter");
|
||||||
|
|
||||||
machine_transformer = new MachineTransformer(Material.iron, 10000L, 1).setBlockName("machine_transformer").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":machine_transformer_iron");
|
machine_transformer = new MachineTransformer(Material.iron, 10000L, 1).setBlockName("machine_transformer").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":machine_transformer_iron");
|
||||||
machine_transformer_dnt = new MachineTransformer(Material.iron, 1000000000000000L, 1).setBlockName("machine_transformer_dnt").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":machine_transformer");
|
machine_transformer_dnt = new MachineTransformer(Material.iron, 1000000000000000L, 1).setBlockName("machine_transformer_dnt").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":machine_transformer");
|
||||||
machine_transformer_20 = new MachineTransformer(Material.iron, 10000L, 20).setBlockName("machine_transformer_20").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":machine_transformer_iron");
|
machine_transformer_20 = new MachineTransformer(Material.iron, 10000L, 20).setBlockName("machine_transformer_20").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":machine_transformer_iron");
|
||||||
@ -1533,9 +1547,9 @@ public class ModBlocks {
|
|||||||
GameRegistry.registerBlock(det_cord, det_cord.getUnlocalizedName());
|
GameRegistry.registerBlock(det_cord, det_cord.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(det_charge, det_charge.getUnlocalizedName());
|
GameRegistry.registerBlock(det_charge, det_charge.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(det_nuke, det_nuke.getUnlocalizedName());
|
GameRegistry.registerBlock(det_nuke, det_nuke.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(red_barrel, red_barrel.getUnlocalizedName());
|
GameRegistry.registerBlock(red_barrel, ItemBlockLore.class, red_barrel.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(pink_barrel, pink_barrel.getUnlocalizedName());
|
GameRegistry.registerBlock(pink_barrel, ItemBlockLore.class, pink_barrel.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(lox_barrel, lox_barrel.getUnlocalizedName());
|
GameRegistry.registerBlock(lox_barrel, ItemBlockLore.class, lox_barrel.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(taint_barrel, taint_barrel.getUnlocalizedName());
|
GameRegistry.registerBlock(taint_barrel, taint_barrel.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(yellow_barrel, yellow_barrel.getUnlocalizedName());
|
GameRegistry.registerBlock(yellow_barrel, yellow_barrel.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(vitrified_barrel, vitrified_barrel.getUnlocalizedName());
|
GameRegistry.registerBlock(vitrified_barrel, vitrified_barrel.getUnlocalizedName());
|
||||||
@ -1624,6 +1638,11 @@ public class ModBlocks {
|
|||||||
GameRegistry.registerBlock(gas_duct, gas_duct.getUnlocalizedName());
|
GameRegistry.registerBlock(gas_duct, gas_duct.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(gas_duct_solid, gas_duct_solid.getUnlocalizedName());
|
GameRegistry.registerBlock(gas_duct_solid, gas_duct_solid.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(fluid_duct, fluid_duct.getUnlocalizedName());
|
GameRegistry.registerBlock(fluid_duct, fluid_duct.getUnlocalizedName());
|
||||||
|
GameRegistry.registerBlock(barrel_plastic, ItemBlockLore.class, barrel_plastic.getUnlocalizedName());
|
||||||
|
GameRegistry.registerBlock(barrel_corroded, ItemBlockLore.class, barrel_corroded.getUnlocalizedName());
|
||||||
|
GameRegistry.registerBlock(barrel_iron, ItemBlockLore.class, barrel_iron.getUnlocalizedName());
|
||||||
|
GameRegistry.registerBlock(barrel_steel, ItemBlockLore.class, barrel_steel.getUnlocalizedName());
|
||||||
|
GameRegistry.registerBlock(barrel_antimatter, ItemBlockLore.class, barrel_antimatter.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(machine_battery_potato, machine_battery_potato.getUnlocalizedName());
|
GameRegistry.registerBlock(machine_battery_potato, machine_battery_potato.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(machine_battery, machine_battery.getUnlocalizedName());
|
GameRegistry.registerBlock(machine_battery, machine_battery.getUnlocalizedName());
|
||||||
GameRegistry.registerBlock(machine_lithium_battery, machine_lithium_battery.getUnlocalizedName());
|
GameRegistry.registerBlock(machine_lithium_battery, machine_lithium_battery.getUnlocalizedName());
|
||||||
|
|||||||
@ -4,6 +4,8 @@ import java.util.Random;
|
|||||||
|
|
||||||
import com.hbm.blocks.ModBlocks;
|
import com.hbm.blocks.ModBlocks;
|
||||||
import com.hbm.explosion.ExplosionChaos;
|
import com.hbm.explosion.ExplosionChaos;
|
||||||
|
import com.hbm.main.MainRegistry;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
@ -33,7 +35,8 @@ public class CheaterVirus extends Block {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateTick(World world, int x, int y, int z, Random rand) {
|
public void updateTick(World world, int x, int y, int z, Random rand) {
|
||||||
{
|
|
||||||
|
if(MainRegistry.enableVirus){
|
||||||
if(world.getBlock(x + 1, y, z) != ModBlocks.cheater_virus && world.getBlock(x + 1, y, z) != Blocks.air && world.getBlock(x + 1, y, z) != ModBlocks.cheater_virus) {
|
if(world.getBlock(x + 1, y, z) != ModBlocks.cheater_virus && world.getBlock(x + 1, y, z) != Blocks.air && world.getBlock(x + 1, y, z) != ModBlocks.cheater_virus) {
|
||||||
world.setBlock(x + 1, y, z, ModBlocks.cheater_virus);
|
world.setBlock(x + 1, y, z, ModBlocks.cheater_virus);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,8 @@ package com.hbm.blocks.bomb;
|
|||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import com.hbm.blocks.ModBlocks;
|
import com.hbm.blocks.ModBlocks;
|
||||||
|
import com.hbm.main.MainRegistry;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
@ -21,6 +23,9 @@ public class CheaterVirusSeed extends Block {
|
|||||||
|
|
||||||
super.breakBlock(world, x, y, z, block, i);
|
super.breakBlock(world, x, y, z, block, i);
|
||||||
|
|
||||||
|
if(!MainRegistry.enableVirus)
|
||||||
|
return;
|
||||||
|
|
||||||
if((world.getBlock(x + 1, y, z) == Blocks.air || world.getBlock(x + 1, y, z) == ModBlocks.cheater_virus || world.getBlock(x + 1, y, z) == ModBlocks.cheater_virus_seed) &&
|
if((world.getBlock(x + 1, y, z) == Blocks.air || world.getBlock(x + 1, y, z) == ModBlocks.cheater_virus || world.getBlock(x + 1, y, z) == ModBlocks.cheater_virus_seed) &&
|
||||||
(world.getBlock(x - 1, y, z) == Blocks.air || world.getBlock(x - 1, y, z) == ModBlocks.cheater_virus || world.getBlock(x - 1, y, z) == ModBlocks.cheater_virus_seed) &&
|
(world.getBlock(x - 1, y, z) == Blocks.air || world.getBlock(x - 1, y, z) == ModBlocks.cheater_virus || world.getBlock(x - 1, y, z) == ModBlocks.cheater_virus_seed) &&
|
||||||
(world.getBlock(x, y + 1, z) == Blocks.air || world.getBlock(x, y + 1, z) == ModBlocks.cheater_virus || world.getBlock(x, y + 1, z) == ModBlocks.cheater_virus_seed) &&
|
(world.getBlock(x, y + 1, z) == Blocks.air || world.getBlock(x, y + 1, z) == ModBlocks.cheater_virus || world.getBlock(x, y + 1, z) == ModBlocks.cheater_virus_seed) &&
|
||||||
@ -37,6 +42,9 @@ public class CheaterVirusSeed extends Block {
|
|||||||
@Override
|
@Override
|
||||||
public void updateTick(World world, int x, int y, int z, Random rand) {
|
public void updateTick(World world, int x, int y, int z, Random rand) {
|
||||||
|
|
||||||
|
if(!MainRegistry.enableVirus)
|
||||||
|
return;
|
||||||
|
|
||||||
if((world.getBlock(x + 1, y, z) == Blocks.air || world.getBlock(x + 1, y, z) == ModBlocks.cheater_virus || world.getBlock(x + 1, y, z) == ModBlocks.cheater_virus_seed) &&
|
if((world.getBlock(x + 1, y, z) == Blocks.air || world.getBlock(x + 1, y, z) == ModBlocks.cheater_virus || world.getBlock(x + 1, y, z) == ModBlocks.cheater_virus_seed) &&
|
||||||
(world.getBlock(x - 1, y, z) == Blocks.air || world.getBlock(x - 1, y, z) == ModBlocks.cheater_virus || world.getBlock(x - 1, y, z) == ModBlocks.cheater_virus_seed) &&
|
(world.getBlock(x - 1, y, z) == Blocks.air || world.getBlock(x - 1, y, z) == ModBlocks.cheater_virus || world.getBlock(x - 1, y, z) == ModBlocks.cheater_virus_seed) &&
|
||||||
(world.getBlock(x, y + 1, z) == Blocks.air || world.getBlock(x, y + 1, z) == ModBlocks.cheater_virus || world.getBlock(x, y + 1, z) == ModBlocks.cheater_virus_seed) &&
|
(world.getBlock(x, y + 1, z) == Blocks.air || world.getBlock(x, y + 1, z) == ModBlocks.cheater_virus || world.getBlock(x, y + 1, z) == ModBlocks.cheater_virus_seed) &&
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package com.hbm.blocks.bomb;
|
|||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import com.hbm.blocks.ModBlocks;
|
import com.hbm.blocks.ModBlocks;
|
||||||
|
import com.hbm.main.MainRegistry;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
@ -18,7 +19,8 @@ public class CrystalVirus extends Block {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateTick(World world, int x, int y, int z, Random rand) {
|
public void updateTick(World world, int x, int y, int z, Random rand) {
|
||||||
{
|
|
||||||
|
if(MainRegistry.enableVirus) {
|
||||||
if(world.getBlock(x + 1, y, z) != ModBlocks.crystal_virus && world.getBlock(x + 1, y, z) != Blocks.air && world.getBlock(x + 1, y, z) != ModBlocks.crystal_hardened && world.getBlock(x + 1, y, z) != ModBlocks.crystal_pulsar) {
|
if(world.getBlock(x + 1, y, z) != ModBlocks.crystal_virus && world.getBlock(x + 1, y, z) != Blocks.air && world.getBlock(x + 1, y, z) != ModBlocks.crystal_hardened && world.getBlock(x + 1, y, z) != ModBlocks.crystal_pulsar) {
|
||||||
world.setBlock(x + 1, y, z, ModBlocks.crystal_virus);
|
world.setBlock(x + 1, y, z, ModBlocks.crystal_virus);
|
||||||
}
|
}
|
||||||
|
|||||||
122
com/hbm/blocks/machine/BlockFluidBarrel.java
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
package com.hbm.blocks.machine;
|
||||||
|
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
|
import com.hbm.blocks.ModBlocks;
|
||||||
|
import com.hbm.interfaces.Spaghetti;
|
||||||
|
import com.hbm.main.MainRegistry;
|
||||||
|
import com.hbm.tileentity.machine.TileEntityBarrel;
|
||||||
|
|
||||||
|
import cpw.mods.fml.common.network.internal.FMLNetworkHandler;
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.block.BlockContainer;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.entity.item.EntityItem;
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.inventory.ISidedInventory;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
public class BlockFluidBarrel extends BlockContainer {
|
||||||
|
|
||||||
|
int capacity;
|
||||||
|
|
||||||
|
public BlockFluidBarrel(Material p_i45386_1_, int capacity) {
|
||||||
|
super(p_i45386_1_);
|
||||||
|
this.capacity = capacity;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
|
||||||
|
return new TileEntityBarrel(capacity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getRenderType(){
|
||||||
|
return 334081;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isOpaqueCube() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean renderAsNormalBlock() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||||
|
if(world.isRemote) {
|
||||||
|
return true;
|
||||||
|
|
||||||
|
} else if(!player.isSneaking()) {
|
||||||
|
FMLNetworkHandler.openGui(player, MainRegistry.instance, ModBlocks.guiID_barrel, world, x, y, z);
|
||||||
|
return true;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private final Random field_149933_a = new Random();
|
||||||
|
private Random rand;
|
||||||
|
private static boolean keepInventory;
|
||||||
|
|
||||||
|
@Spaghetti("stop doing that and make a base class for fuck's sake")
|
||||||
|
@Override
|
||||||
|
public void breakBlock(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, Block p_149749_5_, int p_149749_6_)
|
||||||
|
{
|
||||||
|
if (!keepInventory)
|
||||||
|
{
|
||||||
|
ISidedInventory tileentityfurnace = (ISidedInventory)p_149749_1_.getTileEntity(p_149749_2_, p_149749_3_, p_149749_4_);
|
||||||
|
|
||||||
|
if (tileentityfurnace != null)
|
||||||
|
{
|
||||||
|
for (int i1 = 0; i1 < tileentityfurnace.getSizeInventory(); ++i1)
|
||||||
|
{
|
||||||
|
ItemStack itemstack = tileentityfurnace.getStackInSlot(i1);
|
||||||
|
|
||||||
|
if (itemstack != null)
|
||||||
|
{
|
||||||
|
float f = this.field_149933_a.nextFloat() * 0.8F + 0.1F;
|
||||||
|
float f1 = this.field_149933_a.nextFloat() * 0.8F + 0.1F;
|
||||||
|
float f2 = this.field_149933_a.nextFloat() * 0.8F + 0.1F;
|
||||||
|
|
||||||
|
while (itemstack.stackSize > 0)
|
||||||
|
{
|
||||||
|
int j1 = this.field_149933_a.nextInt(21) + 10;
|
||||||
|
|
||||||
|
if (j1 > itemstack.stackSize)
|
||||||
|
{
|
||||||
|
j1 = itemstack.stackSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
itemstack.stackSize -= j1;
|
||||||
|
EntityItem entityitem = new EntityItem(p_149749_1_, p_149749_2_ + f, p_149749_3_ + f1, p_149749_4_ + f2, new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage()));
|
||||||
|
|
||||||
|
if (itemstack.hasTagCompound())
|
||||||
|
{
|
||||||
|
entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());
|
||||||
|
}
|
||||||
|
|
||||||
|
float f3 = 0.05F;
|
||||||
|
entityitem.motionX = (float)this.field_149933_a.nextGaussian() * f3;
|
||||||
|
entityitem.motionY = (float)this.field_149933_a.nextGaussian() * f3 + 0.2F;
|
||||||
|
entityitem.motionZ = (float)this.field_149933_a.nextGaussian() * f3;
|
||||||
|
p_149749_1_.spawnEntityInWorld(entityitem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
p_149749_1_.func_147453_f(p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
super.breakBlock(p_149749_1_, p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_, p_149749_6_);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -8,18 +8,18 @@ public class FluidTypeHandler {
|
|||||||
NONE (0x888888, 0, 1, 1, "hbmfluid.none"),
|
NONE (0x888888, 0, 1, 1, "hbmfluid.none"),
|
||||||
|
|
||||||
WATER (0x3333FF, 1, 1, 1, "hbmfluid.water"),
|
WATER (0x3333FF, 1, 1, 1, "hbmfluid.water"),
|
||||||
STEAM (0xe5e5e5, 9, 2, 1, "hbmfluid.steam"),
|
STEAM (0xe5e5e5, 9, 2, 1, "hbmfluid.steam", true, false, false),
|
||||||
HOTSTEAM (0xE7D6D6, 1, 1, 2, "hbmfluid.hotsteam"),
|
HOTSTEAM (0xE7D6D6, 1, 1, 2, "hbmfluid.hotsteam", true, false, false),
|
||||||
SUPERHOTSTEAM (0xE7B7B7, 2, 1, 2, "hbmfluid.superhotsteam"),
|
SUPERHOTSTEAM (0xE7B7B7, 2, 1, 2, "hbmfluid.superhotsteam", true, false, false),
|
||||||
COOLANT (0xd8fcff, 2, 1, 1, "hbmfluid.coolant"),
|
COOLANT (0xd8fcff, 2, 1, 1, "hbmfluid.coolant"),
|
||||||
|
|
||||||
LAVA (0xFF3300, 3, 1, 1, "hbmfluid.lava"),
|
LAVA (0xFF3300, 3, 1, 1, "hbmfluid.lava", true, false, false),
|
||||||
|
|
||||||
DEUTERIUM (0x0000FF, 4, 1, 1, "hbmfluid.deuterium"),
|
DEUTERIUM (0x0000FF, 4, 1, 1, "hbmfluid.deuterium"),
|
||||||
TRITIUM (0x000099, 5, 1, 1, "hbmfluid.tritium"),
|
TRITIUM (0x000099, 5, 1, 1, "hbmfluid.tritium"),
|
||||||
|
|
||||||
OIL (0x020202, 6, 1, 1, "hbmfluid.oil"),
|
OIL (0x020202, 6, 1, 1, "hbmfluid.oil"),
|
||||||
HOTOIL (0x300900, 8, 2, 1, "hbmfluid.hotoil"),
|
HOTOIL (0x300900, 8, 2, 1, "hbmfluid.hotoil", true, false, false),
|
||||||
|
|
||||||
HEAVYOIL (0x141312, 2, 2, 1, "hbmfluid.heavyoil"),
|
HEAVYOIL (0x141312, 2, 2, 1, "hbmfluid.heavyoil"),
|
||||||
BITUMEN (0x1f2426, 3, 2, 1, "hbmfluid.bitumen"),
|
BITUMEN (0x1f2426, 3, 2, 1, "hbmfluid.bitumen"),
|
||||||
@ -45,21 +45,21 @@ public class FluidTypeHandler {
|
|||||||
|
|
||||||
NITAN (0x8018ad, 15, 2, 1, "hbmfluid.nitan"),
|
NITAN (0x8018ad, 15, 2, 1, "hbmfluid.nitan"),
|
||||||
|
|
||||||
UF6 (0xD1CEBE, 14, 1, 1, "hbmfluid.uf6"),
|
UF6 (0xD1CEBE, 14, 1, 1, "hbmfluid.uf6", false, true, false),
|
||||||
PUF6 (0x4C4C4C, 15, 1, 1, "hbmfluid.puf6"),
|
PUF6 (0x4C4C4C, 15, 1, 1, "hbmfluid.puf6", false, true, false),
|
||||||
SAS3 (0x4ffffc, 14, 2, 1, "hbmfluid.sas3"),
|
SAS3 (0x4ffffc, 14, 2, 1, "hbmfluid.sas3", false, true, false),
|
||||||
|
|
||||||
AMAT (0x010101, 0, 2, 1, "hbmfluid.amat"),
|
AMAT (0x010101, 0, 2, 1, "hbmfluid.amat", false, false, true),
|
||||||
ASCHRAB (0xb50000, 1, 2, 1, "hbmfluid.aschrab"),
|
ASCHRAB (0xb50000, 1, 2, 1, "hbmfluid.aschrab", false, false, true),
|
||||||
|
|
||||||
ACID (0xfff7aa, 10, 2, 1, "hbmfluid.acid"),
|
ACID (0xfff7aa, 10, 2, 1, "hbmfluid.acid", false, true, false),
|
||||||
WATZ (0x86653E, 11, 2, 1, "hbmfluid.watz"),
|
WATZ (0x86653E, 11, 2, 1, "hbmfluid.watz", false, true, false),
|
||||||
CRYOGEL (0x32ffff, 0, 1, 2, "hbmfluid.cryogel"),
|
CRYOGEL (0x32ffff, 0, 1, 2, "hbmfluid.cryogel"),
|
||||||
|
|
||||||
HYDROGEN (0x4286f4, 3, 1, 2, "hbmfluid.hydrogen"),
|
HYDROGEN (0x4286f4, 3, 1, 2, "hbmfluid.hydrogen"),
|
||||||
OXYGEN (0x98bdf9, 4, 1, 2, "hbmfluid.oxygen"),
|
OXYGEN (0x98bdf9, 4, 1, 2, "hbmfluid.oxygen"),
|
||||||
XENON (0xba45e8, 5, 1, 2, "hbmfluid.xenon"),
|
XENON (0xba45e8, 5, 1, 2, "hbmfluid.xenon"),
|
||||||
BALEFIRE (0x28e02e, 6, 1, 2, "hbmfluid.balefire");
|
BALEFIRE (0x28e02e, 6, 1, 2, "hbmfluid.balefire", true, true, false);
|
||||||
|
|
||||||
|
|
||||||
//Approximate HEX Color of the fluid, used for pipe rendering
|
//Approximate HEX Color of the fluid, used for pipe rendering
|
||||||
@ -72,6 +72,12 @@ public class FluidTypeHandler {
|
|||||||
private int sheetID;
|
private int sheetID;
|
||||||
//Unlocalized string ID of the fluid
|
//Unlocalized string ID of the fluid
|
||||||
private String name;
|
private String name;
|
||||||
|
//Whether the fluid counts is too hot for certain tanks
|
||||||
|
private boolean hot;
|
||||||
|
//Whether the fluid counts as corrosive and requires a steel tank
|
||||||
|
private boolean corrosive;
|
||||||
|
//Whether the fluid is antimatter and requires magnetic storage
|
||||||
|
private boolean antimatter;
|
||||||
|
|
||||||
private FluidType(int color, int x, int y, int sheet, String name) {
|
private FluidType(int color, int x, int y, int sheet, String name) {
|
||||||
this.color = color;
|
this.color = color;
|
||||||
@ -81,6 +87,17 @@ public class FluidTypeHandler {
|
|||||||
this.sheetID = sheet;
|
this.sheetID = sheet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private FluidType(int color, int x, int y, int sheet, String name, boolean hot, boolean corrosive, boolean antimatter) {
|
||||||
|
this.color = color;
|
||||||
|
this.textureX = x;
|
||||||
|
this.textureY = y;
|
||||||
|
this.name = name;
|
||||||
|
this.sheetID = sheet;
|
||||||
|
this.hot = hot;
|
||||||
|
this.corrosive = corrosive;
|
||||||
|
this.antimatter = antimatter;
|
||||||
|
}
|
||||||
|
|
||||||
public int getColor() {
|
public int getColor() {
|
||||||
return this.color;
|
return this.color;
|
||||||
}
|
}
|
||||||
@ -123,6 +140,18 @@ public class FluidTypeHandler {
|
|||||||
public String getName() {
|
public String getName() {
|
||||||
return this.toString();
|
return this.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isHot() {
|
||||||
|
return hot;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isCorrosive() {
|
||||||
|
return corrosive;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isAntimatter() {
|
||||||
|
return antimatter;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//More stuff to follow.
|
//More stuff to follow.
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import com.hbm.lib.RefStrings;
|
|||||||
import com.hbm.packet.PacketDispatcher;
|
import com.hbm.packet.PacketDispatcher;
|
||||||
import com.hbm.packet.TEFluidPacket;
|
import com.hbm.packet.TEFluidPacket;
|
||||||
|
|
||||||
|
import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
|
||||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||||
import net.minecraft.client.resources.I18n;
|
import net.minecraft.client.resources.I18n;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
@ -72,9 +73,9 @@ public class FluidTank {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Called on TE update
|
//Called on TE update
|
||||||
public void updateTank(int x, int y, int z) {
|
public void updateTank(int x, int y, int z, int dim) {
|
||||||
|
|
||||||
PacketDispatcher.wrapper.sendToAll(new TEFluidPacket(x, y, z, fluid, index, type));
|
PacketDispatcher.wrapper.sendToAllAround(new TEFluidPacket(x, y, z, fluid, index, type), new TargetPoint(dim, x, y, z, 100));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Fills tank from canisters
|
//Fills tank from canisters
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import com.hbm.tileentity.machine.TileEntityMachineBattery;
|
|||||||
|
|
||||||
public class GUIMachineBattery extends GuiInfoContainer {
|
public class GUIMachineBattery extends GuiInfoContainer {
|
||||||
|
|
||||||
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/gui_battery.png");
|
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/storage/gui_battery.png");
|
||||||
private TileEntityMachineBattery diFurnace;
|
private TileEntityMachineBattery diFurnace;
|
||||||
|
|
||||||
public GUIMachineBattery(InventoryPlayer invPlayer, TileEntityMachineBattery tedf) {
|
public GUIMachineBattery(InventoryPlayer invPlayer, TileEntityMachineBattery tedf) {
|
||||||
|
|||||||
@ -14,7 +14,7 @@ import net.minecraft.util.ResourceLocation;
|
|||||||
|
|
||||||
public class GUIMachineFluidTank extends GuiInfoContainer {
|
public class GUIMachineFluidTank extends GuiInfoContainer {
|
||||||
|
|
||||||
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/gui_tank.png");
|
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/storage/gui_tank.png");
|
||||||
private TileEntityMachineFluidTank tank;
|
private TileEntityMachineFluidTank tank;
|
||||||
|
|
||||||
public GUIMachineFluidTank(InventoryPlayer invPlayer, TileEntityMachineFluidTank tedf) {
|
public GUIMachineFluidTank(InventoryPlayer invPlayer, TileEntityMachineFluidTank tedf) {
|
||||||
|
|||||||
38
com/hbm/items/special/ItemBlockLore.java
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
package com.hbm.items.special;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.hbm.blocks.ModBlocks;
|
||||||
|
import com.hbm.blocks.generic.RedBarrel;
|
||||||
|
|
||||||
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.item.ItemBlock;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
|
public class ItemBlockLore extends ItemBlock {
|
||||||
|
|
||||||
|
public ItemBlockLore(Block p_i45328_1_) {
|
||||||
|
super(p_i45328_1_);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean bool) {
|
||||||
|
|
||||||
|
if(this.field_150939_a instanceof RedBarrel)
|
||||||
|
list.add("Static fluid barrel");
|
||||||
|
|
||||||
|
if(this.field_150939_a == ModBlocks.barrel_plastic)
|
||||||
|
list.add("Cannot store hot fluids");
|
||||||
|
|
||||||
|
if(this.field_150939_a == ModBlocks.barrel_iron)
|
||||||
|
list.add("Will leak when corrosive fluids are stored");
|
||||||
|
|
||||||
|
if(this.field_150939_a == ModBlocks.barrel_steel)
|
||||||
|
list.add("Can hold corrosive fluids");
|
||||||
|
|
||||||
|
if(this.field_150939_a == ModBlocks.barrel_antimatter)
|
||||||
|
list.add("Can store antimatter");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -14,8 +14,6 @@ import net.minecraft.util.IIcon;
|
|||||||
|
|
||||||
public class ItemTaintBlock extends ItemBlock
|
public class ItemTaintBlock extends ItemBlock
|
||||||
{
|
{
|
||||||
private static final String __OBFID = "CL_00000075";
|
|
||||||
|
|
||||||
public ItemTaintBlock(Block p_i45358_1_)
|
public ItemTaintBlock(Block p_i45358_1_)
|
||||||
{
|
{
|
||||||
super(p_i45358_1_);
|
super(p_i45358_1_);
|
||||||
@ -23,18 +21,12 @@ public class ItemTaintBlock extends ItemBlock
|
|||||||
this.setHasSubtypes(true);
|
this.setHasSubtypes(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets an icon index based on an item's damage value
|
|
||||||
*/
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public IIcon getIconFromDamage(int p_77617_1_)
|
public IIcon getIconFromDamage(int p_77617_1_)
|
||||||
{
|
{
|
||||||
return this.field_150939_a.func_149735_b(2, BlockTaint.func_150032_b(p_77617_1_));
|
return this.field_150939_a.func_149735_b(2, BlockTaint.func_150032_b(p_77617_1_));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the metadata of the block which this Item (ItemBlock) can place
|
|
||||||
*/
|
|
||||||
public int getMetadata(int p_77647_1_)
|
public int getMetadata(int p_77647_1_)
|
||||||
{
|
{
|
||||||
return p_77647_1_;
|
return p_77647_1_;
|
||||||
|
|||||||
@ -228,10 +228,11 @@ public class MainRegistry
|
|||||||
public static boolean enableBomberShortMode = false;
|
public static boolean enableBomberShortMode = false;
|
||||||
public static boolean enableVaults = true;
|
public static boolean enableVaults = true;
|
||||||
public static boolean enableRads = true;
|
public static boolean enableRads = true;
|
||||||
public static boolean enableCataclysm = true;
|
public static boolean enableCataclysm = false;
|
||||||
public static boolean enableExtendedLogging = false;
|
public static boolean enableExtendedLogging = false;
|
||||||
public static boolean enableHardcoreTaint = false;
|
public static boolean enableHardcoreTaint = false;
|
||||||
public static boolean enableGuns = true;
|
public static boolean enableGuns = true;
|
||||||
|
public static boolean enableVirus = true;
|
||||||
|
|
||||||
public static int uraniumSpawn = 6;
|
public static int uraniumSpawn = 6;
|
||||||
public static int thoriumSpawn = 7;
|
public static int thoriumSpawn = 7;
|
||||||
@ -534,6 +535,7 @@ public class MainRegistry
|
|||||||
GameRegistry.registerTileEntity(TileEntityCableSwitch.class, "tileentity_he_switch");
|
GameRegistry.registerTileEntity(TileEntityCableSwitch.class, "tileentity_he_switch");
|
||||||
GameRegistry.registerTileEntity(TileEntitySoyuzLauncher.class, "tileentity_soyuz_launcher");
|
GameRegistry.registerTileEntity(TileEntitySoyuzLauncher.class, "tileentity_soyuz_launcher");
|
||||||
GameRegistry.registerTileEntity(TileEntityTesla.class, "tileentity_tesla_coil");
|
GameRegistry.registerTileEntity(TileEntityTesla.class, "tileentity_tesla_coil");
|
||||||
|
GameRegistry.registerTileEntity(TileEntityBarrel.class, "tileentity_fluid_barrel");
|
||||||
|
|
||||||
EntityRegistry.registerModEntity(EntityRocket.class, "entity_rocket", 0, this, 250, 1, true);
|
EntityRegistry.registerModEntity(EntityRocket.class, "entity_rocket", 0, this, 250, 1, true);
|
||||||
EntityRegistry.registerModEntity(EntityNukeExplosion.class, "entity_nuke_explosion", 1, this, 250, 1, true);
|
EntityRegistry.registerModEntity(EntityNukeExplosion.class, "entity_nuke_explosion", 1, this, 250, 1, true);
|
||||||
@ -1541,6 +1543,7 @@ public class MainRegistry
|
|||||||
enableExtendedLogging = config.get(CATEGORY_GENERAL, "1.18_enableExtendedLogging", false).getBoolean(false);
|
enableExtendedLogging = config.get(CATEGORY_GENERAL, "1.18_enableExtendedLogging", false).getBoolean(false);
|
||||||
enableHardcoreTaint = config.get(CATEGORY_GENERAL, "1.19_enableHardcoreTaint", false).getBoolean(false);
|
enableHardcoreTaint = config.get(CATEGORY_GENERAL, "1.19_enableHardcoreTaint", false).getBoolean(false);
|
||||||
enableGuns = config.get(CATEGORY_GENERAL, "1.20_enableGuns", true).getBoolean(true);
|
enableGuns = config.get(CATEGORY_GENERAL, "1.20_enableGuns", true).getBoolean(true);
|
||||||
|
enableVirus = config.get(CATEGORY_GENERAL, "1.21_enableVirus", false).getBoolean(false);
|
||||||
|
|
||||||
final String CATEGORY_OREGEN = "02_ores";
|
final String CATEGORY_OREGEN = "02_ores";
|
||||||
Property PuraniumSpawn = config.get(CATEGORY_OREGEN, "2.00_uraniumSpawnrate", 6);
|
Property PuraniumSpawn = config.get(CATEGORY_OREGEN, "2.00_uraniumSpawnrate", 6);
|
||||||
|
|||||||
@ -167,7 +167,7 @@ public class TileEntityCompactLauncher extends TileEntity implements ISidedInven
|
|||||||
tanks[1].loadTank(2, 3, slots);
|
tanks[1].loadTank(2, 3, slots);
|
||||||
|
|
||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
power = Library.chargeTEFromItems(slots, 5, power, maxPower);
|
power = Library.chargeTEFromItems(slots, 5, power, maxPower);
|
||||||
|
|
||||||
|
|||||||
@ -169,7 +169,7 @@ public class TileEntityLaunchTable extends TileEntity implements ISidedInventory
|
|||||||
tanks[1].loadTank(2, 3, slots);
|
tanks[1].loadTank(2, 3, slots);
|
||||||
|
|
||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
power = Library.chargeTEFromItems(slots, 5, power, maxPower);
|
power = Library.chargeTEFromItems(slots, 5, power, maxPower);
|
||||||
|
|
||||||
|
|||||||
@ -260,7 +260,7 @@ public class TileEntityAMSBase extends TileEntity implements ISidedInventory, IS
|
|||||||
tanks[3].setType(6, 7, slots);
|
tanks[3].setType(6, 7, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 4; i++)
|
for(int i = 0; i < 4; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
int f1 = 0, f2 = 0, f3 = 0, f4 = 0;
|
int f1 = 0, f2 = 0, f3 = 0, f4 = 0;
|
||||||
int booster = 0;
|
int booster = 0;
|
||||||
|
|||||||
@ -217,7 +217,7 @@ public class TileEntityAMSEmitter extends TileEntity implements ISidedInventory,
|
|||||||
if(!locked) {
|
if(!locked) {
|
||||||
|
|
||||||
tank.setType(0, 1, slots);
|
tank.setType(0, 1, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
if(power > 0) {
|
if(power > 0) {
|
||||||
//" - (maxHeat / 2)" offsets center to 50% instead of 0%
|
//" - (maxHeat / 2)" offsets center to 50% instead of 0%
|
||||||
|
|||||||
@ -219,7 +219,7 @@ public class TileEntityAMSLimiter extends TileEntity implements ISidedInventory,
|
|||||||
if(!locked) {
|
if(!locked) {
|
||||||
|
|
||||||
tank.setType(0, 1, slots);
|
tank.setType(0, 1, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
if(power > 0) {
|
if(power > 0) {
|
||||||
//" - (maxHeat / 2)" offsets center to 50% instead of 0%
|
//" - (maxHeat / 2)" offsets center to 50% instead of 0%
|
||||||
|
|||||||
103
com/hbm/tileentity/machine/TileEntityBarrel.java
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
package com.hbm.tileentity.machine;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.hbm.handler.FluidTypeHandler.FluidType;
|
||||||
|
import com.hbm.interfaces.IFluidAcceptor;
|
||||||
|
import com.hbm.interfaces.IFluidSource;
|
||||||
|
import com.hbm.inventory.FluidTank;
|
||||||
|
import com.hbm.lib.Library;
|
||||||
|
import com.hbm.tileentity.TileEntityMachineBase;
|
||||||
|
|
||||||
|
public class TileEntityBarrel extends TileEntityMachineBase implements IFluidAcceptor, IFluidSource {
|
||||||
|
|
||||||
|
public FluidTank tank;
|
||||||
|
public int mode = 0;
|
||||||
|
public int age = 0;
|
||||||
|
public List<IFluidAcceptor> list = new ArrayList();
|
||||||
|
|
||||||
|
public TileEntityBarrel(int capacity) {
|
||||||
|
super(6);
|
||||||
|
tank = new FluidTank(FluidType.NONE, capacity, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getName() {
|
||||||
|
return "container.barrel";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateEntity() {
|
||||||
|
|
||||||
|
if(!worldObj.isRemote) {
|
||||||
|
|
||||||
|
tank.setType(0, 1, slots);
|
||||||
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setFillstate(int fill, int index) {
|
||||||
|
tank.setFill(fill);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setType(FluidType type, int index) {
|
||||||
|
tank.setTankType(type);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMaxFluidFill(FluidType type) {
|
||||||
|
return type.name().equals(this.tank.getTankType().name()) ? tank.getMaxFill() : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void fillFluidInit(FluidType type) {
|
||||||
|
fillFluid(this.xCoord, this.yCoord + 1, this.zCoord, getTact(), type);
|
||||||
|
fillFluid(this.xCoord, this.yCoord - 1, this.zCoord, getTact(), type);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void fillFluid(int x, int y, int z, boolean newTact, FluidType type) {
|
||||||
|
Library.transmitFluid(x, y, z, newTact, this, worldObj, type);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean getTact() {
|
||||||
|
if (age >= 0 && age < 10) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getFluidFill(FluidType type) {
|
||||||
|
return type.name().equals(this.tank.getTankType().name()) ? tank.getFill() : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setFluidFill(int i, FluidType type) {
|
||||||
|
if(type.name().equals(tank.getTankType().name()))
|
||||||
|
tank.setFill(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<IFluidAcceptor> getFluidList(FluidType type) {
|
||||||
|
return this.list;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clearFluidList(FluidType type) {
|
||||||
|
this.list.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<FluidTank> getTanks() {
|
||||||
|
List<FluidTank> list = new ArrayList();
|
||||||
|
list.add(tank);
|
||||||
|
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -53,7 +53,7 @@ public class TileEntityCoreEmitter extends TileEntityMachineBase implements ICon
|
|||||||
watts = MathHelper.clamp_int(watts, 1, 100);
|
watts = MathHelper.clamp_int(watts, 1, 100);
|
||||||
long demand = maxPower * watts / 2000;
|
long demand = maxPower * watts / 2000;
|
||||||
|
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
beam = 0;
|
beam = 0;
|
||||||
|
|
||||||
@ -109,6 +109,12 @@ public class TileEntityCoreEmitter extends TileEntityMachineBase implements ICon
|
|||||||
|
|
||||||
if(b != Blocks.air) {
|
if(b != Blocks.air) {
|
||||||
|
|
||||||
|
if(b.getMaterial().isLiquid()) {
|
||||||
|
worldObj.playSoundEffect(x + 0.5, y + 0.5, z + 0.5, "random.fizz", 1.0F, 1.0F);
|
||||||
|
worldObj.setBlockToAir(x, y, z);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
float hardness = b.getExplosionResistance(null);
|
float hardness = b.getExplosionResistance(null);
|
||||||
if(hardness < 6000 && worldObj.rand.nextInt(20) == 0) {
|
if(hardness < 6000 && worldObj.rand.nextInt(20) == 0) {
|
||||||
worldObj.func_147480_a(x, y, z, false);
|
worldObj.func_147480_a(x, y, z, false);
|
||||||
|
|||||||
@ -88,8 +88,8 @@ public class TileEntityCoreInjector extends TileEntityMachineBase implements IFl
|
|||||||
|
|
||||||
this.markDirty();
|
this.markDirty();
|
||||||
|
|
||||||
tanks[0].updateTank(xCoord, yCoord, zCoord);
|
tanks[0].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
tanks[1].updateTank(xCoord, yCoord, zCoord);
|
tanks[1].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
NBTTagCompound data = new NBTTagCompound();
|
NBTTagCompound data = new NBTTagCompound();
|
||||||
data.setInteger("beam", beam);
|
data.setInteger("beam", beam);
|
||||||
|
|||||||
@ -43,7 +43,7 @@ public class TileEntityCoreReceiver extends TileEntityMachineBase implements ISo
|
|||||||
|
|
||||||
if (!worldObj.isRemote) {
|
if (!worldObj.isRemote) {
|
||||||
|
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
power += joules * 5000;
|
power += joules * 5000;
|
||||||
|
|
||||||
|
|||||||
@ -347,7 +347,7 @@ public class TileEntityFWatzCore extends TileEntity implements ISidedInventory,
|
|||||||
tanks[2].loadTank(4, 6, slots);
|
tanks[2].loadTank(4, 6, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 3; i++)
|
for(int i = 0; i < 3; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.isRunning() && (tanks[1].getFill() <= 0 || tanks[2].getFill() <= 0 || !hasFuse() || getSingularityType() == 0) || cooldown || !this.isStructureValid(worldObj))
|
if(this.isRunning() && (tanks[1].getFill() <= 0 || tanks[2].getFill() <= 0 || !hasFuse() || getSingularityType() == 0) || cooldown || !this.isStructureValid(worldObj))
|
||||||
|
|||||||
@ -989,7 +989,7 @@ public class TileEntityFusionMultiblock extends TileEntity implements ISidedInve
|
|||||||
tanks[2].loadTank(3, 11, slots);
|
tanks[2].loadTank(3, 11, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 3; i++)
|
for(int i = 0; i < 3; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
if(slots[2] != null && slots[2].getItem() == ModItems.tritium_deuterium_cake)
|
if(slots[2] != null && slots[2].getItem() == ModItems.tritium_deuterium_cake)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -239,7 +239,7 @@ public class TileEntityMachineBoiler extends TileEntity implements ISidedInvento
|
|||||||
tanks[1].unloadTank(5, 6, slots);
|
tanks[1].unloadTank(5, 6, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 2; i++)
|
for(int i = 0; i < 2; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
boolean flag1 = false;
|
boolean flag1 = false;
|
||||||
|
|
||||||
|
|||||||
@ -249,7 +249,7 @@ public class TileEntityMachineBoilerElectric extends TileEntity implements ISide
|
|||||||
tanks[1].unloadTank(5, 6, slots);
|
tanks[1].unloadTank(5, 6, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 2; i++)
|
for(int i = 0; i < 2; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
if(heat > 2000) {
|
if(heat > 2000) {
|
||||||
heat -= 30;
|
heat -= 30;
|
||||||
|
|||||||
@ -288,7 +288,7 @@ public class TileEntityMachineCMBFactory extends TileEntity implements ISidedInv
|
|||||||
power = Library.chargeTEFromItems(slots, 0, power, maxPower);
|
power = Library.chargeTEFromItems(slots, 0, power, maxPower);
|
||||||
|
|
||||||
tank.loadTank(2, 5, slots);
|
tank.loadTank(2, 5, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
if (canProcess()) {
|
if (canProcess()) {
|
||||||
process();
|
process();
|
||||||
|
|||||||
@ -307,7 +307,7 @@ public class TileEntityMachineChemplant extends TileEntity implements ISidedInve
|
|||||||
tanks[3].unloadTank(10, 12, slots);
|
tanks[3].unloadTank(10, 12, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 4; i++) {
|
for(int i = 0; i < 4; i++) {
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
FluidStack[] inputs = MachineRecipes.getFluidInputFromTempate(slots[4]);
|
FluidStack[] inputs = MachineRecipes.getFluidInputFromTempate(slots[4]);
|
||||||
|
|||||||
@ -236,7 +236,7 @@ public class TileEntityMachineCoal extends TileEntity implements ISidedInventory
|
|||||||
//Water
|
//Water
|
||||||
tank.loadTank(0, 3, slots);
|
tank.loadTank(0, 3, slots);
|
||||||
|
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
//Battery Item
|
//Battery Item
|
||||||
power = Library.chargeItemsFromTE(slots, 2, power, maxPower);
|
power = Library.chargeItemsFromTE(slots, 2, power, maxPower);
|
||||||
|
|||||||
@ -222,7 +222,7 @@ public class TileEntityMachineDiesel extends TileEntity implements ISidedInvento
|
|||||||
//Tank Management
|
//Tank Management
|
||||||
tank.setType(3, 4, slots);
|
tank.setType(3, 4, slots);
|
||||||
tank.loadTank(0, 1, slots);
|
tank.loadTank(0, 1, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
FluidType type = tank.getTankType();
|
FluidType type = tank.getTankType();
|
||||||
if(type.name().equals(FluidType.NITAN.name()))
|
if(type.name().equals(FluidType.NITAN.name()))
|
||||||
|
|||||||
@ -206,7 +206,7 @@ public class TileEntityMachineFluidTank extends TileEntity implements ISidedInve
|
|||||||
tank.loadTank(2, 3, slots);
|
tank.loadTank(2, 3, slots);
|
||||||
tank.setType(0, 1, slots);
|
tank.setType(0, 1, slots);
|
||||||
tank.unloadTank(4, 5, slots);
|
tank.unloadTank(4, 5, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -283,7 +283,7 @@ public class TileEntityMachineGasCent extends TileEntity implements ISidedInvent
|
|||||||
power = Library.chargeTEFromItems(slots, 0, power, maxPower);
|
power = Library.chargeTEFromItems(slots, 0, power, maxPower);
|
||||||
tank.setType(1, 2, slots);
|
tank.setType(1, 2, slots);
|
||||||
tank.loadTank(3, 4, slots);
|
tank.loadTank(3, 4, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
if(canProcess()) {
|
if(canProcess()) {
|
||||||
|
|
||||||
|
|||||||
@ -221,7 +221,7 @@ public class TileEntityMachineGasFlare extends TileEntity implements ISidedInven
|
|||||||
if(!worldObj.isRemote) {
|
if(!worldObj.isRemote) {
|
||||||
|
|
||||||
tank.loadTank(1, 2, slots);
|
tank.loadTank(1, 2, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
if(tank.getFill() >= 10) {
|
if(tank.getFill() >= 10) {
|
||||||
tank.setFill(tank.getFill() - 10);
|
tank.setFill(tank.getFill() - 10);
|
||||||
|
|||||||
@ -290,7 +290,7 @@ public class TileEntityMachineGenerator extends TileEntity implements ISidedInve
|
|||||||
tanks[1].loadTank(10, 13, slots);
|
tanks[1].loadTank(10, 13, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 2; i++)
|
for(int i = 0; i < 2; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
//Batteries
|
//Batteries
|
||||||
power = Library.chargeItemsFromTE(slots, 11, power, powerMax);
|
power = Library.chargeItemsFromTE(slots, 11, power, powerMax);
|
||||||
|
|||||||
@ -221,9 +221,9 @@ public class TileEntityMachineInserter extends TileEntity implements ISidedInven
|
|||||||
tanks[0].setType(1, 2, slots);
|
tanks[0].setType(1, 2, slots);
|
||||||
tanks[1].setType(4, 5, slots);
|
tanks[1].setType(4, 5, slots);
|
||||||
tanks[2].setType(7, 8, slots);
|
tanks[2].setType(7, 8, slots);
|
||||||
tanks[0].updateTank(xCoord, yCoord, zCoord);
|
tanks[0].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
tanks[1].updateTank(xCoord, yCoord, zCoord);
|
tanks[1].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
tanks[2].updateTank(xCoord, yCoord, zCoord);
|
tanks[2].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -250,7 +250,7 @@ public class TileEntityMachineOilWell extends TileEntity implements ISidedInvent
|
|||||||
this.tanks[1].unloadTank(3, 4, slots);
|
this.tanks[1].unloadTank(3, 4, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 2; i++) {
|
for(int i = 0; i < 2; i++) {
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
power = Library.chargeTEFromItems(slots, 0, power, maxPower);
|
power = Library.chargeTEFromItems(slots, 0, power, maxPower);
|
||||||
|
|||||||
@ -194,7 +194,7 @@ public class TileEntityMachinePuF6Tank extends TileEntity implements ISidedInven
|
|||||||
{
|
{
|
||||||
tank.loadTank(0, 1, slots);
|
tank.loadTank(0, 1, slots);
|
||||||
tank.unloadTank(2, 3, slots);
|
tank.unloadTank(2, 3, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -253,7 +253,7 @@ public class TileEntityMachinePumpjack extends TileEntity implements ISidedInven
|
|||||||
this.tanks[1].unloadTank(3, 4, slots);
|
this.tanks[1].unloadTank(3, 4, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 2; i++) {
|
for(int i = 0; i < 2; i++) {
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
power = Library.chargeTEFromItems(slots, 0, power, maxPower);
|
power = Library.chargeTEFromItems(slots, 0, power, maxPower);
|
||||||
|
|||||||
@ -195,6 +195,7 @@ public class TileEntityMachineReactorLarge extends TileEntity
|
|||||||
NBTTagList list = new NBTTagList();
|
NBTTagList list = new NBTTagList();
|
||||||
tanks[0].writeToNBT(nbt, "water");
|
tanks[0].writeToNBT(nbt, "water");
|
||||||
tanks[1].writeToNBT(nbt, "coolant");
|
tanks[1].writeToNBT(nbt, "coolant");
|
||||||
|
tanks[2].writeToNBT(nbt, "steam");
|
||||||
nbt.setInteger("type", type.getID());
|
nbt.setInteger("type", type.getID());
|
||||||
|
|
||||||
for (int i = 0; i < slots.length; i++) {
|
for (int i = 0; i < slots.length; i++) {
|
||||||
@ -525,7 +526,7 @@ public class TileEntityMachineReactorLarge extends TileEntity
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < 3; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
if(worldObj.getBlock(xCoord, yCoord, zCoord - 2) == ModBlocks.reactor_ejector && worldObj.getBlockMetadata(xCoord, yCoord, zCoord - 2) == 2)
|
if(worldObj.getBlock(xCoord, yCoord, zCoord - 2) == ModBlocks.reactor_ejector && worldObj.getBlockMetadata(xCoord, yCoord, zCoord - 2) == 2)
|
||||||
tryEjectInto(xCoord, yCoord, zCoord - 3);
|
tryEjectInto(xCoord, yCoord, zCoord - 3);
|
||||||
|
|||||||
@ -419,7 +419,7 @@ public class TileEntityMachineReactorSmall extends TileEntity
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < 3; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
PacketDispatcher.wrapper.sendToAll(new AuxGaugePacket(xCoord, yCoord, zCoord, rods, 0));
|
PacketDispatcher.wrapper.sendToAll(new AuxGaugePacket(xCoord, yCoord, zCoord, rods, 0));
|
||||||
PacketDispatcher.wrapper.sendToAll(new AuxGaugePacket(xCoord, yCoord, zCoord, retracting ? 1 : 0, 1));
|
PacketDispatcher.wrapper.sendToAll(new AuxGaugePacket(xCoord, yCoord, zCoord, retracting ? 1 : 0, 1));
|
||||||
|
|||||||
@ -371,7 +371,7 @@ public class TileEntityMachineReactorSmallOld extends TileEntity
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
// Batteries
|
// Batteries
|
||||||
power = Library.chargeItemsFromTE(slots, 11, power, powerMax);
|
power = Library.chargeItemsFromTE(slots, 11, power, powerMax);
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public class TileEntityMachineRefinery extends TileEntity implements ISidedInven
|
|||||||
tanks[4].unloadTank(9, 10, slots);
|
tanks[4].unloadTank(9, 10, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 5; i++) {
|
for(int i = 0; i < 5; i++) {
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sulfur >= maxSulfur) {
|
if(sulfur >= maxSulfur) {
|
||||||
|
|||||||
@ -227,7 +227,7 @@ public class TileEntityMachineSeleniumEngine extends TileEntity implements ISide
|
|||||||
//Tank Management
|
//Tank Management
|
||||||
tank.setType(11, 12, slots);
|
tank.setType(11, 12, slots);
|
||||||
tank.loadTank(9, 10, slots);
|
tank.loadTank(9, 10, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
FluidType type = tank.getTankType();
|
FluidType type = tank.getTankType();
|
||||||
if(type.name().equals(FluidType.NITAN.name()))
|
if(type.name().equals(FluidType.NITAN.name()))
|
||||||
|
|||||||
@ -251,7 +251,7 @@ public class TileEntityMachineTurbine extends TileEntity implements ISidedInvent
|
|||||||
tanks[1].unloadTank(5, 6, slots);
|
tanks[1].unloadTank(5, 6, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 2; i++)
|
for(int i = 0; i < 2; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
PacketDispatcher.wrapper.sendToAll(new AuxElectricityPacket(xCoord, yCoord, zCoord, power));
|
PacketDispatcher.wrapper.sendToAll(new AuxElectricityPacket(xCoord, yCoord, zCoord, power));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -238,7 +238,7 @@ public class TileEntityMachineTurbofan extends TileEntity implements ISidedInven
|
|||||||
|
|
||||||
//Tank Management
|
//Tank Management
|
||||||
tank.loadTank(0, 1, slots);
|
tank.loadTank(0, 1, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
isRunning = false;
|
isRunning = false;
|
||||||
|
|
||||||
|
|||||||
@ -196,7 +196,7 @@ public class TileEntityMachineUF6Tank extends TileEntity implements ISidedInvent
|
|||||||
{
|
{
|
||||||
tank.loadTank(0, 1, slots);
|
tank.loadTank(0, 1, slots);
|
||||||
tank.unloadTank(2, 3, slots);
|
tank.unloadTank(2, 3, slots);
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -221,7 +221,7 @@ public class TileEntityReactorMultiblock extends TileEntity implements ISidedInv
|
|||||||
tanks[1].loadTank(32, 33, slots);
|
tanks[1].loadTank(32, 33, slots);
|
||||||
|
|
||||||
for(int i = 0; i < 2; i++)
|
for(int i = 0; i < 2; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
|
|
||||||
if(hasFuse())
|
if(hasFuse())
|
||||||
|
|||||||
@ -149,7 +149,7 @@ public class TileEntitySoyuzLauncher extends TileEntity implements ISidedInvento
|
|||||||
tanks[1].loadTank(2, 3, slots);
|
tanks[1].loadTank(2, 3, slots);
|
||||||
|
|
||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
tanks[i].updateTank(xCoord, yCoord, zCoord);
|
tanks[i].updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
|
|
||||||
power = Library.chargeTEFromItems(slots, 5, power, maxPower);
|
power = Library.chargeTEFromItems(slots, 5, power, maxPower);
|
||||||
|
|
||||||
|
|||||||
@ -574,7 +574,7 @@ public class TileEntityWatzCore extends TileEntity implements ISidedInventory, I
|
|||||||
|
|
||||||
power = Library.chargeItemsFromTE(slots, 37, power, maxPower);
|
power = Library.chargeItemsFromTE(slots, 37, power, maxPower);
|
||||||
|
|
||||||
tank.updateTank(xCoord, yCoord, zCoord);
|
tank.updateTank(xCoord, yCoord, zCoord, worldObj.provider.dimensionId);
|
||||||
tank.unloadTank(36, 39, slots);
|
tank.unloadTank(36, 39, slots);
|
||||||
|
|
||||||
if(slots[36] != null && slots[36].getItem() == ModItems.titanium_filter && slots[36].getItemDamage() + 100 <= slots[36].getMaxDamage())
|
if(slots[36] != null && slots[36].getItem() == ModItems.titanium_filter && slots[36].getItemDamage() + 100 <= slots[36].getMaxDamage())
|
||||||
|
|||||||