Skip to content

Commit de23916

Browse files
committed
Add RenderAttachedBlockView interface implementation
1 parent 5c11064 commit de23916

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ dependencies {
3434
includeModule("fabric-rendering-v1")
3535
includeModule("fabric-renderer-api-v1")
3636
includeModule("fabric-rendering-fluids-v1")
37+
includeModule("fabric-rendering-data-attachment-v1")
3738
}
3839

3940
project.ext.lwjglVersion = "3.3.3"

src/main/java/net/vulkanmod/render/chunk/build/RenderRegion.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package net.vulkanmod.render.chunk.build;
22

3+
import net.fabricmc.fabric.api.rendering.data.v1.RenderAttachedBlockView;
34
import net.minecraft.client.Minecraft;
45
import net.minecraft.core.BlockPos;
56
import net.minecraft.core.Direction;
@@ -24,7 +25,7 @@
2425
import java.util.Map;
2526
import java.util.function.Function;
2627

27-
public class RenderRegion implements BlockAndTintGetter {
28+
public class RenderRegion implements BlockAndTintGetter, RenderAttachedBlockView {
2829
public static final int WIDTH = 3;
2930
public static final int SIZE = WIDTH * WIDTH * WIDTH;
3031

0 commit comments

Comments
 (0)