Class ItemFishedEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.player.PlayerEvent
net.minecraftforge.event.entity.player.ItemFishedEvent
This event is called when a player fishes an item.
 This event is 
Cancelable
 Canceling the event will cause the player to receive no items at all.
 The hook will still take the damage specified- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.event.entity.player.PlayerEventPlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerChangeGameModeEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.TabListNameFormatNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEventLivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEventEntityEvent.EnteringSection, EntityEvent.EntityConstructingNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final FishingHookprivate intprivate final NonNullList<ItemStack>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddamageRodBy(int rodDamage) Specifies the amount of damage that the fishing rod should take.getDrops()Use this to get the items the player will receive.Use this to stuff related to the hook itself, like the position of the bobber.intGet the damage the rod will take.Methods inherited from class net.minecraftforge.event.entity.player.PlayerEventgetEntityMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
stacks
- 
hook
- 
rodDamageprivate int rodDamage
 
- 
- 
Constructor Details- 
ItemFishedEvent
 
- 
- 
Method Details- 
getRodDamagepublic int getRodDamage()Get the damage the rod will take.- Returns:
- The damage the rod will take
 
- 
damageRodBypublic void damageRodBy(@Nonnegative int rodDamage) Specifies the amount of damage that the fishing rod should take. This is not added to the pre-existing damage to be taken.- Parameters:
- rodDamage- The damage the rod will take. Must be nonnegative
 
- 
getDropsUse this to get the items the player will receive. You cannot use this to modify the drops the player will get. If you want to affect the loot, you should use LootTables.
- 
getHookEntityUse this to stuff related to the hook itself, like the position of the bobber.
 
-