--- a/net/minecraft/world/entity/monster/breeze/Breeze.java
+++ b/net/minecraft/world/entity/monster/breeze/Breeze.java
@@ -77,7 +77,7 @@
 
     @Override
     public BehaviorController<Breeze> getBrain() {
-        return super.getBrain();
+        return (BehaviorController<Breeze>) super.getBrain(); // CraftBukkit - decompile error
     }
 
     @Override
@@ -252,6 +252,7 @@
 
     @Override
     public boolean canAttackType(EntityTypes<?> entitytypes) {
+        if (this.getTarget() != null) return this.getTarget().getType() == entitytypes; // SPIGOT-7957: Allow attack if target from brain was set
         return entitytypes == EntityTypes.PLAYER || entitytypes == EntityTypes.IRON_GOLEM;
     }
 
