forked from TheOriginalGolem/Hbm-s-Nuclear-Tech-GIT
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Translations in 70 languages Added Battery Automation Added Neoveline and Electronium Dynosynthesis Added Unobtainium-440 and 439 Changed Euphemium creation Changed Unobtainium Billet Recipe and Textures Changed Xe-135 Powder Chances in Silex Changed Radium creation Changed Nether Depth Texture Fixed: FEnSU Charge Rate
- Loading branch information
1 parent
4de582d
commit 4df9d23
Showing
194 changed files
with
243,244 additions
and
9,904 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
src/main/java/com/hbm/blocks/machine/MachineFieldDisturber.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package com.hbm.blocks.machine; | ||
|
||
import java.util.List; | ||
import java.util.Random; | ||
|
||
import com.hbm.blocks.ModBlocks; | ||
import com.hbm.entity.logic.EntityNukeExplosionMK3; | ||
import com.hbm.entity.logic.EntityNukeExplosionMK3.ATEntry; | ||
|
||
import net.minecraft.client.util.ITooltipFlag; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.world.World; | ||
|
||
public class MachineFieldDisturber extends Block { | ||
|
||
public MachineFieldDisturber(Material materialIn, String s) { | ||
super(materialIn); | ||
this.setUnlocalizedName(s); | ||
this.setRegistryName(s); | ||
|
||
ModBlocks.ALL_BLOCKS.add(this); | ||
} | ||
|
||
@Override | ||
public int tickRate(World world) { | ||
return 20; | ||
} | ||
|
||
@Override | ||
public void onBlockAdded(World world, BlockPos pos, IBlockState state) { | ||
if(!world.isRemote) | ||
world.scheduleUpdate(pos, this, this.tickRate(world)); | ||
} | ||
|
||
@Override | ||
public void breakBlock(World worldIn, BlockPos pos, IBlockState state) { | ||
EntityNukeExplosionMK3.at.remove(new ATEntry(worldIn.provider.getDimension(), pos.getX(), pos.getY(), pos.getZ())); | ||
super.breakBlock(worldIn, pos, state); | ||
} | ||
|
||
@Override | ||
public void updateTick(World world, BlockPos pos, IBlockState state, Random rand) { | ||
|
||
if(!world.isRemote) { | ||
world.scheduleUpdate(pos, this, this.tickRate(world)); | ||
EntityNukeExplosionMK3.at.put(new ATEntry(world.provider.getDimension(), pos.getX(), pos.getY(), pos.getZ()), world.getTotalWorldTime() + 100); | ||
} | ||
} | ||
|
||
@Override | ||
public void addInformation(ItemStack stack, World player, List<String> tooltip, ITooltipFlag advanced) { | ||
tooltip.add("§3[Anti-Antischrabidium-Field]§r"); | ||
tooltip.add("§b Radius: 300m§r"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.hbm.creativetabs; | ||
|
||
import com.hbm.blocks.ModBlocks; | ||
|
||
import net.minecraft.creativetab.CreativeTabs; | ||
import net.minecraft.init.Items; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
|
||
public class RessourceTab extends CreativeTabs { | ||
|
||
public RessourceTab(int index, String label) { | ||
super(index, label); | ||
} | ||
|
||
@Override | ||
public ItemStack getTabIconItem() { | ||
if(ModBlocks.ore_uranium != null){ | ||
return new ItemStack(Item.getItemFromBlock(ModBlocks.ore_uranium)); | ||
} | ||
return new ItemStack(Items.IRON_PICKAXE); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.