From e74addf2e4123bef3a67ec9b0c96eb1969a36ffb Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 27 Jul 2011 21:18:52 -0400 Subject: [PATCH] Removed deprecated methods. getNote() that returns a byte has been replaced by getRawNote(). teleportTo(Location) has been replaced by teleport(location). teleportTo(Entity) has been replaced by teleport(Entity). SnowForm event has been replaced by BlockForm event. By: EvilSeph --- .../org/bukkit/craftbukkit/block/CraftNoteBlock.java | 10 ++-------- .../org/bukkit/craftbukkit/entity/CraftEntity.java | 8 -------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftNoteBlock.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftNoteBlock.java index 403c6d00d7..0851ad31ba 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftNoteBlock.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftNoteBlock.java @@ -20,9 +20,8 @@ public class CraftNoteBlock extends CraftBlockState implements NoteBlock { note = (TileEntityNote) world.getTileEntityAt(getX(), getY(), getZ()); } - @Deprecated - public byte getNote() { - return note.note; + public Note getNote() { + return new Note(note.note); } public byte getRawNote() { @@ -33,11 +32,6 @@ public class CraftNoteBlock extends CraftBlockState implements NoteBlock { note.note = n.getId(); } - @Deprecated - public void setNote(byte n) { - note.note = n; - } - public void setRawNote(byte n) { note.note = n; } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 7cc9e82a16..7c97c845e1 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -132,14 +132,6 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { return teleport(destination.getLocation()); } - public void teleportTo(Location location) { - teleport(location); - } - - public void teleportTo(org.bukkit.entity.Entity destination) { - teleport(destination); - } - public List getNearbyEntities(double x, double y, double z) { @SuppressWarnings("unchecked") List notchEntityList = entity.world.b(entity, entity.boundingBox.b(x, y, z));