-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failing builds due to Vintagium (#2519)
- Loading branch information
1 parent
5dceed5
commit 837b2ab
Showing
7 changed files
with
58 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/api/java/me/jellysquid/mods/sodium/client/render/chunk/passes/BlockRenderPass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package me.jellysquid.mods.sodium.client.render.chunk.passes; | ||
|
||
/** | ||
* Adapted and minimized from <a href="https://github.com/Asek3/sodium-1.12/blob/12.x/forge/src/main/java/me/jellysquid/mods/sodium/client/render/chunk/passes/BlockRenderPass.java">BlockRenderPass.java</a> | ||
*/ | ||
public enum BlockRenderPass { | ||
; | ||
|
||
public static BlockRenderPass[] VALUES; | ||
public static int COUNT; | ||
} |
19 changes: 19 additions & 0 deletions
19
...api/java/me/jellysquid/mods/sodium/client/render/chunk/passes/BlockRenderPassManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package me.jellysquid.mods.sodium.client.render.chunk.passes; | ||
|
||
import net.minecraft.util.BlockRenderLayer; | ||
|
||
/** | ||
* Adapted and minimized from <a href="https://github.com/Asek3/sodium-1.12/blob/12.x/forge/src/main/java/me/jellysquid/mods/sodium/client/render/chunk/passes/BlockRenderPassManager.java">BlockRenderPassManager.java</a> | ||
*/ | ||
public class BlockRenderPassManager { | ||
|
||
private void addMapping(BlockRenderLayer layer, BlockRenderPass type) {} | ||
|
||
/** | ||
* Creates a set of render pass mappings to vanilla render layers which closely mirrors the rendering | ||
* behavior of vanilla. | ||
*/ | ||
public static BlockRenderPassManager createDefaultMappings() { | ||
return new BlockRenderPassManager(); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/api/java/me/jellysquid/mods/sodium/client/util/BufferSizeUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package me.jellysquid.mods.sodium.client.util; | ||
|
||
import net.minecraft.util.BlockRenderLayer; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* Adapted and minimized from <a href="https://github.com/Asek3/sodium-1.12/blob/12.x/forge/src/main/java/me/jellysquid/mods/sodium/client/util/BufferSizeUtil.java">BufferSizeUtil.java</a> | ||
*/ | ||
public class BufferSizeUtil { | ||
|
||
public static final Map<BlockRenderLayer, Integer> BUFFER_SIZES = new HashMap<>(); | ||
} |
12 changes: 12 additions & 0 deletions
12
src/api/java/me/jellysquid/mods/sodium/client/util/EnumUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package me.jellysquid.mods.sodium.client.util; | ||
|
||
import net.minecraft.util.BlockRenderLayer; | ||
|
||
/** | ||
* Adapted and minimized from <a href="https://github.com/Asek3/sodium-1.12/blob/12.x/forge/src/main/java/me/jellysquid/mods/sodium/client/util/EnumUtil.java">EnumUtil.java</a> | ||
*/ | ||
public class EnumUtil { | ||
|
||
public static BlockRenderLayer[] LAYERS = BlockRenderLayer.values(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters