toast symbols for machine recipes

This commit is contained in:
YuRaNnNzZZ 2023-10-21 14:52:58 +03:00
parent ed5a549b96
commit 5be91b2f1a
Signed by: YuRaNnNzZZ
GPG Key ID: 5F71738C85A6006D
3 changed files with 15 additions and 0 deletions

View File

@ -26,6 +26,7 @@ import ru.dbotthepony.mc.otm.data.Codec2RecipeSerializer
import ru.dbotthepony.mc.otm.data.DecimalCodec
import ru.dbotthepony.mc.otm.data.IngredientMatrixCodec
import ru.dbotthepony.mc.otm.data.minRange
import ru.dbotthepony.mc.otm.registry.MItems
import ru.dbotthepony.mc.otm.registry.MRecipes
import java.util.Optional
import java.util.UUID
@ -92,6 +93,10 @@ open class MatterEntanglerRecipe(
return true
}
override fun getToastSymbol(): ItemStack {
return ItemStack(MItems.MATTER_ENTANGLER)
}
fun toFinished(id: ResourceLocation): FinishedRecipe {
return SERIALIZER.toFinished(this, id)
}

View File

@ -22,6 +22,7 @@ import ru.dbotthepony.mc.otm.core.tagNotNull
import ru.dbotthepony.mc.otm.data.Codec2RecipeSerializer
import ru.dbotthepony.mc.otm.data.PredicatedCodecList
import ru.dbotthepony.mc.otm.data.minRange
import ru.dbotthepony.mc.otm.registry.MItems
import ru.dbotthepony.mc.otm.registry.MRecipes
import java.util.EnumMap
import java.util.function.Predicate
@ -100,6 +101,10 @@ class PainterRecipe(
return MRecipes.PAINTER
}
override fun getToastSymbol(): ItemStack {
return ItemStack(MItems.PAINTER)
}
fun toFinished(id: ResourceLocation): FinishedRecipe {
return SERIALIZER.toFinished(this, id)
}

View File

@ -21,6 +21,7 @@ import ru.dbotthepony.mc.otm.registry.MRecipes
import ru.dbotthepony.mc.otm.core.registryName
import ru.dbotthepony.mc.otm.data.Codec2RecipeSerializer
import ru.dbotthepony.mc.otm.data.minRange
import ru.dbotthepony.mc.otm.registry.MItems
class PlatePressRecipe(
val input: Ingredient,
@ -74,6 +75,10 @@ class PlatePressRecipe(
override fun getType(): RecipeType<PlatePressRecipe> = MRecipes.PLATE_PRESS
override fun getToastSymbol(): ItemStack {
return ItemStack(MItems.PLATE_PRESS)
}
fun toFinished(id: ResourceLocation) = SERIALIZER.toFinished(this, id)
companion object {