use of net.modificationstation.stationapi.api.tags.TagEntry in project StationAPI by ModificationStation.
the class TagBlockInit method addBlock.
private static void addBlock(String oreDictString, BlockBase itemBase, int damage) {
ItemInstance itemInstanceToUse = new ItemInstance(itemBase, 1, damage);
TagRegistry.INSTANCE.register(new TagEntry(new ItemInstance(itemBase, 1, damage), itemInstanceToUse::isDamageAndIDIdentical, Identifier.of(oreDictString)));
}
use of net.modificationstation.stationapi.api.tags.TagEntry in project StationAPI by ModificationStation.
the class TagItemInit method addItem0Damage.
private static void addItem0Damage(String oreDictString, ItemBase itemBase) {
ItemInstance itemInstanceToUse = new ItemInstance(itemBase, 1, 0);
TagRegistry.INSTANCE.register(new TagEntry(itemInstanceToUse, itemInstanceToUse::isDamageAndIDIdentical, Identifier.of(oreDictString)));
}
Aggregations