mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
All previous deprecated methods removed (OH GOD EVERYTHING BROKEN)
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
e377a96a02
commit
7e9974d53c
@ -55,14 +55,6 @@ public abstract class Command {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #getDescription()}
|
||||
*/
|
||||
@Deprecated
|
||||
public String getTooltip() {
|
||||
return getDescription();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an example usage of this command
|
||||
*
|
||||
@ -94,15 +86,6 @@ public abstract class Command {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #setDescription(description)}
|
||||
*/
|
||||
@Deprecated
|
||||
public Command setTooltip(String tooltip) {
|
||||
this.description = tooltip;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the example usage of this command
|
||||
*
|
||||
|
@ -18,15 +18,6 @@ public interface CommandSender {
|
||||
*/
|
||||
public boolean isOp();
|
||||
|
||||
/**
|
||||
* Checks if this sender is a player
|
||||
*
|
||||
* @return true if they are
|
||||
* @deprecated Use instanceof
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean isPlayer();
|
||||
|
||||
/**
|
||||
* Returns the server instance that this command is running on
|
||||
*
|
||||
|
@ -26,7 +26,7 @@ public class PluginCommandYamlParser {
|
||||
Object aliases = entry.getValue().get("aliases");
|
||||
|
||||
if (description != null)
|
||||
newCmd.setTooltip(description.toString());
|
||||
newCmd.setDescription(description.toString());
|
||||
|
||||
if (usage != null) {
|
||||
newCmd.setUsage(usage.toString());
|
||||
|
@ -17,24 +17,6 @@ public interface Entity {
|
||||
*/
|
||||
public Location getLocation();
|
||||
|
||||
/**
|
||||
* Gets this entity's current momentum
|
||||
*
|
||||
* @return Current travelling momentum of this entity
|
||||
* @deprecated See {@link #getVelocity()}
|
||||
*/
|
||||
@Deprecated
|
||||
public Vector getMomentum();
|
||||
|
||||
/**
|
||||
* Sets this entity's momentum
|
||||
*
|
||||
* @param vector New momentum to travel with
|
||||
* @deprecated See {@link #setVelocity(org.bukkit.util.Vector)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void setMomentum(Vector vector);
|
||||
|
||||
/**
|
||||
* Sets this entity's velocity
|
||||
*
|
||||
|
@ -31,18 +31,6 @@ public class BlockRightClickEvent extends BlockEvent {
|
||||
return player;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the block that this block was placed against
|
||||
*
|
||||
* @return Block the block that the new block was placed against
|
||||
* @deprecated use getBlock
|
||||
*/
|
||||
@Deprecated
|
||||
public Block getBlockAgainst() {
|
||||
return clickedBlock;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BlockFace the direction this block was clicked
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user