public Ball<Location,Entity,Armorstand>
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 |
|---|---|
void |
deGrab()
Removes the ball from the hands of an entity.
|
Armorstand |
getArmorstand()
Returns the armorstand of the ball.
|
Armorstand |
getHitBox()
Returns the hitbox of the ball.
|
Entity |
getLastInteractionEntity()
Returns the last entity the ball interacted with. If it is contact, kicking or grabbing.
|
Location |
getLocation()
Returns the location of the ball.
|
BallMeta |
getMeta()
Returns the meta data of the ball. Ball has to be respawned for applying changes from the ballMeta.
|
java.util.Optional<Entity> |
getOwner()
Returns the owner of the ball.
|
java.util.UUID |
getUUID()
Returns the id of the ball.
|
void |
grab()
Sets the ball in the hands of the entity.
|
boolean |
isDead()
Returns if the ball is dead.
|
boolean |
isGrabbed()
Returns if the ball is currently hold by any entity.
|
boolean |
isPersistent()
Returns if the ball should be stored on the fileSystem.
|
void |
kickByEntity()
Kicks the ball by the given entity. The calculated velocity can be manipulated by the BallKickEvent.
|
void |
moveEntity()
Lets the ball roll or fly by the given values.
|
void |
remove()
Removes the ball.
|
void |
respawn()
Respawns the ball at the current location.
|
void |
setPersistent()
Sets if the ball should be stored on the fileSystem.
|
void |
teleport()
Teleports the ball to the given location.
|
void |
throwByEntity()
Throws the ball by the given entity. The calculated velocity can be manipulated by the BallThrowEvent.
|
void teleport()
Teleports the ball to the given location.
Location getLocation()
Returns the location of the ball.
void kickByEntity()
Kicks the ball by the given entity. The calculated velocity can be manipulated by the BallKickEvent.
void throwByEntity()
Throws the ball by the given entity. The calculated velocity can be manipulated by the BallThrowEvent.
Entity getLastInteractionEntity()
Returns the last entity the ball interacted with. If it is contact, kicking or grabbing.
void grab()
Sets the ball in the hands of the entity.
void deGrab()
Removes the ball from the hands of an entity.
boolean isGrabbed()
Returns if the ball is currently hold by any entity.
BallMeta getMeta()
Returns the meta data of the ball. Ball has to be respawned for applying changes from the ballMeta.
void respawn()
Respawns the ball at the current location.
void remove()
Removes the ball.
boolean isDead()
Returns if the ball is dead.
void moveEntity()
Lets the ball roll or fly by the given values.
void setPersistent()
Sets if the ball should be stored on the fileSystem.
boolean isPersistent()
Returns if the ball should be stored on the fileSystem.
java.util.Optional<Entity> getOwner()
Returns the owner of the ball.
Armorstand getArmorstand()
Returns the armorstand of the ball.
Armorstand getHitBox()
Returns the hitbox of the ball.
java.util.UUID getUUID()
Returns the id of the ball.