public BallMeta
Created by Shynixn 2017.
Version 1.1
MIT License
Copyright (c) 2017 by Shynixn
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Modifier and Type | Method and Description |
|---|---|
BounceController<Block,Material> |
getBounceObjectController()
Returns a controller for all bounce Objects.
|
double |
getHitBoxRelocationDistance()
Returns the hitbox relocation distance.
|
double |
getHitBoxSize()
Returns the size of the hitbox of the ball.
|
BallModifiers |
getModifiers()
Returns the modifiers of the ball.
|
ParticleEffectMeta<Location,Player,Material> |
getParticleEffectOf()
Returns the particle effect for the given action.
|
BallSize |
getSize()
Returns the size of the ball.
|
java.lang.String |
getSkin()
Returns the skin of the ball.
|
SoundEffectMeta<Location,Player> |
getSoundEffectOf()
Returns the sound effect for the given action.
|
boolean |
isAlwaysBounceBack()
Returns if always bouncing back from blocks regardless of bounceController.
|
boolean |
isCarryable()
Returns if the ball is carry able.
|
boolean |
isRotatingEnabled()
Returns if the ball displays a rotation animation when being kicked or thrown.
|
void |
setAlwaysBounceBack()
Sets always bouncing back from blocks regardless of bounceController.
|
void |
setCarryable()
Sets if the ball is carry able.
|
void |
setHitBoxRelocationDistance()
Sets the hitbox relocation distance the hitbox of the ball is in reality.
|
void |
setHitBoxSize()
Sets the size of the hitbox of the ball. Default 2.
|
void |
setRotatingEnabled()
Sets if the ball should display a rotation animation when being kicked or thrown.
|
void |
setSize()
Sets the size of the ball.
|
void |
setSkin()
Changes the skin of the ball. Has to be a skin-URL or name of a player.
|
ParticleEffectMeta<Location,Player,Material> getParticleEffectOf()
Returns the particle effect for the given action.
SoundEffectMeta<Location,Player> getSoundEffectOf()
Returns the sound effect for the given action.
BallModifiers getModifiers()
Returns the modifiers of the ball.
BounceController<Block,Material> getBounceObjectController()
Returns a controller for all bounce Objects.
void setAlwaysBounceBack()
Sets always bouncing back from blocks regardless of bounceController.
boolean isAlwaysBounceBack()
Returns if always bouncing back from blocks regardless of bounceController.
void setCarryable()
Sets if the ball is carry able.
boolean isCarryable()
Returns if the ball is carry able.
void setRotatingEnabled()
Sets if the ball should display a rotation animation when being kicked or thrown.
void setHitBoxSize()
Sets the size of the hitbox of the ball. Default 2.
double getHitBoxSize()
Returns the size of the hitbox of the ball.
void setHitBoxRelocationDistance()
Sets the hitbox relocation distance the hitbox of the ball is in reality.
double getHitBoxRelocationDistance()
Returns the hitbox relocation distance.
boolean isRotatingEnabled()
Returns if the ball displays a rotation animation when being kicked or thrown.
void setSkin()
Changes the skin of the ball. Has to be a skin-URL or name of a player.
java.lang.String getSkin()
Returns the skin of the ball.
BallSize getSize()
Returns the size of the ball.
void setSize()
Sets the size of the ball.