public class ReplacementTool
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ReplacementTool |
instance()
Get the
ReplacementTool instance |
void |
onTextureStitchEvent(net.minecraftforge.client.event.TextureStitchEvent.Pre event)
Texture stitch event.
|
static net.minecraft.item.Item |
originalItem(net.minecraft.item.Item item)
Gets the orginal/vanilla item for the specified one.
|
static net.minecraft.block.Block |
orignalBlock(net.minecraft.block.Block block)
Gets the original/vanilla block for the specified one.
|
void |
replaceInRecipes(java.lang.Object vanilla,
java.lang.Object replacement) |
static void |
replaceVanillaBlock(int id,
java.lang.String name,
java.lang.String srgFieldName,
net.minecraft.block.Block replacement,
net.minecraft.block.Block vanilla)
Replaces vanilla block with another one.
|
static void |
replaceVanillaItem(int id,
java.lang.String name,
java.lang.String srgFieldName,
net.minecraft.item.Item replacement,
net.minecraft.item.Item vanilla) |
public void onTextureStitchEvent(net.minecraftforge.client.event.TextureStitchEvent.Pre event)
event
- the eventpublic static ReplacementTool instance()
ReplacementTool
instancepublic static void replaceVanillaBlock(int id, java.lang.String name, java.lang.String srgFieldName, net.minecraft.block.Block replacement, net.minecraft.block.Block vanilla)
id
- the idname
- the namesrgFieldName
- the srg field namereplacement
- the blockvanilla
- the vanillapublic static void replaceVanillaItem(int id, java.lang.String name, java.lang.String srgFieldName, net.minecraft.item.Item replacement, net.minecraft.item.Item vanilla)
public void replaceInRecipes(java.lang.Object vanilla, java.lang.Object replacement) throws java.lang.ReflectiveOperationException
java.lang.ReflectiveOperationException
public static net.minecraft.block.Block orignalBlock(net.minecraft.block.Block block)
block
- the blockpublic static net.minecraft.item.Item originalItem(net.minecraft.item.Item item)
item
- the item