mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Adds a new ReplaceBiomeBlocks Event constructor that supplies the metadata array if applicable and updates the ChunkProviderGenerate class to pass in the metadata array.
This commit is contained in:
1 parent
63a205c043
commit
f848955263
2 files changed
+13
-1
No files matched your search
@@ -27,6 +27,7 @@ public class ChunkProviderEvent extends Event
|
||||
public final int chunkX;
|
||||
public final int chunkZ;
|
||||
public final Block[] blockArray;
|
||||
public final byte[] metaArray;
|
||||
public final BiomeGenBase[] biomeArray;
|
||||
|
||||
public ReplaceBiomeBlocks(IChunkProvider chunkProvider, int chunkX, int chunkZ, Block[] blockArray, BiomeGenBase[] biomeArray)
|
||||
@@ -36,6 +37,17 @@ public class ChunkProviderEvent extends Event
|
||||
this.chunkZ = chunkZ;
|
||||
this.blockArray = blockArray;
|
||||
this.biomeArray = biomeArray;
|
||||
metaArray = new byte[256];
|
||||
}
|
||||
|
||||
public ReplaceBiomeBlocks(IChunkProvider chunkProvider, int chunkX, int chunkZ, Block[] blockArray, byte[] metaArray, BiomeGenBase[] biomeArray)
|
||||
{
|
||||
super(chunkProvider);
|
||||
this.chunkX = chunkX;
|
||||
this.chunkZ = chunkZ;
|
||||
this.blockArray = blockArray;
|
||||
this.biomeArray = biomeArray;
|
||||
this.metaArray = metaArray;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user