summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/TileEntityCommandListener.java
blob: 8a5f92e3d479031b0ebf8e887f34533bf31e6b1e (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 a(String s) {
        super.a(s);
        this.a.update();
    }

    public void e() {
        this.a.getWorld().notify(this.a.x, this.a.y, this.a.z);
    }
}