Package net.minecraft
Record Class class_8307.class_8308
java.lang.Object
java.lang.Record
net.minecraft.class_8307.class_8308
- Record Components:
source
-target
-
- Enclosing class:
class_8307
private static record class_8307.class_8308(RegistryEntry.Reference<Block> source, RegistryEntry.Reference<Block> target)
extends Record
- Mappings:
Namespace Name official beo$a
intermediary net/minecraft/class_8307$class_8308
named net/minecraft/class_8307$class_8308
official a
intermediary comp_1349
named source
official b
intermediary comp_1350
named target
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntry.Reference<Block>
The field for thesource
record component.private final RegistryEntry.Reference<Block>
The field for thetarget
record component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_8308
(RegistryEntry.Reference<Block> reference, RegistryEntry.Reference<Block> reference2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.source()
Returns the value of thesource
record component.target()
Returns the value of thetarget
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
class_8308
class_8308(RegistryEntry.Reference<Block> reference, RegistryEntry.Reference<Block> reference2)
-
-
Method Details
-
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)
. -
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
target
Returns the value of thetarget
record component.- Returns:
- the value of the
target
record component
-