13
0
geforkt von Mirrors/Paper

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 <evilseph@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2011-07-27 21:18:52 -04:00
Ursprung 04335a1ebe
Commit e74addf2e4
2 geänderte Dateien mit 2 neuen und 16 gelöschten Zeilen

Datei anzeigen

@ -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;
}

Datei anzeigen

@ -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<org.bukkit.entity.Entity> getNearbyEntities(double x, double y, double z) {
@SuppressWarnings("unchecked")
List<Entity> notchEntityList = entity.world.b(entity, entity.boundingBox.b(x, y, z));