toast symbols for machine recipes
This commit is contained in:
parent
ed5a549b96
commit
5be91b2f1a
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user