Package net.minecraft.test
Record Class TestEnvironmentDefinition.TimeOfDay
java.lang.Object
java.lang.Record
net.minecraft.test.TestEnvironmentDefinition.TimeOfDay
- Record Components:
time-
- All Implemented Interfaces:
TestEnvironmentDefinition
- Enclosing interface:
TestEnvironmentDefinition
public static record TestEnvironmentDefinition.TimeOfDay(int time)
extends Record
implements TestEnvironmentDefinition
- Mappings:
Namespace Name named net/minecraft/test/TestEnvironmentDefinition$TimeOfDayintermediary net/minecraft/class_10665$class_10670official tm$dnamed timeintermediary comp_3556official d
-
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.TimeOfDay> private final intThe field for thetimerecord 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.com.mojang.serialization.MapCodec<TestEnvironmentDefinition.TimeOfDay> getCodec()final inthashCode()Returns a hash code value for this object.voidsetup(ServerWorld world) inttime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.test.TestEnvironmentDefinition
teardown
-
Field Details
-
time
private final int timeThe field for thetimerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/test/TestEnvironmentDefinition$TimeOfDay;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_56206Lnet/minecraft/class_10665$class_10670;field_56206:Lcom/mojang/serialization/MapCodec;official cLtm$d;c:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
TimeOfDay
public TimeOfDay(int int2)
-
-
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
-
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 with '=='. -
time
public int time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-