aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/core/util/VanillaChatCommandSender.java
blob: 76e80204deee3465e50133d212cf1298140590da (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
30
31
32
33
34
35
package miscutil.core.util;

import net.minecraft.util.ChunkCoordinates;
import net.minecraft.util.IChatComponent;
import net.minecraft.world.World;

public interface VanillaChatCommandSender {
	
	    /**
	     * Gets the name of this command sender (usually username, but possibly "Rcon")
	     */
	    String getCommandSenderName();

	    IChatComponent func_145748_c_();

	    /**
	     * Notifies this sender of some sort of information.  This is for messages intended to display to the user.  Used
	     * for typical output (like "you asked for whether or not this game rule is set, so here's your answer"), warnings
	     * (like "I fetched this block for you by ID, but I'd like you to know that every time you do this, I die a little
	     * inside"), and errors (like "it's not called iron_pixacke, silly").
	     */
	    void addChatMessage(IChatComponent p_145747_1_);

	    /**
	     * Returns true if the command sender is allowed to use the given command.
	     */
	    boolean canCommandSenderUseCommand(int p_70003_1_, String p_70003_2_);

	    /**
	     * Return the position for this command sender.
	     */
	    ChunkCoordinates getPlayerCoordinates();

	    World getEntityWorld();
	}