@@ -2,7 +2,6 @@ package org.bukkit.entity;
|
||||
|
||||
/**
|
||||
* Represents an Animal.
|
||||
*
|
||||
*/
|
||||
public interface Animals extends Creature {
|
||||
/**
|
||||
|
||||
@@ -67,7 +67,7 @@ public interface Minecart extends Vehicle {
|
||||
|
||||
/**
|
||||
* Gets the derailed velocity modifier. Used for minecarts that are on the ground, but not on rails.
|
||||
*
|
||||
* <p />
|
||||
* A derailed minecart's velocity is multiplied by this factor each tick.
|
||||
*
|
||||
* @return derailed visible speed
|
||||
|
||||
@@ -16,12 +16,11 @@ import org.bukkit.plugin.messaging.PluginMessageRecipient;
|
||||
|
||||
/**
|
||||
* Represents a player, connected or not
|
||||
*
|
||||
*/
|
||||
public interface Player extends HumanEntity, CommandSender, OfflinePlayer, PluginMessageRecipient {
|
||||
/**
|
||||
* Gets the "friendly" name to display of this player. This may include color.
|
||||
*
|
||||
* <p />
|
||||
* Note that this name will not be displayed in game, only in chat and places
|
||||
* defined by plugins
|
||||
*
|
||||
@@ -31,7 +30,7 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi
|
||||
|
||||
/**
|
||||
* Sets the "friendly" name to display of this player. This may include color.
|
||||
*
|
||||
* <p />
|
||||
* Note that this name will not be displayed in game, only in chat and places
|
||||
* defined by plugins
|
||||
*
|
||||
@@ -153,7 +152,7 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi
|
||||
|
||||
/**
|
||||
* Loads the players current location, health, inventory, motion, and other information from the username.dat file, in the world/player folder
|
||||
*
|
||||
* <p />
|
||||
* Note: This will overwrite the players current inventory, health, motion, etc, with the state from the saved dat file.
|
||||
*/
|
||||
public void loadData();
|
||||
@@ -220,7 +219,7 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi
|
||||
* Send a chunk change. This fakes a chunk change packet for a user at
|
||||
* a certain location. The updated cuboid must be entirely within a single
|
||||
* chunk. This will not actually change the world in any way.
|
||||
*
|
||||
* <p />
|
||||
* At least one of the dimensions of the cuboid must be even. The size of the
|
||||
* data buffer must be 2.5*sx*sy*sz and formatted in accordance with the Packet51
|
||||
* format.
|
||||
@@ -230,7 +229,6 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi
|
||||
* @param sy The y size of the cuboid
|
||||
* @param sz The z size of the cuboid
|
||||
* @param data The data to be sent
|
||||
*
|
||||
* @return true if the chunk change packet was sent
|
||||
*/
|
||||
public boolean sendChunkChange(Location loc, int sx, int sy, int sz, byte[] data);
|
||||
@@ -303,7 +301,7 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi
|
||||
/**
|
||||
* Sets the current time on the player's client. When relative is true the player's time
|
||||
* will be kept synchronized to its world time with the specified offset.
|
||||
*
|
||||
* <p />
|
||||
* When using non relative time the player's time will stay fixed at the specified time parameter. It's up to
|
||||
* the caller to continue updating the player's time. To restore player time to normal use resetPlayerTime().
|
||||
*
|
||||
@@ -471,19 +469,19 @@ public interface Player extends HumanEntity, CommandSender, OfflinePlayer, Plugi
|
||||
* @return Bed Spawn Location if bed exists, otherwise null.
|
||||
*/
|
||||
public Location getBedSpawnLocation();
|
||||
|
||||
|
||||
/**
|
||||
* Determines if the Player is allowed to fly via jump key double-tap like in creative mode.
|
||||
*
|
||||
*
|
||||
* @return True if the player is allowed to fly.
|
||||
*/
|
||||
public boolean getAllowFlight();
|
||||
|
||||
|
||||
/**
|
||||
* Sets if the Player is allowed to fly via jump key double-tap like in creative mode.
|
||||
*
|
||||
*
|
||||
* @param flight If flight should be allowed.
|
||||
*/
|
||||
public void setAllowFlight(boolean flight);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public interface Projectile extends Entity {
|
||||
|
||||
/**
|
||||
* Determine if this projectile should bounce or not when it hits.
|
||||
*
|
||||
* <p />
|
||||
* If a small fireball does not bounce it will set the target on fire.
|
||||
*
|
||||
* @return true if it should bounce.
|
||||
|
||||
@@ -4,7 +4,7 @@ public interface Tameable {
|
||||
|
||||
/**
|
||||
* Check if this is tamed
|
||||
*
|
||||
* <p />
|
||||
* If something is tamed then a player can not tame it through normal methods, even if it does not belong to anyone in particular.
|
||||
*
|
||||
* @return true if this has been tamed
|
||||
@@ -13,7 +13,7 @@ public interface Tameable {
|
||||
|
||||
/**
|
||||
* Sets if this has been tamed. Not necessary if the method setOwner has been used, as it tames automatically.
|
||||
*
|
||||
* <p />
|
||||
* If something is tamed then a player can not tame it through normal methods, even if it does not belong to anyone in particular.
|
||||
*
|
||||
* @param tame true if tame
|
||||
|
||||
Reference in New Issue
Block a user