TypeMatcher

public final class TypeMatcher extends BaseMatcher

物品材质匹配器

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public BaseMatcher fromSetting(String key, Object any)

从配置中读取数据

Link copied to clipboard
public Array<String> getKeys()

该配置接受的键

Link copied to clipboard
public Unit onBind(ItemStack item)
Link copied to clipboard
public Unit onDebug(ItemStack item, CommandSender debugHolder)

Debug

Link copied to clipboard
public Boolean tryMatch(ItemStack item)

尝试匹配某个物品