Package net.minecraft.server

Examples of net.minecraft.server.World


      return false;
    }
    // Preparations prior to teleportation
    final Entity entityHandle = CommonNMS.getNative(entity);
    final CommonEntity<?> passenger = get(getPassenger());
    final World newworld = CommonNMS.getNative(location.getWorld());
    final boolean isWorldChange = entityHandle.world != newworld;
    final EntityNetworkController<?> oldNetworkController = getNetworkController();
    final boolean hasNetworkController = !(oldNetworkController instanceof DefaultEntityNetworkController);
    WorldUtil.loadChunks(location, 3);
View Full Code Here


    BlockRef.dropNaturally.invoke(handle, Conversion.toWorldHandle.convert(world), x, y, z, data, yield, chance);
  }

  @Override
  public void ignite(org.bukkit.World world, int x, int y, int z) {
    World worldhandle = CommonNMS.getNative(world);
    Explosion ex = new Explosion(worldhandle, null, x, y, z, (float) 4.0);
    BlockRef.ignite.invoke(handle, worldhandle, x, y, z, ex);
  }
View Full Code Here

   */
  public static void damage(org.bukkit.entity.Entity entity, DamageCause cause, double damage) {
    DamageSource source;
    if (cause == DamageCause.BLOCK_EXPLOSION) {
      Location loc = entity.getLocation();
      World worldhandle = CommonNMS.getNative(loc.getWorld());
      Explosion ex = new Explosion(worldhandle, null, loc.getX(), loc.getY(), loc.getZ(), (float) 4.0);
      source = DamageSource.explosion(ex);
    } else if (cause == DamageCause.CONTACT) {
      source = DamageSource.CACTUS;
    } else if (cause == DamageCause.DROWNING) {
View Full Code Here

TOP

Related Classes of net.minecraft.server.World

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.