Class ZoomData
java.lang.Object
me.deecaad.weaponmechanics.wrappers.ZoomData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleintbooleanvoidbooleanvoidsetScopeData(String weaponTitle, org.bukkit.inventory.ItemStack weaponStack) voidsetZoomAmount(double zoomAmount) Note: This method does not set the player's FOV.voidsetZoomNightVision(boolean zoomNightVision) Note: This method does not set the player's potion effects.voidsetZoomStacks(int zoomStacks) Note: This method does not set the player's FOV.
-
Constructor Details
-
ZoomData
-
-
Method Details
-
getHandData
-
isZooming
public boolean isZooming()- Returns:
trueif 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:
trueif 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
-