Package net.minecraft.test
Record Class TestEnvironmentDefinition.GameRules
java.lang.Object
java.lang.Record
net.minecraft.test.TestEnvironmentDefinition.GameRules
- Record Components:
boolRules
-intRules
-
- All Implemented Interfaces:
TestEnvironmentDefinition
- Enclosing interface:
TestEnvironmentDefinition
public static record TestEnvironmentDefinition.GameRules(List<TestEnvironmentDefinition.GameRules.RuleValue<Boolean,GameRules.BooleanRule>> boolRules, List<TestEnvironmentDefinition.GameRules.RuleValue<Integer,GameRules.IntRule>> intRules)
extends Record
implements TestEnvironmentDefinition
- Mappings:
Namespace Name named net/minecraft/test/TestEnvironmentDefinition$GameRules
intermediary net/minecraft/class_10665$class_10668
official tu$c
named boolRules
intermediary comp_3552
official d
named intRules
intermediary comp_3553
official e
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Nested classes/interfaces inherited from interface net.minecraft.test.TestEnvironmentDefinition
TestEnvironmentDefinition.AllOf, TestEnvironmentDefinition.Function, TestEnvironmentDefinition.GameRules, TestEnvironmentDefinition.TimeOfDay, TestEnvironmentDefinition.Weather
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theboolRules
record component.static final com.mojang.serialization.MapCodec
<TestEnvironmentDefinition.GameRules> private final List
<TestEnvironmentDefinition.GameRules.RuleValue<Integer, GameRules.IntRule>> The field for theintRules
record component.Fields inherited from interface net.minecraft.test.TestEnvironmentDefinition
ENTRY_CODEC
-
Constructor Summary
ConstructorsConstructorDescriptionGameRules
(List<TestEnvironmentDefinition.GameRules.RuleValue<Boolean, GameRules.BooleanRule>> list, List<TestEnvironmentDefinition.GameRules.RuleValue<Integer, GameRules.IntRule>> list2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theboolRules
record component.final boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<TestEnvironmentDefinition.GameRules> getCodec()
final int
hashCode()
Returns a hash code value for this object.intRules()
Returns the value of theintRules
record component.static <S,
T extends GameRules.Rule<T>>
TestEnvironmentDefinition.GameRules.RuleValue<S, T> ruleValue
(GameRules.Key<T> key, S value) void
setup
(ServerWorld world) void
teardown
(ServerWorld world) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
boolRules
private final List<TestEnvironmentDefinition.GameRules.RuleValue<Boolean,GameRules.BooleanRule>> boolRulesThe field for theboolRules
record component. -
intRules
private final List<TestEnvironmentDefinition.GameRules.RuleValue<Integer,GameRules.IntRule>> intRulesThe field for theintRules
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/test/TestEnvironmentDefinition$GameRules;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_56205
Lnet/minecraft/class_10665$class_10668;field_56205:Lcom/mojang/serialization/MapCodec;
official c
Ltu$c;c:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
GameRules
public GameRules(List<TestEnvironmentDefinition.GameRules.RuleValue<Boolean, GameRules.BooleanRule>> list, List<TestEnvironmentDefinition.GameRules.RuleValue<Integer, GameRules.IntRule>> list2)
-
-
Method Details
-
setup
- Specified by:
setup
in interfaceTestEnvironmentDefinition
- Mappings:
Namespace Name Mixin selector named setup
Lnet/minecraft/test/TestEnvironmentDefinition;setup(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_67051
Lnet/minecraft/class_10665;method_67051(Lnet/minecraft/class_3218;)V
official a
Ltu;a(Laub;)V
-
teardown
- Specified by:
teardown
in interfaceTestEnvironmentDefinition
- Mappings:
Namespace Name Mixin selector named teardown
Lnet/minecraft/test/TestEnvironmentDefinition;teardown(Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_67054
Lnet/minecraft/class_10665;method_67054(Lnet/minecraft/class_3218;)V
official b
Ltu;b(Laub;)V
-
getCodec
- Specified by:
getCodec
in interfaceTestEnvironmentDefinition
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/test/TestEnvironmentDefinition;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_67050
Lnet/minecraft/class_10665;method_67050()Lcom/mojang/serialization/MapCodec;
official a
Ltu;a()Lcom/mojang/serialization/MapCodec;
-
ruleValue
public static <S,T extends GameRules.Rule<T>> TestEnvironmentDefinition.GameRules.RuleValue<S,T> ruleValue(GameRules.Key<T> key, S value) - Mappings:
Namespace Name Mixin selector named ruleValue
Lnet/minecraft/test/TestEnvironmentDefinition$GameRules;ruleValue(Lnet/minecraft/world/GameRules$Key;Ljava/lang/Object;)Lnet/minecraft/test/TestEnvironmentDefinition$GameRules$RuleValue;
intermediary method_67063
Lnet/minecraft/class_10665$class_10668;method_67063(Lnet/minecraft/class_1928$class_4313;Ljava/lang/Object;)Lnet/minecraft/class_10665$class_10668$class_10669;
official a
Ltu$c;a(Ldmq$e;Ljava/lang/Object;)Ltu$c$a;
-
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)
. -
boolRules
public List<TestEnvironmentDefinition.GameRules.RuleValue<Boolean,GameRules.BooleanRule>> boolRules()Returns the value of theboolRules
record component.- Returns:
- the value of the
boolRules
record component
-
intRules
Returns the value of theintRules
record component.- Returns:
- the value of the
intRules
record component
-