public class ForgeHooks extends Object
Constructor and Description |
---|
ForgeHooks() |
Modifier and Type | Method and Description |
---|---|
static float |
blockStrength(Block block,
EntityPlayer player,
World world,
int x,
int y,
int z) |
static boolean |
canHarvestBlock(Block block,
EntityPlayer player,
int metadata) |
static boolean |
canToolHarvestBlock(Block block,
int metadata,
ItemStack stack) |
static float |
getEnchantPower(World world,
int x,
int y,
int z) |
static ItemStack |
getGrassSeed(World world) |
static int |
getTotalArmorValue(EntityPlayer player) |
static boolean |
isLivingOnLadder(Block block,
World world,
int x,
int y,
int z,
EntityLivingBase entity) |
static boolean |
isToolEffective(ItemStack stack,
Block block,
int metadata) |
static boolean |
onLivingAttack(EntityLivingBase entity,
DamageSource src,
float amount) |
static boolean |
onLivingDeath(EntityLivingBase entity,
DamageSource src) |
static boolean |
onLivingDrops(EntityLivingBase entity,
DamageSource source,
ArrayList<EntityItem> drops,
int lootingLevel,
boolean recentlyHit,
int specialDropValue) |
static float |
onLivingFall(EntityLivingBase entity,
float distance) |
static float |
onLivingHurt(EntityLivingBase entity,
DamageSource src,
float amount) |
static void |
onLivingJump(EntityLivingBase entity) |
static void |
onLivingSetAttackTarget(EntityLivingBase entity,
EntityLivingBase target) |
static boolean |
onLivingUpdate(EntityLivingBase entity) |
static boolean |
onPickBlock(MovingObjectPosition target,
EntityPlayer player,
World world)
Called when a player uses 'pick block', calls new Entity and Block hooks.
|
static EntityItem |
onPlayerTossEvent(EntityPlayer player,
ItemStack item) |
static ChatMessageComponent |
onServerChatEvent(NetServerHandler net,
String raw,
ChatMessageComponent comp) |
static void |
plantGrass(World world,
int x,
int y,
int z) |
public static void plantGrass(World world, int x, int y, int z)
public static boolean canHarvestBlock(Block block, EntityPlayer player, int metadata)
public static boolean canToolHarvestBlock(Block block, int metadata, ItemStack stack)
public static float blockStrength(Block block, EntityPlayer player, World world, int x, int y, int z)
public static int getTotalArmorValue(EntityPlayer player)
public static boolean onPickBlock(MovingObjectPosition target, EntityPlayer player, World world)
public static void onLivingSetAttackTarget(EntityLivingBase entity, EntityLivingBase target)
public static boolean onLivingUpdate(EntityLivingBase entity)
public static boolean onLivingAttack(EntityLivingBase entity, DamageSource src, float amount)
public static float onLivingHurt(EntityLivingBase entity, DamageSource src, float amount)
public static boolean onLivingDeath(EntityLivingBase entity, DamageSource src)
public static boolean onLivingDrops(EntityLivingBase entity, DamageSource source, ArrayList<EntityItem> drops, int lootingLevel, boolean recentlyHit, int specialDropValue)
public static float onLivingFall(EntityLivingBase entity, float distance)
public static boolean isLivingOnLadder(Block block, World world, int x, int y, int z, EntityLivingBase entity)
public static void onLivingJump(EntityLivingBase entity)
public static EntityItem onPlayerTossEvent(EntityPlayer player, ItemStack item)
public static float getEnchantPower(World world, int x, int y, int z)
public static ChatMessageComponent onServerChatEvent(NetServerHandler net, String raw, ChatMessageComponent comp)