Record Class DataComponentLookup.ComponentStorage<C,T>
java.lang.Object
java.lang.Record
net.minecraft.core.component.DataComponentLookup.ComponentStorage<C,T>
- Enclosing class:
DataComponentLookup<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thevalueToComponentrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateComponentStorage(Multimap<C, Holder<T>> valueToComponent) Creates an instance of aComponentStoragerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.findMatching(Predicate<C> predicate) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueToComponentrecord component.
-
Field Details
-
valueToComponent
-
-
Constructor Details
-
ComponentStorage
-
-
Method Details
-
findAll
-
findMatching
-
toString
-
hashCode
-
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). -
valueToComponent
-