public class ForgeEventFactory
extends java.lang.Object
Constructor and Description |
---|
ForgeEventFactory() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canCreateFluidSource(World world,
BlockPos pos,
IBlockState state,
boolean def) |
static Event.Result |
canEntityDespawn(EntityLiving entity) |
static Event.Result |
canEntitySpawn(EntityLiving entity,
World world,
float x,
float y,
float z)
Deprecated.
|
static Event.Result |
canEntitySpawn(EntityLiving entity,
World world,
float x,
float y,
float z,
boolean isSpawner)
Deprecated.
|
static Event.Result |
canEntitySpawn(EntityLiving entity,
World world,
float x,
float y,
float z,
MobSpawnerBaseLogic spawner) |
static boolean |
canEntitySpawnSpawner(EntityLiving entity,
World world,
float x,
float y,
float z)
|
static boolean |
canEntitySpawnSpawner(EntityLiving entity,
World world,
float x,
float y,
float z,
MobSpawnerBaseLogic spawner) |
static boolean |
canEntityUpdate(Entity entity) |
static boolean |
canMountEntity(Entity entityMounting,
Entity entityBeingMounted,
boolean isMounting) |
static boolean |
doPlayerHarvestCheck(EntityPlayer player,
IBlockState state,
boolean success) |
static boolean |
doSpecialSpawn(EntityLiving entity,
World world,
float x,
float y,
float z)
|
static boolean |
doSpecialSpawn(EntityLiving entity,
World world,
float x,
float y,
float z,
MobSpawnerBaseLogic spawner) |
static float |
fireBlockHarvesting(java.util.List<ItemStack> drops,
World world,
BlockPos pos,
IBlockState state,
int fortune,
float dropChance,
boolean silkTouch,
EntityPlayer player) |
static IBlockState |
fireFluidPlaceBlockEvent(World world,
BlockPos pos,
BlockPos liquidPos,
IBlockState state) |
static void |
firePlayerLoadingEvent(EntityPlayer player,
java.io.File playerDirectory,
java.lang.String uuidString) |
static void |
firePlayerLoadingEvent(EntityPlayer player,
IPlayerFileData playerFileData,
java.lang.String uuidString) |
static void |
firePlayerSavingEvent(EntityPlayer player,
java.io.File playerDirectory,
java.lang.String uuidString) |
static boolean |
fireSleepingLocationCheck(EntityPlayer player,
BlockPos sleepingLocation) |
static boolean |
fireSleepingTimeCheck(EntityPlayer player,
BlockPos sleepingLocation) |
static ZombieEvent.SummonAidEvent |
fireZombieSummonAid(EntityZombie zombie,
World world,
int x,
int y,
int z,
EntityLivingBase attacker,
double summonChance) |
private static CapabilityDispatcher |
gatherCapabilities(AttachCapabilitiesEvent<?> event,
ICapabilityProvider parent) |
static CapabilityDispatcher |
gatherCapabilities(Chunk chunk) |
static CapabilityDispatcher |
gatherCapabilities(Entity entity) |
static CapabilityDispatcher |
gatherCapabilities(ItemStack stack,
ICapabilityProvider parent) |
static CapabilityDispatcher |
gatherCapabilities(TileEntity tileEntity) |
static CapabilityDispatcher |
gatherCapabilities(Village village) |
static CapabilityDispatcher |
gatherCapabilities(World world,
ICapabilityProvider parent) |
static boolean |
gatherCollisionBoxes(World world,
Entity entity,
AxisAlignedBB aabb,
java.util.List<AxisAlignedBB> outList) |
static float |
getBreakSpeed(EntityPlayer player,
IBlockState state,
float original,
BlockPos pos) |
static int |
getExperienceDrop(EntityLivingBase entity,
EntityPlayer attackingPlayer,
int originalExperience) |
static int |
getItemBurnTime(ItemStack itemStack) |
static int |
getMaxSpawnPackSize(EntityLiving entity) |
static boolean |
getMobGriefingEvent(World world,
Entity entity) |
static java.lang.String |
getPlayerDisplayName(EntityPlayer player,
java.lang.String username) |
static java.util.List<Biome.SpawnListEntry> |
getPotentialSpawns(WorldServer world,
EnumCreatureType type,
BlockPos pos,
java.util.List<Biome.SpawnListEntry> oldList) |
static MerchantRecipeList |
listTradeOffers(IMerchant merchant,
EntityPlayer player,
MerchantRecipeList list) |
static LootTable |
loadLootTable(ResourceLocation name,
LootTable table,
LootTableManager lootTableManager) |
static boolean |
onAnimalTame(EntityAnimal animal,
EntityPlayer tamer) |
static int |
onApplyBonemeal(EntityPlayer player,
World world,
BlockPos pos,
IBlockState state,
ItemStack stack,
EnumHand hand) |
static int |
onArrowLoose(ItemStack stack,
World world,
EntityPlayer player,
int charge,
boolean hasAmmo) |
static ActionResult<ItemStack> |
onArrowNock(ItemStack item,
World world,
EntityPlayer player,
EnumHand hand,
boolean hasAmmo) |
static BlockEvent.EntityPlaceEvent |
onBlockPlace(Entity entity,
BlockSnapshot blockSnapshot,
EnumFacing direction) |
static ActionResult<ItemStack> |
onBucketUse(EntityPlayer player,
World world,
ItemStack stack,
RayTraceResult target) |
static void |
onChunkPopulate(boolean pre,
IChunkGenerator gen,
World world,
java.util.Random rand,
int x,
int z,
boolean hasVillageGenerated) |
static ITextComponent |
onClientChat(ChatType type,
ITextComponent message) |
static java.lang.String |
onClientSendMessage(java.lang.String message) |
static boolean |
onCreateWorldSpawn(World world,
WorldSettings settings) |
static int |
onEnchantmentLevelSet(World world,
BlockPos pos,
int enchantRow,
int power,
ItemStack itemStack,
int level) |
static boolean |
onEntityDestroyBlock(EntityLivingBase entity,
BlockPos pos,
IBlockState state) |
static boolean |
onEntityStruckByLightning(Entity entity,
EntityLightningBolt bolt) |
static void |
onExplosionDetonate(World world,
Explosion explosion,
java.util.List<Entity> list,
double diameter) |
static boolean |
onExplosionStart(World world,
Explosion explosion) |
static void |
onGameRuleChange(GameRules rules,
java.lang.String ruleName,
MinecraftServer server) |
static int |
onHoeUse(ItemStack stack,
EntityPlayer player,
World worldIn,
BlockPos pos) |
static int |
onItemExpire(EntityItem entity,
ItemStack item) |
static int |
onItemPickup(EntityItem entityItem,
EntityPlayer player) |
static ItemTooltipEvent |
onItemTooltip(ItemStack itemStack,
EntityPlayer entityPlayer,
java.util.List<java.lang.String> toolTip,
ITooltipFlag flags) |
static ItemStack |
onItemUseFinish(EntityLivingBase entity,
ItemStack item,
int duration,
ItemStack result) |
static int |
onItemUseStart(EntityLivingBase entity,
ItemStack item,
int duration) |
static int |
onItemUseTick(EntityLivingBase entity,
ItemStack item,
int duration) |
static float |
onLivingHeal(EntityLivingBase entity,
float amount) |
static BlockEvent.EntityMultiPlaceEvent |
onMultiBlockPlace(Entity entity,
java.util.List<BlockSnapshot> blockSnapshots,
EnumFacing direction) |
static BlockEvent.NeighborNotifyEvent |
onNeighborNotify(World world,
BlockPos pos,
IBlockState state,
java.util.EnumSet<EnumFacing> notifiedSides,
boolean forceRedstoneUpdate) |
static BlockEvent.PlaceEvent |
onPlayerBlockPlace(EntityPlayer player,
BlockSnapshot blockSnapshot,
EnumFacing direction,
EnumHand hand) |
static void |
onPlayerBrewedPotion(EntityPlayer player,
ItemStack stack) |
static void |
onPlayerClone(EntityPlayer player,
EntityPlayer oldPlayer,
boolean wasDeath) |
static void |
onPlayerDestroyItem(EntityPlayer player,
ItemStack stack,
EnumHand hand) |
static void |
onPlayerDrops(EntityPlayer player,
DamageSource cause,
java.util.List<EntityItem> capturedDrops,
boolean recentlyHit) |
static void |
onPlayerFall(EntityPlayer player,
float distance,
float multiplier) |
static BlockEvent.MultiPlaceEvent |
onPlayerMultiBlockPlace(EntityPlayer player,
java.util.List<BlockSnapshot> blockSnapshots,
EnumFacing direction,
EnumHand hand) |
static EntityPlayer.SleepResult |
onPlayerSleepInBed(EntityPlayer player,
BlockPos pos) |
static boolean |
onPlayerSpawnSet(EntityPlayer player,
BlockPos pos,
boolean forced) |
static void |
onPlayerWakeup(EntityPlayer player,
boolean wakeImmediately,
boolean updateWorldFlag,
boolean setSpawn) |
static PlaySoundAtEntityEvent |
onPlaySoundAtEntity(Entity entity,
SoundEvent name,
SoundCategory category,
float volume,
float pitch) |
static boolean |
onPotionAttemptBrew(NonNullList<ItemStack> stacks) |
static void |
onPotionBrewed(NonNullList<ItemStack> brewingItemStacks) |
static boolean |
onProjectileImpact(EntityArrow arrow,
RayTraceResult ray) |
static boolean |
onProjectileImpact(EntityFireball fireball,
RayTraceResult ray) |
static boolean |
onProjectileImpact(Entity entity,
RayTraceResult ray) |
static boolean |
onProjectileImpact(EntityThrowable throwable,
RayTraceResult ray) |
static boolean |
onReplaceBiomeBlocks(IChunkGenerator gen,
int x,
int z,
ChunkPrimer primer,
World world) |
static void |
onStartEntityTracking(Entity entity,
EntityPlayer player) |
static void |
onStopEntityTracking(Entity entity,
EntityPlayer player) |
static boolean |
onTrySpawnPortal(World world,
BlockPos pos,
BlockPortal.Size size) |
static boolean |
onUseItemStop(EntityLivingBase entity,
ItemStack item,
int duration) |
static boolean |
renderBlockOverlay(EntityPlayer player,
float renderPartialTicks,
RenderBlockOverlayEvent.OverlayType type,
IBlockState block,
BlockPos pos) |
static boolean |
renderFireOverlay(EntityPlayer player,
float renderPartialTicks) |
static boolean |
renderWaterOverlay(EntityPlayer player,
float renderPartialTicks) |
public static BlockEvent.EntityMultiPlaceEvent onMultiBlockPlace(@Nullable Entity entity, java.util.List<BlockSnapshot> blockSnapshots, EnumFacing direction)
public static BlockEvent.MultiPlaceEvent onPlayerMultiBlockPlace(EntityPlayer player, java.util.List<BlockSnapshot> blockSnapshots, EnumFacing direction, EnumHand hand)
public static BlockEvent.EntityPlaceEvent onBlockPlace(@Nullable Entity entity, @Nonnull BlockSnapshot blockSnapshot, @Nonnull EnumFacing direction)
public static BlockEvent.PlaceEvent onPlayerBlockPlace(@Nonnull EntityPlayer player, @Nonnull BlockSnapshot blockSnapshot, @Nonnull EnumFacing direction, @Nonnull EnumHand hand)
public static BlockEvent.NeighborNotifyEvent onNeighborNotify(World world, BlockPos pos, IBlockState state, java.util.EnumSet<EnumFacing> notifiedSides, boolean forceRedstoneUpdate)
public static boolean doPlayerHarvestCheck(EntityPlayer player, IBlockState state, boolean success)
public static float getBreakSpeed(EntityPlayer player, IBlockState state, float original, BlockPos pos)
public static void onPlayerDestroyItem(EntityPlayer player, @Nonnull ItemStack stack, @Nullable EnumHand hand)
@Deprecated public static Event.Result canEntitySpawn(EntityLiving entity, World world, float x, float y, float z)
canEntitySpawn(EntityLiving, World, float, float, float, MobSpawnerBaseLogic)
instead@Deprecated public static Event.Result canEntitySpawn(EntityLiving entity, World world, float x, float y, float z, boolean isSpawner)
canEntitySpawn(EntityLiving, World, float, float, float, MobSpawnerBaseLogic)
insteadpublic static Event.Result canEntitySpawn(EntityLiving entity, World world, float x, float y, float z, MobSpawnerBaseLogic spawner)
public static boolean canEntitySpawnSpawner(EntityLiving entity, World world, float x, float y, float z, MobSpawnerBaseLogic spawner)
@Deprecated public static boolean canEntitySpawnSpawner(EntityLiving entity, World world, float x, float y, float z)
@Deprecated public static boolean doSpecialSpawn(EntityLiving entity, World world, float x, float y, float z)
public static boolean doSpecialSpawn(EntityLiving entity, World world, float x, float y, float z, MobSpawnerBaseLogic spawner)
public static Event.Result canEntityDespawn(EntityLiving entity)
public static int getItemBurnTime(@Nonnull ItemStack itemStack)
public static int getExperienceDrop(EntityLivingBase entity, EntityPlayer attackingPlayer, int originalExperience)
@Nullable public static java.util.List<Biome.SpawnListEntry> getPotentialSpawns(WorldServer world, EnumCreatureType type, BlockPos pos, java.util.List<Biome.SpawnListEntry> oldList)
public static int getMaxSpawnPackSize(EntityLiving entity)
public static java.lang.String getPlayerDisplayName(EntityPlayer player, java.lang.String username)
public static float fireBlockHarvesting(java.util.List<ItemStack> drops, World world, BlockPos pos, IBlockState state, int fortune, float dropChance, boolean silkTouch, EntityPlayer player)
public static IBlockState fireFluidPlaceBlockEvent(World world, BlockPos pos, BlockPos liquidPos, IBlockState state)
public static ItemTooltipEvent onItemTooltip(ItemStack itemStack, @Nullable EntityPlayer entityPlayer, java.util.List<java.lang.String> toolTip, ITooltipFlag flags)
public static ZombieEvent.SummonAidEvent fireZombieSummonAid(EntityZombie zombie, World world, int x, int y, int z, EntityLivingBase attacker, double summonChance)
public static boolean onEntityStruckByLightning(Entity entity, EntityLightningBolt bolt)
public static int onItemUseStart(EntityLivingBase entity, ItemStack item, int duration)
public static int onItemUseTick(EntityLivingBase entity, ItemStack item, int duration)
public static boolean onUseItemStop(EntityLivingBase entity, ItemStack item, int duration)
public static ItemStack onItemUseFinish(EntityLivingBase entity, ItemStack item, int duration, ItemStack result)
public static void onStartEntityTracking(Entity entity, EntityPlayer player)
public static void onStopEntityTracking(Entity entity, EntityPlayer player)
public static void firePlayerLoadingEvent(EntityPlayer player, java.io.File playerDirectory, java.lang.String uuidString)
public static void firePlayerSavingEvent(EntityPlayer player, java.io.File playerDirectory, java.lang.String uuidString)
public static void firePlayerLoadingEvent(EntityPlayer player, IPlayerFileData playerFileData, java.lang.String uuidString)
@Nullable public static ITextComponent onClientChat(ChatType type, ITextComponent message)
@Nonnull public static java.lang.String onClientSendMessage(java.lang.String message)
public static int onHoeUse(ItemStack stack, EntityPlayer player, World worldIn, BlockPos pos)
public static int onApplyBonemeal(@Nonnull EntityPlayer player, @Nonnull World world, @Nonnull BlockPos pos, @Nonnull IBlockState state, @Nonnull ItemStack stack, @Nullable EnumHand hand)
@Nullable public static ActionResult<ItemStack> onBucketUse(@Nonnull EntityPlayer player, @Nonnull World world, @Nonnull ItemStack stack, @Nullable RayTraceResult target)
public static boolean canEntityUpdate(Entity entity)
public static PlaySoundAtEntityEvent onPlaySoundAtEntity(Entity entity, SoundEvent name, SoundCategory category, float volume, float pitch)
public static int onItemExpire(EntityItem entity, @Nonnull ItemStack item)
public static int onItemPickup(EntityItem entityItem, EntityPlayer player)
public static void onPlayerDrops(EntityPlayer player, DamageSource cause, java.util.List<EntityItem> capturedDrops, boolean recentlyHit)
public static boolean canMountEntity(Entity entityMounting, Entity entityBeingMounted, boolean isMounting)
public static boolean onAnimalTame(EntityAnimal animal, EntityPlayer tamer)
public static EntityPlayer.SleepResult onPlayerSleepInBed(EntityPlayer player, BlockPos pos)
public static void onPlayerWakeup(EntityPlayer player, boolean wakeImmediately, boolean updateWorldFlag, boolean setSpawn)
public static void onPlayerFall(EntityPlayer player, float distance, float multiplier)
public static boolean onPlayerSpawnSet(EntityPlayer player, BlockPos pos, boolean forced)
public static void onPlayerClone(EntityPlayer player, EntityPlayer oldPlayer, boolean wasDeath)
public static void onExplosionDetonate(World world, Explosion explosion, java.util.List<Entity> list, double diameter)
public static boolean onCreateWorldSpawn(World world, WorldSettings settings)
public static float onLivingHeal(EntityLivingBase entity, float amount)
public static boolean onPotionAttemptBrew(NonNullList<ItemStack> stacks)
public static void onPotionBrewed(NonNullList<ItemStack> brewingItemStacks)
public static void onPlayerBrewedPotion(EntityPlayer player, ItemStack stack)
public static boolean renderFireOverlay(EntityPlayer player, float renderPartialTicks)
public static boolean renderWaterOverlay(EntityPlayer player, float renderPartialTicks)
public static boolean renderBlockOverlay(EntityPlayer player, float renderPartialTicks, RenderBlockOverlayEvent.OverlayType type, IBlockState block, BlockPos pos)
@Nullable public static CapabilityDispatcher gatherCapabilities(TileEntity tileEntity)
@Nullable public static CapabilityDispatcher gatherCapabilities(Entity entity)
@Nullable public static CapabilityDispatcher gatherCapabilities(Village village)
@Nullable public static CapabilityDispatcher gatherCapabilities(ItemStack stack, ICapabilityProvider parent)
@Nullable public static CapabilityDispatcher gatherCapabilities(World world, ICapabilityProvider parent)
@Nullable public static CapabilityDispatcher gatherCapabilities(Chunk chunk)
@Nullable private static CapabilityDispatcher gatherCapabilities(AttachCapabilitiesEvent<?> event, @Nullable ICapabilityProvider parent)
public static boolean fireSleepingLocationCheck(EntityPlayer player, BlockPos sleepingLocation)
public static boolean fireSleepingTimeCheck(EntityPlayer player, BlockPos sleepingLocation)
public static ActionResult<ItemStack> onArrowNock(ItemStack item, World world, EntityPlayer player, EnumHand hand, boolean hasAmmo)
public static int onArrowLoose(ItemStack stack, World world, EntityPlayer player, int charge, boolean hasAmmo)
public static boolean onProjectileImpact(Entity entity, RayTraceResult ray)
public static boolean onProjectileImpact(EntityArrow arrow, RayTraceResult ray)
public static boolean onProjectileImpact(EntityFireball fireball, RayTraceResult ray)
public static boolean onProjectileImpact(EntityThrowable throwable, RayTraceResult ray)
public static boolean onReplaceBiomeBlocks(IChunkGenerator gen, int x, int z, ChunkPrimer primer, World world)
public static void onChunkPopulate(boolean pre, IChunkGenerator gen, World world, java.util.Random rand, int x, int z, boolean hasVillageGenerated)
public static LootTable loadLootTable(ResourceLocation name, LootTable table, LootTableManager lootTableManager)
public static boolean canCreateFluidSource(World world, BlockPos pos, IBlockState state, boolean def)
public static boolean onTrySpawnPortal(World world, BlockPos pos, BlockPortal.Size size)
public static int onEnchantmentLevelSet(World world, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int level)
public static boolean onEntityDestroyBlock(EntityLivingBase entity, BlockPos pos, IBlockState state)
public static boolean gatherCollisionBoxes(World world, Entity entity, AxisAlignedBB aabb, java.util.List<AxisAlignedBB> outList)
public static void onGameRuleChange(GameRules rules, java.lang.String ruleName, MinecraftServer server)
public static MerchantRecipeList listTradeOffers(IMerchant merchant, EntityPlayer player, @Nullable MerchantRecipeList list)