Class SheepDyeWoolEvent

All Implemented Interfaces:
Cancellable

public class SheepDyeWoolEvent extends EntityDyeEvent
Called when a sheep's wool is dyed
  • Constructor Details

    • SheepDyeWoolEvent

      @Internal @Deprecated(since="1.17.1", forRemoval=true) public SheepDyeWoolEvent(@NotNull @NotNull Sheep sheep, @NotNull @NotNull DyeColor color)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • SheepDyeWoolEvent

      @Internal public SheepDyeWoolEvent(@NotNull @NotNull Sheep sheep, @NotNull @NotNull DyeColor color, @Nullable @Nullable Player player)
  • Method Details

    • getEntity

      @NotNull public @NotNull Sheep getEntity()
      Description copied from class: EntityEvent
      Returns the Entity involved in this event
      Overrides:
      getEntity in class EntityEvent
      Returns:
      Entity who is involved in this event