mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-26 03:22:58 +00:00
The Big Rename (ebs, section -> subChunk)
This commit is contained in:
25 files changed
+168
-168
No files matched your search
@@ -11,7 +11,7 @@ import static com.falsepattern.endlessids.EndlessIDs.ZERO_LENGTH_BIOME_ARRAY_PLA
|
||||
|
||||
public class BiomePatchHelper {
|
||||
public static byte[] getBiomeArrayTweaked(Chunk chunk, IntFunction<BiomeGenBase> biomesForGeneration) {
|
||||
val chunkBiomes = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
val chunkBiomes = ((ChunkBiomeHook) chunk).getBiomeShortArray();
|
||||
|
||||
for (int i = 0; i < chunkBiomes.length; ++i) {
|
||||
chunkBiomes[i] = (short) biomesForGeneration.apply(i).biomeID;
|
||||
@@ -20,7 +20,7 @@ public class BiomePatchHelper {
|
||||
}
|
||||
|
||||
public static byte[] getBiomeArrayTweaked(Chunk chunk, BiomeGenBase[] biomesForGeneration) {
|
||||
val chunkBiomes = ((IChunkMixin) chunk).getBiomeShortArray();
|
||||
val chunkBiomes = ((ChunkBiomeHook) chunk).getBiomeShortArray();
|
||||
|
||||
for (int i = 0; i < chunkBiomes.length; ++i) {
|
||||
chunkBiomes[i] = (short) biomesForGeneration[i].biomeID;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package com.falsepattern.endlessids.mixin.helpers;
|
||||
|
||||
public interface IChunkMixin {
|
||||
public interface ChunkBiomeHook {
|
||||
short[] getBiomeShortArray();
|
||||
|
||||
void setBiomeShortArray(short[] data);
|
||||
+3
-3
@@ -2,7 +2,7 @@ package com.falsepattern.endlessids.mixin.helpers;
|
||||
|
||||
import net.minecraft.world.chunk.NibbleArray;
|
||||
|
||||
public interface IExtendedBlockStorageMixin {
|
||||
public interface SubChunkBlockHook {
|
||||
byte[] getB1();
|
||||
|
||||
void setB1(byte[] data);
|
||||
@@ -25,9 +25,9 @@ public interface IExtendedBlockStorageMixin {
|
||||
|
||||
byte[] createB3();
|
||||
|
||||
int getEBSMask();
|
||||
int getMetadataMask();
|
||||
|
||||
int getEBSMSBMask();
|
||||
int getBlockMask();
|
||||
|
||||
int getID(int x, int y, int z);
|
||||
|
||||
Reference in new issue
Block a user