mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-25 14:34:40 +00:00
Add support for multiple mods remapping the same item/block/tile entity. (#18)
This commit is contained in:
1 parent
2641e10174
commit
c59ec9bb36
36 files changed
+2904
-310
No files matched your search
@@ -1,19 +1,47 @@
|
||||
package com.gtnewhorizons.postea.utility;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public final class BlockConversionInfo {
|
||||
|
||||
public int x;
|
||||
public int y;
|
||||
public int z;
|
||||
|
||||
/**
|
||||
* The namespaced ID of the block being converted.
|
||||
*/
|
||||
public final String blockName;
|
||||
/**
|
||||
* The numeric ID of the block currently being replaced, or of the block you want it replaced with.
|
||||
*/
|
||||
public int blockID;
|
||||
/**
|
||||
* The meta value of the block currently being replaced, or value you want it replaced with.
|
||||
*/
|
||||
public int metadata;
|
||||
/**
|
||||
* The x coordinate of the block being replaced.
|
||||
*/
|
||||
public final int x;
|
||||
/**
|
||||
* The y coordinate of the block being replaced.
|
||||
*/
|
||||
public final int y;
|
||||
/**
|
||||
* The z coordinate of the block being replaced.
|
||||
*/
|
||||
public final int z;
|
||||
|
||||
public World world;
|
||||
public NBTTagCompound tileEntityNBT;
|
||||
/**
|
||||
* The world containing the block being replaced. It won't be loaded fully when a block transformer is executed, so
|
||||
* any call to something like world.getBlock() will throw an error.
|
||||
*/
|
||||
public final World world;
|
||||
|
||||
public String blockName;
|
||||
public BlockConversionInfo(String blockName, int blockID, int metadata, int x, int y, int z, World world) {
|
||||
this.blockName = blockName;
|
||||
this.blockID = blockID;
|
||||
this.metadata = metadata;
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
this.world = world;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user