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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user