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

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

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

origin: elBukkit/MagicPlugin

protected void checkLocations() {
  if (origin != null) {
    if (originOffset != null) {
      origin.addOffset(originOffset);
    }
  }
  if (target != null) {
    if (targetOffset != null) {
      target.addOffset(targetOffset);
    }
  }
}
origin: Slikey/EffectLib

/**
 * Set the Location this Effect is targeting.
 */
public void setDynamicTarget(DynamicLocation location) {
  target = location;
  if (target != null && targetOffset != null) {
    target.addOffset(targetOffset);
  }
  if (target != null) {
    target.setUpdateLocation(updateLocations);
    target.setUpdateDirection(updateDirections);
  }
}
origin: Slikey/EffectLib

origin.addOffset(offset);
previousOffset.add(offset);
origin: Slikey/EffectLib

/**
 * Set the Location this Effect is centered on.
 */
public void setDynamicOrigin(DynamicLocation location) {
  if (location == null) {
    throw new IllegalArgumentException("Origin Location cannot be null!");
  }
  origin = location;
  if (offset != null) {
    origin.addOffset(offset);
  }
  if (relativeOffset != null) {
    origin.addRelativeOffset(relativeOffset);
  }
  origin.setDirectionOffset(yawOffset, pitchOffset);
  origin.setYaw(yaw);
  origin.setPitch(pitch);
  origin.setUpdateLocation(updateLocations);
  origin.setUpdateDirection(updateDirections);
  origin.updateDirection();
}
de.slikey.effectlib.utilDynamicLocationaddOffset

Popular methods of DynamicLocation

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

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • 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