public interface PetBlock
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 |
damage(double amount)
Damages the petblock the given amount of damage.
|
void |
eject(Object player)
Ejects the given player riding from the petblock.
|
Object |
getArmorStand()
Returns the armorstand of the petblock.
|
String |
getDisplayName()
Returns the displayName of the petblock.
|
EffectPipeline |
getEffectPipeline()
Returns the pipeline for managed effect playing.
|
Object |
getEngineEntity()
Returns the entity being used as engine.
|
Object |
getLocation()
Returns the location of the entity.
|
PetMeta |
getMeta()
Returns the meta of the petblock.
|
Object |
getPlayer()
Returns the owner of the petblock.
|
boolean |
isDead()
Returns if the petblock is already removed or dead.
|
boolean |
isDieing()
Deprecated.
|
void |
jump()
Lets the petblock perform a jump.
|
void |
remove()
Removes the petblock.
|
void |
respawn()
Respawns the petblock
|
void |
ride(Object player)
Lets the given player ride on the petblock.
|
void |
setDieing()
Deprecated.
|
void |
setDisplayName(String name)
Sets the displayName of the petblock.
|
void |
setSkin(Object material,
byte data)
Deprecated.
|
void |
setSkin(String skin)
Deprecated.
|
void |
setVelocity(Object vector)
Sets the velocity of the petblock.
|
void |
teleport(Object location)
Teleports the the petblock to the given location.
|
void |
teleportWithOwner(Object location)
Deprecated.
|
void |
wear(Object player)
Lets the given player wear the petblock.
|
@Deprecated void setSkin(String skin)
@Deprecated void setSkin(Object material, byte data)
@Deprecated void setDieing()
@Deprecated void teleportWithOwner(Object location)
@Deprecated boolean isDieing()
EffectPipeline getEffectPipeline()
PetMeta getMeta()
Object getPlayer()
void remove()
void ride(Object player)
player - playervoid wear(Object player)
player - playervoid eject(Object player)
player - playervoid setDisplayName(String name)
name - nameString getDisplayName()
void respawn()
boolean isDead()
Object getArmorStand()
Object getEngineEntity()
Object getLocation()
void damage(double amount)
amount - amountvoid jump()
void setVelocity(Object vector)
vector - vectorvoid teleport(Object location)
location - locationCopyright © 2018. All rights reserved.