namespace Minecraft.Server.FourKit.Event.Block; using Minecraft.Server.FourKit.Block; /// /// An event that is called when a block yields experience. /// public class BlockExpEvent : BlockEvent { private int _exp; internal BlockExpEvent(Block block, int exp) : base(block) { _exp = exp; } /// /// Get the experience dropped by the block after the event has processed. /// /// The experience to drop. public int getExpToDrop() => _exp; /// /// Set the amount of experience dropped by the block after the event has processed. /// /// 1 or higher to drop experience, else nothing will drop. public void setExpToDrop(int exp) { _exp = exp; } }