public class ObfuscationHelpers
extends java.lang.Object
| Constructor and Description |
|---|
ObfuscationHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.Class<net.minecraft.entity.Entity>,java.lang.Integer> |
getClassToID()
Get the private 'classToIDMapping' field from
EntityList. |
static java.lang.String |
getDeathSound(net.minecraft.entity.EntityLivingBase entity)
Call the protected getter 'getDeathSound'
EntityLivingBase. |
static net.minecraft.item.ItemStack |
getItemInUse(net.minecraft.entity.player.EntityPlayer player)
Get the private 'itemInUse' field from
EntityPlayer. |
static int |
getItemInUseCount(net.minecraft.entity.player.EntityPlayer player)
Set the private 'itemInUseCount' field from
EntityPlayer. |
static java.lang.String |
getLivingSound(net.minecraft.entity.EntityLiving entity)
Call the protected getter 'getLivingSound'
EntityLiving. |
static net.minecraft.util.ResourceLocation |
getParticleTexture()
Get the private 'particleTextures' field from
EffectRenderer. |
static java.lang.reflect.Method |
getRenderFaceMethod(net.minecraft.client.renderer.RenderBlocks renderer,
net.minecraftforge.common.util.ForgeDirection direction)
Get the renderFace method for the given side in
RenderBlocks. |
static int |
getShapedOreRecipeHeight(net.minecraftforge.oredict.ShapedOreRecipe recipe)
Get the private 'height' field from
ShapedOreRecipe. |
static int |
getShapedOreRecipeWidth(net.minecraftforge.oredict.ShapedOreRecipe recipe)
Get the private 'width' field from
ShapedOreRecipe. |
static boolean |
isPotionBadEffect(net.minecraft.potion.Potion potion)
Get the private 'isBadEffect' field from
Potion. |
static boolean |
isRainingEnabled(net.minecraft.world.biome.BiomeGenBase biome)
Get the private 'enableRain' field from
BiomeGenBase. |
static void |
onChangedPotionEffect(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.potion.PotionEffect potionEffect,
boolean reapplyAttributes)
Call the protected method 'onChangedPotionEffect'
EntityLivingBase. |
static void |
setPotionEffectDuration(net.minecraft.potion.PotionEffect potionEffect,
int duration)
Set the private 'duration' field from
PotionEffect. |
static void |
setPotionTypesArray(net.minecraft.potion.Potion[] potionTypes)
Set the private static final 'potionTypes' field from @link{net.minecraft.potion.Potion}
|
static void |
setRecentlyHit(net.minecraft.entity.EntityLivingBase entity,
int recentlyHit)
Set the private 'recentlyHit' field from
EntityLivingBase. |
static void |
setTitlePanoramaPaths(net.minecraft.util.ResourceLocation[] titlePanoramaPaths)
Set the private static 'titlePanoramaPaths' field from @link{net.minecraft.client.gui.GuiMainMenu}
|
static void |
setUVRotate(net.minecraft.client.renderer.RenderBlocks renderer,
net.minecraftforge.common.util.ForgeDirection direction,
int rotation)
Set a private 'uvRotate' field from
RenderBlocks
depending on which direction you specified. |
public static net.minecraft.util.ResourceLocation getParticleTexture()
EffectRenderer.public static void setRecentlyHit(net.minecraft.entity.EntityLivingBase entity,
int recentlyHit)
EntityLivingBase.entity - The entity instance.recentlyHit - The recently hit value to set.public static java.lang.String getDeathSound(net.minecraft.entity.EntityLivingBase entity)
EntityLivingBase.entity - The entity instance.public static java.lang.String getLivingSound(net.minecraft.entity.EntityLiving entity)
EntityLiving.entity - The entity instance.public static int getItemInUseCount(net.minecraft.entity.player.EntityPlayer player)
EntityPlayer.player - The player.public static net.minecraft.item.ItemStack getItemInUse(net.minecraft.entity.player.EntityPlayer player)
EntityPlayer.player - The player.public static void setTitlePanoramaPaths(net.minecraft.util.ResourceLocation[] titlePanoramaPaths)
titlePanoramaPaths - The panorama path.public static java.lang.reflect.Method getRenderFaceMethod(net.minecraft.client.renderer.RenderBlocks renderer,
net.minecraftforge.common.util.ForgeDirection direction)
RenderBlocks.renderer - The block renderer.direction - The side.public static void setUVRotate(net.minecraft.client.renderer.RenderBlocks renderer,
net.minecraftforge.common.util.ForgeDirection direction,
int rotation)
RenderBlocks
depending on which direction you specified.
Note that this does not contain the MC side number bug fix, for this, please use RenderHelpers.renderer - The block renderer.direction - The side.rotation - The rotation to set.public static void setPotionEffectDuration(net.minecraft.potion.PotionEffect potionEffect,
int duration)
PotionEffect.potionEffect - The potionEffect instance.duration - The duration value to set.public static void onChangedPotionEffect(net.minecraft.entity.EntityLivingBase entity,
net.minecraft.potion.PotionEffect potionEffect,
boolean reapplyAttributes)
EntityLivingBase.entity - The entity instance.potionEffect - The potion effect.reapplyAttributes - If the datawatcher attributes need to be updated.public static java.util.Map<java.lang.Class<net.minecraft.entity.Entity>,java.lang.Integer> getClassToID()
EntityList.public static boolean isPotionBadEffect(net.minecraft.potion.Potion potion)
Potion.potion - The potion instance.public static void setPotionTypesArray(net.minecraft.potion.Potion[] potionTypes)
potionTypes - The panorama path.public static boolean isRainingEnabled(net.minecraft.world.biome.BiomeGenBase biome)
BiomeGenBase.biome - The biome instance.public static int getShapedOreRecipeWidth(net.minecraftforge.oredict.ShapedOreRecipe recipe)
ShapedOreRecipe.recipe - The recipe instance.public static int getShapedOreRecipeHeight(net.minecraftforge.oredict.ShapedOreRecipe recipe)
ShapedOreRecipe.recipe - The recipe instance.