Package net.minecraft.server.command
Record Class TestCommand.ReportingBatchListener
java.lang.Object
java.lang.Record
net.minecraft.server.command.TestCommand.ReportingBatchListener
- Record Components:
source
-
- All Implemented Interfaces:
BatchListener
- Enclosing class:
TestCommand
private static record TestCommand.ReportingBatchListener(ServerCommandSource source)
extends Record
implements BatchListener
- Mappings:
Namespace Name named net/minecraft/server/command/TestCommand$ReportingBatchListener
intermediary net/minecraft/class_4527$class_9122
official td$b
named source
intermediary comp_2215
official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerCommandSource
The field for thesource
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.void
onFinished
(GameTestBatch batch) void
onStarted
(GameTestBatch batch) source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
source
The field for thesource
record component.
-
-
Constructor Details
-
ReportingBatchListener
ReportingBatchListener(ServerCommandSource serverCommandSource)
-
-
Method Details
-
onStarted
- Specified by:
onStarted
in interfaceBatchListener
- Mappings:
Namespace Name Mixin selector named onStarted
Lnet/minecraft/test/BatchListener;onStarted(Lnet/minecraft/test/GameTestBatch;)V
intermediary method_56199
Lnet/minecraft/class_9114;method_56199(Lnet/minecraft/class_4514;)V
official a
Lsh;a(Lsf;)V
-
onFinished
- Specified by:
onFinished
in interfaceBatchListener
- Mappings:
Namespace Name Mixin selector named onFinished
Lnet/minecraft/test/BatchListener;onFinished(Lnet/minecraft/test/GameTestBatch;)V
intermediary method_56200
Lnet/minecraft/class_9114;method_56200(Lnet/minecraft/class_4514;)V
official b
Lsh;b(Lsf;)V
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-