// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.server.core.event.events.entity;

import javax.annotation.Nonnull;
import com.hypixel.hytale.event.IEvent;
import com.hypixel.hytale.server.core.entity.Entity;

public abstract class EntityEvent<EntityType extends Entity, KeyType> implements IEvent<KeyType>
{
    private final EntityType entity;
    
    public EntityEvent(final EntityType entity) {
        this.entity = entity;
    }
    
    public EntityType getEntity() {
        return this.entity;
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "EntityEvent{entity=" + String.valueOf(this.entity);
    }
}
