Package net.minestom.server.instance.block.predicate
@NotNullByDefault
package net.minestom.server.instance.block.predicate
-
ClassDescriptionA predicate to filter blocks based on their name, properties, and/or nbt.CollectionPredicate<T, P extends Predicate<T>>A generic predicate to match against a collection of items.CollectionPredicate.Builder<T, P extends Predicate<T>>CollectionPredicate.Contains<T, P extends Predicate<T>>A predicate that requires that all of its sub-predicates match at least once.CollectionPredicate.Count<T, P extends Predicate<T>>A predicate that counts the number of matching sub-predicates and tests whether it's in the
countrange.CollectionPredicate.Count.Entry<T, P extends Predicate<T>>A list ofDataComponentPredicates.A partial predicate for the data components held by an item or block entity.Tests armor trim material and pattern in theDataComponents.TRIMcomponent.Tests an attribute modifier.Tests attribute modifiers in theDataComponents.ATTRIBUTE_MODIFIERScomponent.Tests the items in theDataComponents.BUNDLE_CONTENTScomponent.Tests the items in theDataComponents.CONTAINERcomponent.Tests stored NBT data in theDataComponents.CUSTOM_DATAcomponentTests damage or remaining durability.Tests enchantments.Tests an object's enchantments in itsDataComponents.ENCHANTMENTScomponent.Tests whether a data component is present, without inspecting its value.Tests the firework explosion inDataComponents.FIREWORK_EXPLOSIONTests the firework explosions and flight duration in theDataComponents.FIREWORKScomponent.Tests the jukebox song in theDataComponents.JUKEBOX_PLAYABLEcomponent.Tests stored potion types in theDataComponents.POTION_CONTENTScomponent.A component predicate whose codec is registered in the data component predicate type registry.Tests an object's enchantments in itsDataComponents.STORED_ENCHANTMENTScomponent.Tests the villager variant inDataComponents.VILLAGER_VARIANTTests the content of pages in theDataComponents.WRITABLE_BOOK_CONTENTcomponent.Tests the content of pages in theDataComponents.WRITTEN_BOOK_CONTENTcomponent.Vanilla has some fancy behavior to get integer properties as ints, but seems to just compare the value anyway if its a string.