summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/BlockTNT.java
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2013-03-13 17:33:27 -0500
committerTravis Watkins <amaranth@ubuntu.com>2013-03-15 13:28:59 -0500
commit83d29e461c85733f0113b6eb19db6e3b42da2949 (patch)
treeb3063a1c28f478ab368d5ba3413a842def68c28f /src/main/java/net/minecraft/server/BlockTNT.java
parentba6e4c38cfa98ad291974195cc46d70a4f138ac1 (diff)
downloadcraftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.gz
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.lz
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.xz
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.zip
Update CraftBukkit to Minecraft 1.5
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockTNT.java')
-rw-r--r--src/main/java/net/minecraft/server/BlockTNT.java79
1 files changed, 0 insertions, 79 deletions
diff --git a/src/main/java/net/minecraft/server/BlockTNT.java b/src/main/java/net/minecraft/server/BlockTNT.java
deleted file mode 100644
index c9c0ec0f..00000000
--- a/src/main/java/net/minecraft/server/BlockTNT.java
+++ /dev/null
@@ -1,79 +0,0 @@
-package net.minecraft.server;
-
-import java.util.Random;
-
-public class BlockTNT extends Block {
-
- public BlockTNT(int i, int j) {
- super(i, j, Material.TNT);
- this.a(CreativeModeTab.d);
- }
-
- public int a(int i) {
- return i == 0 ? this.textureId + 2 : (i == 1 ? this.textureId + 1 : this.textureId);
- }
-
- public void onPlace(World world, int i, int j, int k) {
- super.onPlace(world, i, j, k);
- if (!world.suppressPhysics && world.isBlockIndirectlyPowered(i, j, k)) { // CraftBukkit
- this.postBreak(world, i, j, k, 1);
- world.setTypeId(i, j, k, 0);
- }
- }
-
- public void doPhysics(World world, int i, int j, int k, int l) {
- if (l > 0 && Block.byId[l].isPowerSource() && world.isBlockIndirectlyPowered(i, j, k)) {
- this.postBreak(world, i, j, k, 1);
- world.setTypeId(i, j, k, 0);
- }
- }
-
- public int a(Random random) {
- return 1;
- }
-
- public void wasExploded(World world, int i, int j, int k) {
- if (!world.isStatic) {
- EntityTNTPrimed entitytntprimed = new EntityTNTPrimed(world, (double) ((float) i + 0.5F), (double) ((float) j + 0.5F), (double) ((float) k + 0.5F));
-
- entitytntprimed.fuseTicks = world.random.nextInt(entitytntprimed.fuseTicks / 4) + entitytntprimed.fuseTicks / 8;
- world.addEntity(entitytntprimed);
- }
- }
-
- public void postBreak(World world, int i, int j, int k, int l) {
- if (!world.isStatic) {
- if ((l & 1) == 1) {
- EntityTNTPrimed entitytntprimed = new EntityTNTPrimed(world, (double) ((float) i + 0.5F), (double) ((float) j + 0.5F), (double) ((float) k + 0.5F));
-
- world.addEntity(entitytntprimed);
- world.makeSound(entitytntprimed, "random.fuse", 1.0F, 1.0F);
- }
- }
- }
-
- public boolean interact(World world, int i, int j, int k, EntityHuman entityhuman, int l, float f, float f1, float f2) {
- if (entityhuman.bS() != null && entityhuman.bS().id == Item.FLINT_AND_STEEL.id) {
- this.postBreak(world, i, j, k, 1);
- world.setTypeId(i, j, k, 0);
- return true;
- } else {
- return super.interact(world, i, j, k, entityhuman, l, f, f1, f2);
- }
- }
-
- public void a(World world, int i, int j, int k, Entity entity) {
- if (entity instanceof EntityArrow && !world.isStatic) {
- EntityArrow entityarrow = (EntityArrow) entity;
-
- if (entityarrow.isBurning()) {
- this.postBreak(world, i, j, k, 1);
- world.setTypeId(i, j, k, 0);
- }
- }
- }
-
- public boolean a(Explosion explosion) {
- return false;
- }
-}