Skip to content

Commit

Permalink
internal: drop PublicNBTIngredient class
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed Dec 19, 2023
1 parent d9249dc commit ee7090c
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import net.minecraft.data.DataGenerator;
import net.minecraft.tags.ItemTags;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
import net.minecraft.world.level.block.Blocks;
import net.minecraftforge.common.crafting.NBTIngredient;
Expand Down Expand Up @@ -218,8 +217,8 @@ protected void registerRecipes() {
}

shapedRecipe(DRAW_PLATE_ITEM)
.key('I', new PublicNBTIngredient(ItemMicroBlock.create(3, 2, MicroMaterialRegistry.getMaterial(BlockMicroMaterial.makeMaterialKey(Blocks.IRON_BLOCK.defaultBlockState())))))
.key('D', new PublicNBTIngredient(ItemMicroBlock.create(0, 2, MicroMaterialRegistry.getMaterial(BlockMicroMaterial.makeMaterialKey(Blocks.DIAMOND_BLOCK.defaultBlockState())))))
.key('I', NBTIngredient.of(ItemMicroBlock.create(3, 2, MicroMaterialRegistry.getMaterial(BlockMicroMaterial.makeMaterialKey(Blocks.IRON_BLOCK.defaultBlockState())))))
.key('D', NBTIngredient.of(ItemMicroBlock.create(0, 2, MicroMaterialRegistry.getMaterial(BlockMicroMaterial.makeMaterialKey(Blocks.DIAMOND_BLOCK.defaultBlockState())))))
.patternLine(" I ")
.patternLine("IDI")
.patternLine(" I ");
Expand Down Expand Up @@ -248,11 +247,4 @@ private void addIllumarRecipe(Item illumarItem, EnumColour color) {
.addIngredient(ItemTags.create(color.getDyeTagName()), 2);
}

// Forge PLS :(
private static class PublicNBTIngredient extends NBTIngredient {
public PublicNBTIngredient(ItemStack stack) {
super(stack);
}
}

}

0 comments on commit ee7090c

Please sign in to comment.