/** 传送部分代码 */
 @Override
 public void onEntityCollidedWithBlock(
     World par1World, int par2, int par3, int par4, Entity par5Entity) {
   if (par5Entity.ridingEntity == null
       && par5Entity.riddenByEntity == null
       && par5Entity instanceof EntityPlayerMP) {
     EntityPlayerMP thePlayer = (EntityPlayerMP) par5Entity;
     if (thePlayer.timeUntilPortal > 0) {
       thePlayer.timeUntilPortal = 10;
     } else if (thePlayer.dimension != ModuleTerrain.xenContinentDimensionID) {
       thePlayer.timeUntilPortal = 10;
       thePlayer
           .mcServer
           .getConfigurationManager()
           .transferPlayerToDimension(
               thePlayer,
               ModuleTerrain.xenContinentDimensionID,
               new TeleporterXen(
                   thePlayer.mcServer.worldServerForDimension(
                       ModuleTerrain.xenContinentDimensionID)));
     } else {
       thePlayer.timeUntilPortal = 10;
       thePlayer
           .mcServer
           .getConfigurationManager()
           .transferPlayerToDimension(
               thePlayer, 0, new TeleporterXen(thePlayer.mcServer.worldServerForDimension(0)));
     }
   }
 }
 /**
  * Triggered whenever an entity collides with this block (enters into the block). Args: world, x,
  * y, z, entity
  */
 public void onEntityCollidedWithBlock(
     World par1World, int par2, int par3, int par4, Entity par5Entity) {
   if ((par5Entity.ridingEntity == null)
       && (par5Entity.riddenByEntity == null)
       && ((par5Entity instanceof EntityPlayerMP))) {
     EntityPlayerMP thePlayer = (EntityPlayerMP) par5Entity;
     if (thePlayer.timeUntilPortal > 0) {
       thePlayer.timeUntilPortal = 10;
     } else if (thePlayer.dimension != Config.vaerynID) {
       thePlayer.timeUntilPortal = 10;
       thePlayer
           .mcServer
           .getConfigurationManager()
           .transferPlayerToDimension(
               thePlayer,
               Config.vaerynID,
               new TeleporterVaeryn(thePlayer.mcServer.worldServerForDimension(Config.vaerynID)));
     } else {
       thePlayer.timeUntilPortal = 10;
       thePlayer
           .mcServer
           .getConfigurationManager()
           .transferPlayerToDimension(
               thePlayer, 0, new TeleporterVaeryn(thePlayer.mcServer.worldServerForDimension(0)));
     }
   }
 }