/** * Checks whether the BaseItem is contained within * this category. * * @param baseItem The item * @return If it's a part of this category */ public boolean contains(BaseItem baseItem) { return this.getAll().contains(baseItem.getType()); } }
private static ItemCategory register(final String id) { return register(new ItemCategory(id)); }
public static ItemCategory register(final ItemCategory tag) { return ItemCategory.REGISTRY.register(tag.getId(), tag); }