Interface ComponentPredicate
- All Known Subinterfaces:
ComponentSubPredicate<T>
- All Known Implementing Classes:
AttributeModifiersPredicate
,BundleContentsPredicate
,ContainerPredicate
,CustomDataPredicate
,DamagePredicate
,EnchantmentsPredicate
,EnchantmentsPredicate.Enchantments
,EnchantmentsPredicate.StoredEnchantments
,FireworkExplosionPredicate
,FireworksPredicate
,JukeboxPlayablePredicate
,PotionContentsPredicate
,TrimPredicate
,WritableBookContentPredicate
,WrittenBookContentPredicate
public interface ComponentPredicate
- Mappings:
Namespace Name named net/minecraft/predicate/component/ComponentPredicate
intermediary net/minecraft/class_9360
official ku
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
ComponentPredicate.Type<T extends ComponentPredicate>
static final record
ComponentPredicate.Typed<T extends ComponentPredicate>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Map<ComponentPredicate.Type<?>, ComponentPredicate>> static final PacketCodec
<RegistryByteBuf, Map<ComponentPredicate.Type<?>, ComponentPredicate>> static final PacketCodec
<RegistryByteBuf, ComponentPredicate.Typed<?>> -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<ComponentPredicate.Typed<?>> createCodec
(String predicateFieldName) boolean
test
(ComponentsAccess components)
-
Field Details
-
PREDICATES_MAP_CODEC
static final com.mojang.serialization.Codec<Map<ComponentPredicate.Type<?>,ComponentPredicate>> PREDICATES_MAP_CODEC- Mappings:
Namespace Name Mixin selector named PREDICATES_MAP_CODEC
Lnet/minecraft/predicate/component/ComponentPredicate;PREDICATES_MAP_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49805
Lnet/minecraft/class_9360;field_49805:Lcom/mojang/serialization/Codec;
official b
Lku;b:Lcom/mojang/serialization/Codec;
-
SINGLE_PREDICATE_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named SINGLE_PREDICATE_PACKET_CODEC
Lnet/minecraft/predicate/component/ComponentPredicate;SINGLE_PREDICATE_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_58054
Lnet/minecraft/class_9360;field_58054:Lnet/minecraft/class_9139;
official c
Lku;c:Lze;
-
PREDICATES_MAP_PACKET_CODEC
static final PacketCodec<RegistryByteBuf,Map<ComponentPredicate.Type<?>, PREDICATES_MAP_PACKET_CODECComponentPredicate>> - Mappings:
Namespace Name Mixin selector named PREDICATES_MAP_PACKET_CODEC
Lnet/minecraft/predicate/component/ComponentPredicate;PREDICATES_MAP_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_58055
Lnet/minecraft/class_9360;field_58055:Lnet/minecraft/class_9139;
official d
Lku;d:Lze;
-
-
Method Details
-
createCodec
static com.mojang.serialization.MapCodec<ComponentPredicate.Typed<?>> createCodec(String predicateFieldName) - Mappings:
Namespace Name Mixin selector named createCodec
Lnet/minecraft/predicate/component/ComponentPredicate;createCodec(Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
intermediary method_67301
Lnet/minecraft/class_9360;method_67301(Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
official a
Lku;a(Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
-
test
- Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/predicate/component/ComponentPredicate;test(Lnet/minecraft/component/ComponentsAccess;)Z
intermediary method_58161
Lnet/minecraft/class_9360;method_58161(Lnet/minecraft/class_9473;)Z
official a
Lku;a(Lkg;)Z
-