Code/net/minecraft/commands/CommandSource.java

38 lines
765 B
Java
Raw Permalink Normal View History

2025-07-01 06:20:03 +00:00
package net.minecraft.commands;
import net.minecraft.network.chat.Component;
public interface CommandSource {
CommandSource NULL = new CommandSource() {
@Override
public void sendSystemMessage(Component p_230799_) {
}
@Override
public boolean acceptsSuccess() {
return false;
}
@Override
public boolean acceptsFailure() {
return false;
}
@Override
public boolean shouldInformAdmins() {
return false;
}
};
void sendSystemMessage(Component p_230797_);
boolean acceptsSuccess();
boolean acceptsFailure();
boolean shouldInformAdmins();
default boolean alwaysAccepts() {
return false;
}
}