Examples of update()


Examples of net.glowstone.block.GlowBlockState.update()

        }

        liquid.placeBlock(player, newState, face, holding, clickedLoc);

        // perform the block change
        newState.update(true);

        // deduct from stack if not in creative mode
        if (player.getGameMode() != GameMode.CREATIVE) {
            holding.setType(Material.BUCKET);
        }
View Full Code Here

Examples of net.glowstone.block.entity.TileEntity.update()

    static void revert(GlowPlayer player, GlowBlock target) {
        player.sendBlockChange(target.getLocation(), target.getType(), target.getData());
        TileEntity entity = target.getTileEntity();
        if (entity != null) {
            entity.update(player);
        }
    }

    static BlockFace convertFace(int direction) {
        if (direction >= 0 && direction < faces.length) {
View Full Code Here

Examples of net.glowstone.block.state.GlowBanner.update()

    public void afterPlace(GlowPlayer player, GlowBlock block, ItemStack holding) {
        GlowBanner banner = (GlowBanner) block.getState();
        banner.setBase(DyeColor.getByDyeData((byte) holding.getDurability()));
        BannerMeta meta = (BannerMeta) holding.getItemMeta();
        banner.setPattern(meta.getPattern());
        banner.update();
    }

    public static List<CompoundTag> toNBT(BannerPattern pattern) {
        List<CompoundTag> patterns = new ArrayList<>();
        for (BannerPattern.BannerLayer layer : pattern.getLayers()) {
View Full Code Here

Examples of net.glowstone.block.state.GlowSkull.update()

        Skull skullData = (Skull) data;

        if (canRotate(skullData)) { // Can be rotated
            skull.setRotation(player.getFacing().getOppositeFace());
        }
        skull.update();
    }

    @Override
    public Collection<ItemStack> getDrops(GlowBlock block, ItemStack tool) {
        GlowSkull skull = (GlowSkull) block.getState();
View Full Code Here

Examples of net.itscrafted.entity.Bouncer.update()

    }
   
    // check if player hits bouncers
    for(int i = 0; i < bouncers.size(); i++) {
      Bouncer b = bouncers.get(i);
      b.update();
      if(b.intersectsCircle(player)) {
        player.reflect(b.getx(), b.gety(), b.getWidth(), b.getImpulse());
        break;
      }
    }
View Full Code Here

Examples of net.itscrafted.entity.HitBall.update()

    }
   
    if(eventCount > 30 && hitBalls.size() > 0) {
      for(int i = 0; i < hitBalls.size(); i++) {
        HitBall hb = hitBalls.get(i);
        hb.update();
        if(hb.getx() > 600) {
          GameData.addScore(1);
          hitBalls.remove(i);
          i--;
          ParticleFactory.createSmallWave(hb.getx(), hb.gety(), hb.getWidth());
View Full Code Here

Examples of net.itscrafted.entity.Hole.update()

   
    // update holes
    for(int i = 0; i < holes.size(); i++) {
     
      Hole h = holes.get(i);
      h.update();
     
      // player fell into hole
      if(h.containsCircle(player)) {
        player.setPosition(h);
        player.setVector(0, 0);
View Full Code Here

Examples of net.javlov.world.Property.update()

  }
 
  @Override
  public void updateProperty(String name, double delta) {
    Property p = properties.get(name);
    p.update(delta);
  }

  @Override
  public double getReward() {
    return reward;
View Full Code Here

Examples of net.jpountz.xxhash.StreamingXXHash32.update()

    for (;;) {
      int read = in.read(buf);
      if (read == -1) {
        break;
      }
      hash32.update(buf, 0, read);
    }
    int hash = hash32.getValue();
    System.out.println("Streaming hash: " + hash);
  }
View Full Code Here

Examples of net.juniper.contrail.api.ApiConnector.update()

        if (create) {
            if (!api.create(vmi)) {
                throw new InternalErrorException("Unable to create virtual-machine-interface " + _uuid);
            }
        } else {
            if (!api.update(vmi)) {
                throw new InternalErrorException("Unable to update virtual-machine-interface " + _uuid);
            }
        }

        api.read(vmi);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.