blob: 45cefdacb802e213760831725de7862ab8df1f67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package net.minecraft.server;
// CraftBukkit - package-private -> public
public class TileEntityCommandListener extends CommandBlockListenerAbstract {
final TileEntityCommand a;
TileEntityCommandListener(TileEntityCommand tileentitycommand) {
this.a = tileentitycommand;
sender = new org.bukkit.craftbukkit.command.CraftBlockCommandSender(this); // CraftBukkit - add sender
}
public ChunkCoordinates getChunkCoordinates() {
return new ChunkCoordinates(this.a.x, this.a.y, this.a.z);
}
public World getWorld() {
return this.a.getWorld();
}
public void setCommand(String s) {
super.setCommand(s);
this.a.update();
}
public void e() {
this.a.getWorld().notify(this.a.x, this.a.y, this.a.z);
}
}
|