--- a/net/minecraft/world/item/DyeItem.java
+++ b/net/minecraft/world/item/DyeItem.java
@@ -6,27 +6,42 @@
 import net.minecraft.sounds.SoundSource;
 import net.minecraft.world.InteractionHand;
 import net.minecraft.world.InteractionResult;
+import net.minecraft.world.entity.Entity;
 import net.minecraft.world.entity.LivingEntity;
 import net.minecraft.world.entity.animal.Sheep;
 import net.minecraft.world.entity.player.Player;
+import org.bukkit.event.entity.SheepDyeWoolEvent; // CraftBukkit
 
 public class DyeItem extends Item {
+
     private static final Map<DyeColor, DyeItem> ITEM_BY_COLOR = Maps.newEnumMap(DyeColor.class);
     private final DyeColor dyeColor;
 
     public DyeItem(DyeColor color, Item.Properties settings) {
         super(settings);
         this.dyeColor = color;
-        ITEM_BY_COLOR.put(color, this);
+        DyeItem.ITEM_BY_COLOR.put(color, this);
     }
 
     @Override
     public InteractionResult interactLivingEntity(ItemStack stack, Player user, LivingEntity entity, InteractionHand hand) {
-        if (entity instanceof Sheep sheep) {
-            if (sheep.isAlive() && !sheep.isSheared() && sheep.getColor() != this.dyeColor) {
-                sheep.level.playSound(user, sheep, SoundEvents.DYE_USE, SoundSource.PLAYERS, 1.0F, 1.0F);
+        if (entity instanceof Sheep) {
+            Sheep entitysheep = (Sheep) entity;
+
+            if (entitysheep.isAlive() && !entitysheep.isSheared() && entitysheep.getColor() != this.dyeColor) {
+                entitysheep.level.playSound(user, (Entity) entitysheep, SoundEvents.DYE_USE, SoundSource.PLAYERS, 1.0F, 1.0F);
                 if (!user.level.isClientSide) {
-                    sheep.setColor(this.dyeColor);
+                    // CraftBukkit start
+                    byte bColor = (byte) this.dyeColor.getId();
+                    SheepDyeWoolEvent event = new SheepDyeWoolEvent((org.bukkit.entity.Sheep) entitysheep.getBukkitEntity(), org.bukkit.DyeColor.getByWoolData(bColor), (org.bukkit.entity.Player) user.getBukkitEntity());
+                    entitysheep.level.getCraftServer().getPluginManager().callEvent(event);
+
+                    if (event.isCancelled()) {
+                        return InteractionResult.PASS;
+                    }
+
+                    entitysheep.setColor(DyeColor.byId((byte) event.getColor().getWoolData()));
+                    // CraftBukkit end
                     stack.shrink(1);
                 }
 
@@ -42,6 +57,6 @@
     }
 
     public static DyeItem byColor(DyeColor color) {
-        return ITEM_BY_COLOR.get(color);
+        return (DyeItem) DyeItem.ITEM_BY_COLOR.get(color);
     }
 }
