Class ZoomData

java.lang.Object
me.deecaad.weaponmechanics.wrappers.ZoomData

public class ZoomData extends Object
  • Constructor Details

    • ZoomData

      public ZoomData(HandData handData)
  • Method Details

    • getHandData

      public HandData getHandData()
    • isZooming

      public boolean isZooming()
      Returns:
      true if the entity is scoped.
    • getZoomAmount

      public double getZoomAmount()
      Returns:
      The magnitude of the scope amount, or 0 for not scoping.
    • setZoomAmount

      public void setZoomAmount(double zoomAmount)
      Note: This method does not set the player's FOV. This method should not be used unless you know what you are doing.
      Parameters:
      zoomAmount - How far the player is zoomed in.
    • getZoomStacks

      public int getZoomStacks()
      Returns:
      How many times stacky-scope was used, or 0.
    • setZoomStacks

      public void setZoomStacks(int zoomStacks)
      Note: This method does not set the player's FOV. This method should not be used unless you know what you are doing.
      Parameters:
      zoomStacks - the new zoom stack amount.
    • hasZoomNightVision

      public boolean hasZoomNightVision()
      Returns:
      true if entity is scoped into a night vision scope.
    • setZoomNightVision

      public void setZoomNightVision(boolean zoomNightVision)
      Note: This method does not set the player's potion effects. This method should not be used unless you know what you are doing.
      Parameters:
      zoomNightVision - whether zoom night vision is on
    • ifZoomingForceZoomOut

      public void ifZoomingForceZoomOut()
    • setScopeData

      public void setScopeData(String weaponTitle, org.bukkit.inventory.ItemStack weaponStack)