Codota Logo
DynamicLocation.setDirection
Code IndexAdd Codota to your IDE (free)

How to use
setDirection
method
in
de.slikey.effectlib.util.DynamicLocation

Best Java code snippets using de.slikey.effectlib.util.DynamicLocation.setDirection (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: Slikey/EffectLib

public void update() {
  if (location == null || (!updateLocation && !updateDirection)) {
    return;
  }
  Entity entityReference = entity == null ? null : entity.get();
  if (entityReference != null) {
    Location currentLocation = getEntityLocation(entityReference);
    if (updateDirection)
    {
      setDirection(currentLocation.getDirection());
    }
    if (updateLocation)
    {
      updateFrom(currentLocation);
    }
  }
}
origin: elBukkit/MagicPlugin

  protected void startProjectileEffects(CastContext context, String effectKey) {

    Collection<EffectPlayer> projectileEffects = context.getEffects(effectKey);
    for (EffectPlayer apiEffectPlayer : projectileEffects)
    {
      if (effectLocation == null) {
        effectLocation = new DynamicLocation(actionContext.getTargetLocation());
        effectLocation.setDirection(velocity);
      }
      if (activeProjectileEffects == null) {
        activeProjectileEffects = new ArrayList<>();
      }
      // Hrm- this is ugly, but I don't want the API to depend on EffectLib.
      if (apiEffectPlayer instanceof com.elmakers.mine.bukkit.effect.EffectPlayer)
      {
        com.elmakers.mine.bukkit.effect.EffectPlayer effectPlayer = (com.elmakers.mine.bukkit.effect.EffectPlayer)apiEffectPlayer;
        effectPlayer.setEffectPlayList(activeProjectileEffects);
        if (projectileEffectsUseTarget) {
          Entity sourceEntity = actionContext.getEntity();
          DynamicLocation sourceLocation = sourceEntity == null ? new DynamicLocation(actionContext.getLocation()) : new DynamicLocation(sourceEntity);
          effectPlayer.startEffects(sourceLocation, effectLocation);
        } else {
          effectPlayer.startEffects(effectLocation, null);
        }
      }
    }
  }
}
origin: elBukkit/MagicPlugin

effectLocation.setDirection(velocity);
de.slikey.effectlib.utilDynamicLocationsetDirection

Popular methods of DynamicLocation

  • <init>
  • addOffset
  • addRelativeOffset
  • getEntity
  • getLocation
  • updateFrom
  • getEntityLocation
  • hasValidEntity
  • setDirectionOffset
  • setPitch
  • setUpdateDirection
  • setUpdateLocation
  • setUpdateDirection,
  • setUpdateLocation,
  • setYaw,
  • update,
  • updateDirection,
  • updateOffsets

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now