use of net.minecraft.item.ItemInstance in project StationAPI by ModificationStation.
the class TagBlockInit method addBlock0Damage.
private static void addBlock0Damage(String oreDictString, BlockBase itemBase) {
ItemInstance itemInstanceToUse = new ItemInstance(itemBase, 1, 0);
TagRegistry.INSTANCE.register(new TagEntry(itemInstanceToUse, itemInstanceToUse::isDamageAndIDIdentical, Identifier.of(oreDictString)));
}
use of net.minecraft.item.ItemInstance in project StationAPI by ModificationStation.
the class TagItemInit method addItem.
private static void addItem(String oreDictString, ItemBase 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.minecraft.item.ItemInstance in project StationAPI by ModificationStation.
the class TagItemInit method addItemIgnoreDamage.
private static void addItemIgnoreDamage(String oreDictString, ItemBase itemBase) {
ItemInstance itemInstanceToUse = new ItemInstance(itemBase);
TagRegistry.INSTANCE.register(new TagEntry(new ItemInstance(itemBase), itemInstance -> itemInstanceToUse.itemId == itemInstance.itemId, Identifier.of(oreDictString)));
}
use of net.minecraft.item.ItemInstance in project StationAPI by ModificationStation.
the class TagBlockInit method addBlockIgnoreDamage.
private static void addBlockIgnoreDamage(String oreDictString, BlockBase itemBase) {
ItemInstance itemInstanceToUse = new ItemInstance(itemBase);
TagRegistry.INSTANCE.register(new TagEntry(new ItemInstance(itemBase), itemInstance -> itemInstanceToUse.itemId == itemInstance.itemId, Identifier.of(oreDictString)));
}
use of net.minecraft.item.ItemInstance 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)));
}
Aggregations