Add image preview
This commit is contained in:
@@ -9,6 +9,7 @@ import moe.nea.firmament.util.unformattedString
|
||||
*/
|
||||
data class ClientChatLineReceivedEvent(val text: Text) : FirmamentEvent.Cancellable() {
|
||||
val unformattedString = text.unformattedString
|
||||
var replaceWith: Text = text
|
||||
|
||||
companion object : FirmamentEventBus<ClientChatLineReceivedEvent>()
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package moe.nea.firmament.events
|
||||
|
||||
import net.minecraft.client.gui.DrawContext
|
||||
import net.minecraft.client.gui.screen.Screen
|
||||
|
||||
data class ScreenRenderPostEvent(
|
||||
val screen: Screen,
|
||||
val mouseX: Int,
|
||||
val mouseY: Int,
|
||||
val tickDelta: Float,
|
||||
val drawContext: DrawContext
|
||||
) : FirmamentEvent() {
|
||||
companion object : FirmamentEventBus<ScreenRenderPostEvent>()
|
||||
}
|
||||
Reference in New Issue
Block a user