diff options
author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-21 21:04:07 +0200 |
---|---|---|
committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-21 21:04:07 +0200 |
commit | 972bdfb318d0ba2a2c483bc63eadb4225e5f528b (patch) | |
tree | 3ab91313637e7f49a502dbfe06a3c6e533a33567 /src/main/java/at/hannibal2/skyhanni/mixinhooks/render | |
parent | 183c4cfaef952a229bc0abca297269dd8804498c (diff) | |
download | skyhanni-972bdfb318d0ba2a2c483bc63eadb4225e5f528b.tar.gz skyhanni-972bdfb318d0ba2a2c483bc63eadb4225e5f528b.tar.bz2 skyhanni-972bdfb318d0ba2a2c483bc63eadb4225e5f528b.zip |
commit bunch of stuff needed more testig idk idc
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixinhooks/render')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/mixinhooks/render/BlockRendererDispatcherHook.kt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixinhooks/render/BlockRendererDispatcherHook.kt b/src/main/java/at/hannibal2/skyhanni/mixinhooks/render/BlockRendererDispatcherHook.kt new file mode 100644 index 000000000..d04e248ea --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/mixinhooks/render/BlockRendererDispatcherHook.kt @@ -0,0 +1,25 @@ +//package at.hannibal2.skyhanni.mixinhooks.render +// +//import at.hannibal2.skyhanni.events.RenderBlockInWorldEvent +//import net.minecraft.block.state.IBlockState +//import net.minecraft.client.renderer.BlockRendererDispatcher +//import net.minecraft.client.resources.model.IBakedModel +//import net.minecraft.util.BlockPos +//import net.minecraft.world.IBlockAccess +//import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable +// +//fun modifyGetModelFromBlockState( +// blockRendererDispatcher: Any, +// state: IBlockState?, +// worldIn: IBlockAccess, +// pos: BlockPos?, +// cir: CallbackInfoReturnable<IBakedModel> +//) { +// (blockRendererDispatcher as BlockRendererDispatcher).apply { +// val event = RenderBlockInWorldEvent(state, worldIn, pos) +// event.postAndCatch() +// if (event.state !== state) { +// cir.returnValue = blockModelShapes.getModelForState(event.state) +// } +// } +//}
\ No newline at end of file |