Examples of playGlobal()


Examples of org.spout.vanilla.data.effect.Effect.playGlobal()

      }

      if (toLaunch != null) {
        block.getWorld().createAndSpawnEntity(position, LoadOption.NO_LOAD, toLaunch.getClass());
      }
      shootEffect.playGlobal(block.getPosition());
      GeneralEffects.SMOKE.playGlobal(block.getPosition(), direction);
      return true;
    }
    // If nothing happened make sure we play the generic click sound.
    GeneralEffects.RANDOM_CLICK2.playGlobal(block.getPosition());
View Full Code Here

Examples of org.spout.vanilla.data.effect.SoundEffect.playGlobal()

        if (material instanceof VanillaBlockMaterial) {
          sound = ((VanillaBlockMaterial) material).getStepSound();
        } else {
          sound = SoundEffects.STEP_STONE;
        }
        sound.playGlobal(placedBlock.getPosition(), 0.8f, 0.8f);

        // Remove block from inventory
        if (!PlayerUtil.isCostSuppressed(player) && holdingMat == (currentSlot.get() != null ? currentSlot.get().getMaterial() : null)) {
          currentSlot.addAmount(-1);
        }
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.