YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.common.ForgeHooks Class Reference

Classes

class  GrassEntry
 
class  SeedEntry
 

Static Public Member Functions

static void plantGrass (World world, int x, int y, int z)
 
static ItemStack getGrassSeed (World world)
 
static boolean canHarvestBlock (Block block, EntityPlayer player, int metadata)
 
static boolean canToolHarvestBlock (Block block, int metadata, ItemStack stack)
 
static float blockStrength (Block block, EntityPlayer player, World world, int x, int y, int z)
 
static boolean isToolEffective (ItemStack stack, Block block, int metadata)
 
static int getTotalArmorValue (EntityPlayer player)
 
static boolean onPickBlock (MovingObjectPosition target, EntityPlayer player, World world)
 
static void onLivingSetAttackTarget (EntityLiving entity, EntityLiving target)
 
static boolean onLivingUpdate (EntityLiving entity)
 
static boolean onLivingAttack (EntityLiving entity, DamageSource src, int amount)
 
static int onLivingHurt (EntityLiving entity, DamageSource src, int amount)
 
static boolean onLivingDeath (EntityLiving entity, DamageSource src)
 
static boolean onLivingDrops (EntityLiving entity, DamageSource source, ArrayList< EntityItem > drops, int lootingLevel, boolean recentlyHit, int specialDropValue)
 
static float onLivingFall (EntityLiving entity, float distance)
 
static boolean isLivingOnLadder (Block block, World world, int x, int y, int z, EntityLiving entity)
 
static boolean isLivingOnLadder (Block block, World world, int x, int y, int z)
 
static void onLivingJump (EntityLiving entity)
 
static EntityItem onPlayerTossEvent (EntityPlayer player, ItemStack item)
 
static float getEnchantPower (World world, int x, int y, int z)
 

Member Function Documentation

static float net.minecraftforge.common.ForgeHooks.blockStrength ( Block  block,
EntityPlayer  player,
World  world,
int  x,
int  y,
int  z 
)
static
static boolean net.minecraftforge.common.ForgeHooks.canHarvestBlock ( Block  block,
EntityPlayer  player,
int  metadata 
)
static
static boolean net.minecraftforge.common.ForgeHooks.canToolHarvestBlock ( Block  block,
int  metadata,
ItemStack  stack 
)
static
static float net.minecraftforge.common.ForgeHooks.getEnchantPower ( World  world,
int  x,
int  y,
int  z 
)
static
static ItemStack net.minecraftforge.common.ForgeHooks.getGrassSeed ( World  world)
static
static int net.minecraftforge.common.ForgeHooks.getTotalArmorValue ( EntityPlayer  player)
static
static boolean net.minecraftforge.common.ForgeHooks.isLivingOnLadder ( Block  block,
World  world,
int  x,
int  y,
int  z,
EntityLiving  entity 
)
static
static boolean net.minecraftforge.common.ForgeHooks.isLivingOnLadder ( Block  block,
World  world,
int  x,
int  y,
int  z 
)
static
static boolean net.minecraftforge.common.ForgeHooks.isToolEffective ( ItemStack  stack,
Block  block,
int  metadata 
)
static
static boolean net.minecraftforge.common.ForgeHooks.onLivingAttack ( EntityLiving  entity,
DamageSource  src,
int  amount 
)
static
static boolean net.minecraftforge.common.ForgeHooks.onLivingDeath ( EntityLiving  entity,
DamageSource  src 
)
static
static boolean net.minecraftforge.common.ForgeHooks.onLivingDrops ( EntityLiving  entity,
DamageSource  source,
ArrayList< EntityItem drops,
int  lootingLevel,
boolean  recentlyHit,
int  specialDropValue 
)
static
static float net.minecraftforge.common.ForgeHooks.onLivingFall ( EntityLiving  entity,
float  distance 
)
static
static int net.minecraftforge.common.ForgeHooks.onLivingHurt ( EntityLiving  entity,
DamageSource  src,
int  amount 
)
static
static void net.minecraftforge.common.ForgeHooks.onLivingJump ( EntityLiving  entity)
static
static void net.minecraftforge.common.ForgeHooks.onLivingSetAttackTarget ( EntityLiving  entity,
EntityLiving  target 
)
static
static boolean net.minecraftforge.common.ForgeHooks.onLivingUpdate ( EntityLiving  entity)
static
static boolean net.minecraftforge.common.ForgeHooks.onPickBlock ( MovingObjectPosition  target,
EntityPlayer  player,
World  world 
)
static

Called when a player uses 'pick block', calls new Entity and Block hooks.

static EntityItem net.minecraftforge.common.ForgeHooks.onPlayerTossEvent ( EntityPlayer  player,
ItemStack  item 
)
static
static void net.minecraftforge.common.ForgeHooks.plantGrass ( World  world,
int  x,
int  y,
int  z 
)
static

The documentation for this class was generated from the following file: