Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. package com.songoda.ultimatestacker.events;
  2.  
  3. import org.bukkit.block.Block;
  4. import org.bukkit.entity.EntityType;
  5. import org.bukkit.entity.Player;
  6. import org.bukkit.event.player.PlayerEvent;
  7.  
  8.  
  9.  
  10. public abstract class SpawnerEvent
  11. extends PlayerEvent
  12. {
  13. protected final Block block;
  14. protected final EntityType spawnerType;
  15. protected final int amount;
  16.  
  17. public SpawnerEvent(Player who, Block block, EntityType spawnerType, int amount) {
  18. super(who);
  19. this.block = block;
  20. this.spawnerType = spawnerType;
  21. this.amount = amount;
  22. }
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. public Block getBlock() { return this.block; }
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. public EntityType getSpawnerType() { return this.spawnerType; }
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. public int getAmount() { return this.amount; }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement