Package net.minecraft
Record Class class_9657
java.lang.Object
java.lang.Record
net.minecraft.class_9657
- Record Components:
c-
- All Implemented Interfaces:
ComponentSubPredicate<FireworkExplosionComponent>,ItemSubPredicate
public record class_9657(class_9657.class_9658 c)
extends Record
implements ComponentSubPredicate<FireworkExplosionComponent>
- Mappings:
Namespace Name named net/minecraft/class_9657intermediary net/minecraft/class_9657official cmnamed cintermediary comp_2632official c
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.predicate.item.ItemSubPredicate
ItemSubPredicate.Type<T extends ItemSubPredicate> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_9657.class_9658The field for thecrecord component.static final com.mojang.serialization.Codec<class_9657> Fields inherited from interface net.minecraft.predicate.item.ItemSubPredicate
PREDICATES_MAP_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionc()Returns the value of thecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantest(ItemStack itemStack, FireworkExplosionComponent fireworkExplosionComponent) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.predicate.item.ComponentSubPredicate
test
-
Field Details
-
c
The field for thecrecord component. -
field_51382
- Mappings:
Namespace Name Mixin selector named field_51382Lnet/minecraft/class_9657;field_51382:Lcom/mojang/serialization/Codec;intermediary field_51382Lnet/minecraft/class_9657;field_51382:Lcom/mojang/serialization/Codec;official aLcm;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_9657
-
-
Method Details
-
getComponentType
- Specified by:
getComponentTypein interfaceComponentSubPredicate<FireworkExplosionComponent>- Mappings:
Namespace Name Mixin selector named getComponentTypeLnet/minecraft/predicate/item/ComponentSubPredicate;getComponentType()Lnet/minecraft/component/DataComponentType;intermediary method_58163Lnet/minecraft/class_9365;method_58163()Lnet/minecraft/class_9331;official aLds;a()Lkl;
-
test
- Specified by:
testin interfaceComponentSubPredicate<FireworkExplosionComponent>- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/class_9657;test(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/FireworkExplosionComponent;)Zintermediary method_59676Lnet/minecraft/class_9657;method_59676(Lnet/minecraft/class_1799;Lnet/minecraft/class_9283;)Zofficial aLcm;a(Lcuk;Lcxd;)Z
-
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). -
c
Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-