diff options
author | Tahg <tahgtahv@gmail.com> | 2011-12-10 17:07:32 -0500 |
---|---|---|
committer | Tahg <tahgtahv@gmail.com> | 2011-12-10 17:07:32 -0500 |
commit | 77c07095bd86c30bb28ab8783e073c8dbd542f54 (patch) | |
tree | cad54221f7dcd29ddad638c90dd63e3b6d7b9a37 /src/main/java/net/minecraft/server/ItemMobSpawner.java | |
parent | de1a32bb1630146498373f5fc569435b6e3971af (diff) | |
download | craftbukkit-77c07095bd86c30bb28ab8783e073c8dbd542f54.tar craftbukkit-77c07095bd86c30bb28ab8783e073c8dbd542f54.tar.gz craftbukkit-77c07095bd86c30bb28ab8783e073c8dbd542f54.tar.lz craftbukkit-77c07095bd86c30bb28ab8783e073c8dbd542f54.tar.xz craftbukkit-77c07095bd86c30bb28ab8783e073c8dbd542f54.zip |
removed changes to MobSpawner behavior
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemMobSpawner.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemMobSpawner.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/main/java/net/minecraft/server/ItemMobSpawner.java b/src/main/java/net/minecraft/server/ItemMobSpawner.java deleted file mode 100644 index ca6c1e83..00000000 --- a/src/main/java/net/minecraft/server/ItemMobSpawner.java +++ /dev/null @@ -1,34 +0,0 @@ -package net.minecraft.server; -// CraftBukkit start - the whole file! - -public class ItemMobSpawner extends ItemWithAuxData { - - public ItemMobSpawner(int id) { - super(id, Block.MOB_SPAWNER); - } - - // interact - public boolean a(ItemStack itemstack, EntityHuman entityhuman, World world, int x, int y, int z, int face) { - - // super.interact (for ItemBlock this normally attempts to place it) - if (!super.a(itemstack, entityhuman, world, x, y, z, face)) return false; - - // Adjust the coords for the face clicked. - if (face == 0) { y--; } - else if (face == 1) { y++; } - else if (face == 2) { z--; } - else if (face == 3) { z++; } - else if (face == 4) { x--; } - else if (face == 5) { x++; } - - // Set the remembered datavalue for the spawner - TileEntity entity = world.getTileEntity(x, y, z); - if (entity instanceof TileEntityMobSpawner) { - ((TileEntityMobSpawner) entity).setId(itemstack.getData()); - return true; - } - - return false; - } -} -// CraftBukkit end - the whole file!
\ No newline at end of file |