Skip to content

Commit

Permalink
Add RenderAttachedBlockView interface implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
xCollateral committed Oct 12, 2024
1 parent 5c11064 commit de23916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ dependencies {
includeModule("fabric-rendering-v1")
includeModule("fabric-renderer-api-v1")
includeModule("fabric-rendering-fluids-v1")
includeModule("fabric-rendering-data-attachment-v1")
}

project.ext.lwjglVersion = "3.3.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.vulkanmod.render.chunk.build;

import net.fabricmc.fabric.api.rendering.data.v1.RenderAttachedBlockView;
import net.minecraft.client.Minecraft;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
Expand All @@ -24,7 +25,7 @@
import java.util.Map;
import java.util.function.Function;

public class RenderRegion implements BlockAndTintGetter {
public class RenderRegion implements BlockAndTintGetter, RenderAttachedBlockView {
public static final int WIDTH = 3;
public static final int SIZE = WIDTH * WIDTH * WIDTH;

Expand Down

0 comments on commit de23916

Please sign in to comment.