Update to 1.20
- Remove some devenv mods that are not updated yet - Replace lib39 with fletchingtable for automixins - Use non kotlin entrypoints - Make use of DrawContext in a bunch of places
This commit is contained in:
@@ -23,22 +23,22 @@ import me.shedaniel.rei.api.client.entry.renderer.EntryRenderer
|
||||
import me.shedaniel.rei.api.client.gui.widgets.Tooltip
|
||||
import me.shedaniel.rei.api.client.gui.widgets.TooltipContext
|
||||
import me.shedaniel.rei.api.common.entry.EntryStack
|
||||
import net.minecraft.client.util.math.MatrixStack
|
||||
import net.minecraft.client.gui.DrawContext
|
||||
import moe.nea.firmament.rei.FirmamentReiPlugin.Companion.asItemEntry
|
||||
|
||||
object NEUItemEntryRenderer : EntryRenderer<SBItemStack> {
|
||||
override fun render(
|
||||
entry: EntryStack<SBItemStack>,
|
||||
matrices: MatrixStack,
|
||||
context: DrawContext,
|
||||
bounds: Rectangle,
|
||||
mouseX: Int,
|
||||
mouseY: Int,
|
||||
delta: Float
|
||||
) {
|
||||
matrices.push()
|
||||
matrices.translate(0F, 0F, 100F)
|
||||
entry.asItemEntry().render(matrices, bounds, mouseX, mouseY, delta)
|
||||
matrices.pop()
|
||||
context.matrices.push()
|
||||
context.matrices.translate(0F, 0F, 100F)
|
||||
entry.asItemEntry().render(context, bounds, mouseX, mouseY, delta)
|
||||
context.matrices.pop()
|
||||
}
|
||||
|
||||
override fun getTooltip(entry: EntryStack<SBItemStack>, tooltipContext: TooltipContext): Tooltip? {
|
||||
|
||||
Reference in New Issue
Block a user