Tabnine Logo
DynamicLocation.hasValidEntity
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: Slikey/EffectLib

protected final boolean validate() {
  // Check if the origin and target entities are present
  if (disappearWithOriginEntity && (origin != null && !origin.hasValidEntity())) {
    return false;
  }
  
  if (disappearWithTargetEntity && (target != null && !target.hasValidEntity())) {
    return false;
  }
  
  // Check for a valid Location
  updateLocation();
  updateTarget();
  Location location = getLocation();
  if (location == null) {
    return false;
  }
  if (autoOrient) {
    Location targetLocation = target == null ? null : target.getLocation();
    if (targetLocation != null) {
      Vector direction = targetLocation.toVector().subtract(location.toVector());
      location.setDirection(direction);
      targetLocation.setDirection(direction.multiply(-1));
    }
  }
  return true;
}
de.slikey.effectlib.utilDynamicLocationhasValidEntity

Popular methods of DynamicLocation

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

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • Kernel (java.awt.image)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Reference (javax.naming)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now