Class BaseCommandBlock.CloseableCommandBlockSource
java.lang.Object
net.minecraft.world.level.BaseCommandBlock.CloseableCommandBlockSource
- All Implemented Interfaces:
AutoCloseable, CommandSource
- Enclosing class:
BaseCommandBlock
protected class BaseCommandBlock.CloseableCommandBlockSource
extends Object
implements CommandSource, AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final ServerLevelprivate static final DateTimeFormatterFields inherited from interface CommandSource
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidclose()voidsendSystemMessage(Component message) booleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommandSource
alwaysAccepts
-
Field Details
-
level
-
TIME_FORMAT
-
closed
private boolean closed
-
-
Constructor Details
-
CloseableCommandBlockSource
-
-
Method Details
-
acceptsSuccess
public boolean acceptsSuccess()- Specified by:
acceptsSuccessin interfaceCommandSource
-
acceptsFailure
public boolean acceptsFailure()- Specified by:
acceptsFailurein interfaceCommandSource
-
shouldInformAdmins
public boolean shouldInformAdmins()- Specified by:
shouldInformAdminsin interfaceCommandSource
-
sendSystemMessage
- Specified by:
sendSystemMessagein interfaceCommandSource
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-