diff options
author | EdGruberman <ed@rjump.com> | 2013-01-19 05:51:18 -0600 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2013-01-19 06:20:32 -0600 |
commit | 9cb320654de9b90b4ee2f39e5909afac49ce044c (patch) | |
tree | f150a77044b7e20e0c823c6d09e089aacc7938cf /src/main/java/net/minecraft/server/BlockEnderPortal.java | |
parent | 01fc296fefdfc5c3c829f13e928f7ab920c4c6cb (diff) | |
download | craftbukkit-9cb320654de9b90b4ee2f39e5909afac49ce044c.tar craftbukkit-9cb320654de9b90b4ee2f39e5909afac49ce044c.tar.gz craftbukkit-9cb320654de9b90b4ee2f39e5909afac49ce044c.tar.lz craftbukkit-9cb320654de9b90b4ee2f39e5909afac49ce044c.tar.xz craftbukkit-9cb320654de9b90b4ee2f39e5909afac49ce044c.zip |
Add BlockEnderPortal for diff visibility
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockEnderPortal.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockEnderPortal.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/BlockEnderPortal.java b/src/main/java/net/minecraft/server/BlockEnderPortal.java new file mode 100644 index 00000000..d55e41d0 --- /dev/null +++ b/src/main/java/net/minecraft/server/BlockEnderPortal.java @@ -0,0 +1,56 @@ +package net.minecraft.server; + +import java.util.List; +import java.util.Random; + +public class BlockEnderPortal extends BlockContainer { + + public static boolean a = false; + + protected BlockEnderPortal(int i, Material material) { + super(i, 0, material); + this.a(1.0F); + } + + public TileEntity a(World world) { + return new TileEntityEnderPortal(); + } + + public void updateShape(IBlockAccess iblockaccess, int i, int j, int k) { + float f = 0.0625F; + + this.a(0.0F, 0.0F, 0.0F, 1.0F, f, 1.0F); + } + + public void a(World world, int i, int j, int k, AxisAlignedBB axisalignedbb, List list, Entity entity) {} + + public boolean c() { + return false; + } + + public boolean b() { + return false; + } + + public int a(Random random) { + return 0; + } + + public void a(World world, int i, int j, int k, Entity entity) { + if (entity.vehicle == null && entity.passenger == null && !world.isStatic) { + entity.b(1); + } + } + + public int d() { + return -1; + } + + public void onPlace(World world, int i, int j, int k) { + if (!a) { + if (world.worldProvider.dimension != 0) { + world.setTypeId(i, j, k, 0); + } + } + } +} |