diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-03-13 17:33:27 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-03-15 13:28:59 -0500 |
commit | 83d29e461c85733f0113b6eb19db6e3b42da2949 (patch) | |
tree | b3063a1c28f478ab368d5ba3413a842def68c28f /src/main/java/net/minecraft/server/BlockJukeBox.java | |
parent | ba6e4c38cfa98ad291974195cc46d70a4f138ac1 (diff) | |
download | craftbukkit-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/BlockJukeBox.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockJukeBox.java | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/src/main/java/net/minecraft/server/BlockJukeBox.java b/src/main/java/net/minecraft/server/BlockJukeBox.java deleted file mode 100644 index b675141c..00000000 --- a/src/main/java/net/minecraft/server/BlockJukeBox.java +++ /dev/null @@ -1,77 +0,0 @@ -package net.minecraft.server;
-
-public class BlockJukeBox extends BlockContainer {
-
- protected BlockJukeBox(int i, int j) {
- super(i, j, Material.WOOD);
- this.a(CreativeModeTab.c);
- }
-
- public int a(int i) {
- return this.textureId + (i == 1 ? 1 : 0);
- }
-
- public boolean interact(World world, int i, int j, int k, EntityHuman entityhuman, int l, float f, float f1, float f2) {
- if (world.getData(i, j, k) == 0) {
- return false;
- } else {
- this.dropRecord(world, i, j, k);
- return true;
- }
- }
-
- public void a(World world, int i, int j, int k, ItemStack itemstack) {
- if (!world.isStatic) {
- TileEntityRecordPlayer tileentityrecordplayer = (TileEntityRecordPlayer) world.getTileEntity(i, j, k);
-
- if (tileentityrecordplayer != null) {
- tileentityrecordplayer.record = itemstack.cloneItemStack();
- tileentityrecordplayer.record.count = 1; // CraftBukkit - There can be only one
- tileentityrecordplayer.update();
- world.setData(i, j, k, 1);
- }
- }
- }
-
- public void dropRecord(World world, int i, int j, int k) {
- if (!world.isStatic) {
- TileEntityRecordPlayer tileentityrecordplayer = (TileEntityRecordPlayer) world.getTileEntity(i, j, k);
-
- if (tileentityrecordplayer != null) {
- ItemStack itemstack = tileentityrecordplayer.record;
-
- if (itemstack != null) {
- world.triggerEffect(1005, i, j, k, 0);
- world.a((String) null, i, j, k);
- tileentityrecordplayer.record = null;
- tileentityrecordplayer.update();
- world.setData(i, j, k, 0);
- float f = 0.7F;
- double d0 = (double) (world.random.nextFloat() * f) + (double) (1.0F - f) * 0.5D;
- double d1 = (double) (world.random.nextFloat() * f) + (double) (1.0F - f) * 0.2D + 0.6D;
- double d2 = (double) (world.random.nextFloat() * f) + (double) (1.0F - f) * 0.5D;
- ItemStack itemstack1 = itemstack.cloneItemStack();
- EntityItem entityitem = new EntityItem(world, (double) i + d0, (double) j + d1, (double) k + d2, itemstack1);
-
- entityitem.pickupDelay = 10;
- world.addEntity(entityitem);
- }
- }
- }
- }
-
- public void remove(World world, int i, int j, int k, int l, int i1) {
- this.dropRecord(world, i, j, k);
- super.remove(world, i, j, k, l, i1);
- }
-
- public void dropNaturally(World world, int i, int j, int k, int l, float f, int i1) {
- if (!world.isStatic) {
- super.dropNaturally(world, i, j, k, l, f, 0);
- }
- }
-
- public TileEntity a(World world) {
- return new TileEntityRecordPlayer();
- }
-}
|