public class ForgeHooks
extends java.lang.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 |
canInteractWith(EntityPlayer player,
Container openContainer) |
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 IChatComponent |
newChatWithLinks(java.lang.String string) |
static boolean |
onAnvilChange(ContainerRepair container,
ItemStack left,
ItemStack right,
IInventory outputSlot,
java.lang.String name,
int baseCost) |
static float |
onAnvilRepair(EntityPlayer player,
ItemStack output,
ItemStack left,
ItemStack right) |
static BlockEvent.BreakEvent |
onBlockBreakEvent(World world,
WorldSettings.GameType gameType,
EntityPlayerMP entityPlayer,
int x,
int y,
int z) |
static boolean |
onLivingAttack(EntityLivingBase entity,
DamageSource src,
float amount) |
static boolean |
onLivingDeath(EntityLivingBase entity,
DamageSource src) |
static boolean |
onLivingDrops(EntityLivingBase entity,
DamageSource source,
java.util.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 |
onNoteChange(TileEntityNote te,
byte old) |
static boolean |
onPickBlock(MovingObjectPosition target,
EntityPlayer player,
World world)
Called when a player uses 'pick block', calls new Entity and Block hooks.
|
static boolean |
onPlaceItemIntoWorld(ItemStack itemstack,
EntityPlayer player,
World world,
int x,
int y,
int z,
int side,
float hitX,
float hitY,
float hitZ) |
static EntityItem |
onPlayerTossEvent(EntityPlayer player,
ItemStack item,
boolean includeName) |
static ChatComponentTranslation |
onServerChatEvent(NetHandlerPlayServer net,
java.lang.String raw,
ChatComponentTranslation comp) |
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, java.util.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, boolean includeName)
public static float getEnchantPower(World world, int x, int y, int z)
public static ChatComponentTranslation onServerChatEvent(NetHandlerPlayServer net, java.lang.String raw, ChatComponentTranslation comp)
public static IChatComponent newChatWithLinks(java.lang.String string)
public static boolean canInteractWith(EntityPlayer player, Container openContainer)
public static BlockEvent.BreakEvent onBlockBreakEvent(World world, WorldSettings.GameType gameType, EntityPlayerMP entityPlayer, int x, int y, int z)
public static boolean onPlaceItemIntoWorld(ItemStack itemstack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
public static boolean onAnvilChange(ContainerRepair container, ItemStack left, ItemStack right, IInventory outputSlot, java.lang.String name, int baseCost)
public static float onAnvilRepair(EntityPlayer player, ItemStack output, ItemStack left, ItemStack right)
public static boolean onNoteChange(TileEntityNote te, byte old)