ArrowLaunchEvent.java 658 B

1234567891011121314151617181920212223242526272829
  1. package me.km.events;
  2. import net.minecraft.entity.player.EntityPlayer;
  3. import net.minecraft.entity.projectile.EntityArrow;
  4. import net.minecraft.world.World;
  5. import net.minecraftforge.event.entity.player.PlayerEvent;
  6. public class ArrowLaunchEvent extends PlayerEvent
  7. {
  8. private final EntityArrow arrow;
  9. private final World world;
  10. public ArrowLaunchEvent(EntityPlayer player, EntityArrow arrow, World world)
  11. {
  12. super(player);
  13. this.arrow = arrow;
  14. this.world = world;
  15. }
  16. public EntityArrow getEntityArrow()
  17. {
  18. return arrow;
  19. }
  20. public World getWorld()
  21. {
  22. return world;
  23. }
  24. }