Package net.minecraft.test
Record Class TestData<EnvironmentType>
java.lang.Object
java.lang.Record
net.minecraft.test.TestData<EnvironmentType>
- Record Components:
environment-structure-maxTicks-setupTicks-required-rotation-manualOnly-maxAttempts-requiredSuccesses-skyAccess-
public record TestData<EnvironmentType>(EnvironmentType environment, Identifier structure, int maxTicks, int setupTicks, boolean required, BlockRotation rotation, boolean manualOnly, int maxAttempts, int requiredSuccesses, boolean skyAccess)
extends Record
- Mappings:
Namespace Name named net/minecraft/test/TestDataintermediary net/minecraft/class_10664official tlnamed environmentintermediary comp_3539official bnamed structureintermediary comp_3540official cnamed maxTicksintermediary comp_3541official dnamed setupTicksintermediary comp_3542official enamed requiredintermediary comp_3543official fnamed rotationintermediary comp_3544official gnamed manualOnlyintermediary comp_3545official hnamed maxAttemptsintermediary comp_3546official inamed requiredSuccessesintermediary comp_3547official jnamed skyAccessintermediary comp_3548official k
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TestData<RegistryEntry<TestEnvironmentDefinition>>> private final EnvironmentTypeThe field for theenvironmentrecord component.private final booleanThe field for themanualOnlyrecord component.private final intThe field for themaxAttemptsrecord component.private final intThe field for themaxTicksrecord component.private final booleanThe field for therequiredrecord component.private final intThe field for therequiredSuccessesrecord component.private final BlockRotationThe field for therotationrecord component.private final intThe field for thesetupTicksrecord component.private final booleanThe field for theskyAccessrecord component.private final IdentifierThe field for thestructurerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTestData(EnvironmentType environment, Identifier structure, int maxTicks, int setupTicks, boolean required) TestData(EnvironmentType environment, Identifier structure, int maxTicks, int setupTicks, boolean required, BlockRotation rotation) TestData(EnvironmentType environmentType, Identifier identifier, int int2, int int3, boolean bool, BlockRotation blockRotation, boolean bool2, int int4, int int5, boolean bool3) -
Method Summary
Modifier and TypeMethodDescription<T> TestData<T> applyToEnvironment(Function<EnvironmentType, T> environmentFunction) Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themanualOnlyrecord component.intReturns the value of themaxAttemptsrecord component.intmaxTicks()Returns the value of themaxTicksrecord component.booleanrequired()Returns the value of therequiredrecord component.intReturns the value of therequiredSuccessesrecord component.rotation()Returns the value of therotationrecord component.intReturns the value of thesetupTicksrecord component.booleanReturns the value of theskyAccessrecord component.Returns the value of thestructurerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
environment
The field for theenvironmentrecord component. -
structure
The field for thestructurerecord component. -
maxTicks
private final int maxTicksThe field for themaxTicksrecord component. -
setupTicks
private final int setupTicksThe field for thesetupTicksrecord component. -
required
private final boolean requiredThe field for therequiredrecord component. -
rotation
The field for therotationrecord component. -
manualOnly
private final boolean manualOnlyThe field for themanualOnlyrecord component. -
maxAttempts
private final int maxAttemptsThe field for themaxAttemptsrecord component. -
requiredSuccesses
private final int requiredSuccessesThe field for therequiredSuccessesrecord component. -
skyAccess
private final boolean skyAccessThe field for theskyAccessrecord component. -
CODEC
public static final com.mojang.serialization.MapCodec<TestData<RegistryEntry<TestEnvironmentDefinition>>> CODEC- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/test/TestData;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_56199Lnet/minecraft/class_10664;field_56199:Lcom/mojang/serialization/MapCodec;official aLtl;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
TestData
public TestData(EnvironmentType environment, Identifier structure, int maxTicks, int setupTicks, boolean required, BlockRotation rotation) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/test/TestData;<init>(Ljava/lang/Object;Lnet/minecraft/util/Identifier;IIZLnet/minecraft/util/BlockRotation;)Vintermediary <init>Lnet/minecraft/class_10664;<init>(Ljava/lang/Object;Lnet/minecraft/class_2960;IIZLnet/minecraft/class_2470;)Vofficial <init>Ltl;<init>(Ljava/lang/Object;Lalr;IIZLdui;)V
-
TestData
public TestData(EnvironmentType environment, Identifier structure, int maxTicks, int setupTicks, boolean required) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/test/TestData;<init>(Ljava/lang/Object;Lnet/minecraft/util/Identifier;IIZ)Vintermediary <init>Lnet/minecraft/class_10664;<init>(Ljava/lang/Object;Lnet/minecraft/class_2960;IIZ)Vofficial <init>Ltl;<init>(Ljava/lang/Object;Lalr;IIZ)V
-
TestData
public TestData(EnvironmentType environmentType, Identifier identifier, int int2, int int3, boolean bool, BlockRotation blockRotation, boolean bool2, int int4, int int5, boolean bool3)
-
-
Method Details
-
applyToEnvironment
- Mappings:
Namespace Name Mixin selector named applyToEnvironmentLnet/minecraft/test/TestData;applyToEnvironment(Ljava/util/function/Function;)Lnet/minecraft/test/TestData;intermediary method_67049Lnet/minecraft/class_10664;method_67049(Ljava/util/function/Function;)Lnet/minecraft/class_10664;official aLtl;a(Ljava/util/function/Function;)Ltl;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
structure
Returns the value of thestructurerecord component.- Returns:
- the value of the
structurerecord component
-
maxTicks
public int maxTicks()Returns the value of themaxTicksrecord component.- Returns:
- the value of the
maxTicksrecord component
-
setupTicks
public int setupTicks()Returns the value of thesetupTicksrecord component.- Returns:
- the value of the
setupTicksrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
manualOnly
public boolean manualOnly()Returns the value of themanualOnlyrecord component.- Returns:
- the value of the
manualOnlyrecord component
-
maxAttempts
public int maxAttempts()Returns the value of themaxAttemptsrecord component.- Returns:
- the value of the
maxAttemptsrecord component
-
requiredSuccesses
public int requiredSuccesses()Returns the value of therequiredSuccessesrecord component.- Returns:
- the value of the
requiredSuccessesrecord component
-
skyAccess
public boolean skyAccess()Returns the value of theskyAccessrecord component.- Returns:
- the value of the
skyAccessrecord component
-