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/TestData
intermediary net/minecraft/class_10664
official tl
named environment
intermediary comp_3539
official b
named structure
intermediary comp_3540
official c
named maxTicks
intermediary comp_3541
official d
named setupTicks
intermediary comp_3542
official e
named required
intermediary comp_3543
official f
named rotation
intermediary comp_3544
official g
named manualOnly
intermediary comp_3545
official h
named maxAttempts
intermediary comp_3546
official i
named requiredSuccesses
intermediary comp_3547
official j
named skyAccess
intermediary comp_3548
official k
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<TestData<RegistryEntry<TestEnvironmentDefinition>>> private final EnvironmentType
The field for theenvironment
record component.private final boolean
The field for themanualOnly
record component.private final int
The field for themaxAttempts
record component.private final int
The field for themaxTicks
record component.private final boolean
The field for therequired
record component.private final int
The field for therequiredSuccesses
record component.private final BlockRotation
The field for therotation
record component.private final int
The field for thesetupTicks
record component.private final boolean
The field for theskyAccess
record component.private final Identifier
The field for thestructure
record 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 theenvironment
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of themanualOnly
record component.int
Returns the value of themaxAttempts
record component.int
maxTicks()
Returns the value of themaxTicks
record component.boolean
required()
Returns the value of therequired
record component.int
Returns the value of therequiredSuccesses
record component.rotation()
Returns the value of therotation
record component.int
Returns the value of thesetupTicks
record component.boolean
Returns the value of theskyAccess
record component.Returns the value of thestructure
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
environment
The field for theenvironment
record component. -
structure
The field for thestructure
record component. -
maxTicks
private final int maxTicksThe field for themaxTicks
record component. -
setupTicks
private final int setupTicksThe field for thesetupTicks
record component. -
required
private final boolean requiredThe field for therequired
record component. -
rotation
The field for therotation
record component. -
manualOnly
private final boolean manualOnlyThe field for themanualOnly
record component. -
maxAttempts
private final int maxAttemptsThe field for themaxAttempts
record component. -
requiredSuccesses
private final int requiredSuccessesThe field for therequiredSuccesses
record component. -
skyAccess
private final boolean skyAccessThe field for theskyAccess
record component. -
CODEC
public static final com.mojang.serialization.MapCodec<TestData<RegistryEntry<TestEnvironmentDefinition>>> CODEC- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/test/TestData;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_56199
Lnet/minecraft/class_10664;field_56199:Lcom/mojang/serialization/MapCodec;
official a
Ltl;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;)V
intermediary <init>
Lnet/minecraft/class_10664;<init>(Ljava/lang/Object;Lnet/minecraft/class_2960;IIZLnet/minecraft/class_2470;)V
official <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)V
intermediary <init>
Lnet/minecraft/class_10664;<init>(Ljava/lang/Object;Lnet/minecraft/class_2960;IIZ)V
official <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 applyToEnvironment
Lnet/minecraft/test/TestData;applyToEnvironment(Ljava/util/function/Function;)Lnet/minecraft/test/TestData;
intermediary method_67049
Lnet/minecraft/class_10664;method_67049(Ljava/util/function/Function;)Lnet/minecraft/class_10664;
official a
Ltl;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 theenvironment
record component.- Returns:
- the value of the
environment
record component
-
structure
Returns the value of thestructure
record component.- Returns:
- the value of the
structure
record component
-
maxTicks
public int maxTicks()Returns the value of themaxTicks
record component.- Returns:
- the value of the
maxTicks
record component
-
setupTicks
public int setupTicks()Returns the value of thesetupTicks
record component.- Returns:
- the value of the
setupTicks
record component
-
required
public boolean required()Returns the value of therequired
record component.- Returns:
- the value of the
required
record component
-
rotation
Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
manualOnly
public boolean manualOnly()Returns the value of themanualOnly
record component.- Returns:
- the value of the
manualOnly
record component
-
maxAttempts
public int maxAttempts()Returns the value of themaxAttempts
record component.- Returns:
- the value of the
maxAttempts
record component
-
requiredSuccesses
public int requiredSuccesses()Returns the value of therequiredSuccesses
record component.- Returns:
- the value of the
requiredSuccesses
record component
-
skyAccess
public boolean skyAccess()Returns the value of theskyAccess
record component.- Returns:
- the value of the
skyAccess
record component
-