Package net.minecraft.test
Record Class TestEnvironmentDefinition.Function
java.lang.Object
java.lang.Record
net.minecraft.test.TestEnvironmentDefinition.Function
- Record Components:
setupFunction-teardownFunction-
- All Implemented Interfaces:
TestEnvironmentDefinition
- Enclosing interface:
TestEnvironmentDefinition
public static record TestEnvironmentDefinition.Function(Optional<Identifier> setupFunction, Optional<Identifier> teardownFunction)
extends Record
implements TestEnvironmentDefinition
- Mappings:
Namespace Name named net/minecraft/test/TestEnvironmentDefinition$Functionintermediary net/minecraft/class_10665$class_10667official tm$bnamed setupFunctionintermediary comp_3550official dnamed teardownFunctionintermediary comp_3551official e
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.test.TestEnvironmentDefinition
TestEnvironmentDefinition.AllOf, TestEnvironmentDefinition.Function, TestEnvironmentDefinition.GameRules, TestEnvironmentDefinition.TimeOfDay, TestEnvironmentDefinition.Weather -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TestEnvironmentDefinition.Function> private static final Loggerprivate final Optional<Identifier> The field for thesetupFunctionrecord component.private final Optional<Identifier> The field for theteardownFunctionrecord component.Fields inherited from interface net.minecraft.test.TestEnvironmentDefinition
ENTRY_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.private static voidexecuteFunction(ServerWorld world, Identifier functionId) com.mojang.serialization.MapCodec<TestEnvironmentDefinition.Function> getCodec()final inthashCode()Returns a hash code value for this object.voidsetup(ServerWorld world) Returns the value of thesetupFunctionrecord component.voidteardown(ServerWorld world) Returns the value of theteardownFunctionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
setupFunction
The field for thesetupFunctionrecord component. -
teardownFunction
The field for theteardownFunctionrecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/test/TestEnvironmentDefinition$Function;LOGGER:Lorg/slf4j/Logger;intermediary field_56204Lnet/minecraft/class_10665$class_10667;field_56204:Lorg/slf4j/Logger;official fLtm$b;f:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/test/TestEnvironmentDefinition$Function;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_56203Lnet/minecraft/class_10665$class_10667;field_56203:Lcom/mojang/serialization/MapCodec;official cLtm$b;c:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Function
-
-
Method Details
-
setup
- Specified by:
setupin interfaceTestEnvironmentDefinition- Mappings:
Namespace Name Mixin selector named setupLnet/minecraft/test/TestEnvironmentDefinition;setup(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_67051Lnet/minecraft/class_10665;method_67051(Lnet/minecraft/class_3218;)Vofficial aLtm;a(Lasb;)V
-
teardown
- Specified by:
teardownin interfaceTestEnvironmentDefinition- Mappings:
Namespace Name Mixin selector named teardownLnet/minecraft/test/TestEnvironmentDefinition;teardown(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_67054Lnet/minecraft/class_10665;method_67054(Lnet/minecraft/class_3218;)Vofficial bLtm;b(Lasb;)V
-
executeFunction
- Mappings:
Namespace Name Mixin selector named executeFunctionLnet/minecraft/test/TestEnvironmentDefinition$Function;executeFunction(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/Identifier;)Vintermediary method_67058Lnet/minecraft/class_10665$class_10667;method_67058(Lnet/minecraft/class_3218;Lnet/minecraft/class_2960;)Vofficial aLtm$b;a(Lasb;Lalr;)V
-
getCodec
- Specified by:
getCodecin interfaceTestEnvironmentDefinition- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/test/TestEnvironmentDefinition;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_67050Lnet/minecraft/class_10665;method_67050()Lcom/mojang/serialization/MapCodec;official aLtm;a()Lcom/mojang/serialization/MapCodec;
-
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). -
setupFunction
Returns the value of thesetupFunctionrecord component.- Returns:
- the value of the
setupFunctionrecord component
-
teardownFunction
Returns the value of theteardownFunctionrecord component.- Returns:
- the value of the
teardownFunctionrecord component
-