blob: 5b452856e136108b9a2e83997e0e74d90bab1032 (
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
|
package net.minecraft.server;
// CraftBukkit - package-private -> public
public class EntityMinecartCommandBlockListener extends CommandBlockListenerAbstract {
final EntityMinecartCommandBlock a;
EntityMinecartCommandBlockListener(EntityMinecartCommandBlock entityminecartcommandblock) {
this.a = entityminecartcommandblock;
this.sender = (org.bukkit.craftbukkit.entity.CraftMinecartCommand) entityminecartcommandblock.getBukkitEntity(); // CraftBukkit - Set the sender
}
public void e() {
this.a.getDataWatcher().watch(23, this.getCommand());
this.a.getDataWatcher().watch(24, ChatSerializer.a(this.h()));
}
public ChunkCoordinates getChunkCoordinates() {
return new ChunkCoordinates(MathHelper.floor(this.a.locX), MathHelper.floor(this.a.locY + 0.5D), MathHelper.floor(this.a.locZ));
}
public World getWorld() {
return this.a.world;
}
}
|