Skip to content

Commit

Permalink
Move IRenderableSection implementation to interface injection
Browse files Browse the repository at this point in the history
  • Loading branch information
XFactHD committed Jan 21, 2025
1 parent 3ea6ca7 commit 4b1c988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
--- a/net/minecraft/client/renderer/chunk/SectionRenderDispatcher.java
+++ b/net/minecraft/client/renderer/chunk/SectionRenderDispatcher.java
@@ -254,7 +_,7 @@
}

@OnlyIn(Dist.CLIENT)
- public class RenderSection {
+ public class RenderSection implements net.neoforged.neoforge.client.IRenderableSection {
public static final int SIZE = 16;
public final int index;
public final AtomicReference<SectionRenderDispatcher.CompiledSection> compiled = new AtomicReference<>(
@@ -399,9 +_,10 @@

public SectionRenderDispatcher.RenderSection.CompileTask createCompileTask(RenderRegionCache p_295324_) {
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/META-INF/injected-interfaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"net/minecraft/client/renderer/blockentity/BlockEntityRenderer": [
"net/neoforged/neoforge/client/extensions/IBlockEntityRendererExtension<T>"
],
"net/minecraft/client/renderer/chunk/SectionRenderDispatcher$RenderSection": [
"net/neoforged/neoforge/client/IRenderableSection"
],
"net/minecraft/client/resources/model/BakedModel": [
"net/neoforged/neoforge/client/extensions/IBakedModelExtension"
],
Expand Down

0 comments on commit 4b1c988

Please sign in to comment.