Entities
Class: UnifiedEvents.Entities
Various entity-related events.
Methods
UnifiedEvents.Entities.onDeath(entity, damageSource -> {
// your custom behaviour here
});
UnifiedEvents.Entities.onEquipmentChange(entity, equipmentSlot, oldStack, newStack -> {
// your custom behaviour here
});
UnifiedEvents.Entities.onLoad(entity, level -> {
// your custom behaviour here
});
UnifiedEvents.Entities.onUnload(entity, level -> {
// your custom behaviour here
});
UnifiedEvents.Entities.onTick(EventType.PRE/POST, (entity) -> {
// your custom behaviour here
});
UnifiedEvents.Entities.onLivingTick(EventType.PRE/POST, (livingEntity) -> {
// your custom behaviour here
});