Fix Spigot annotation mistakes
while some of these may of been true, they are extreme cases and cause a ton of noise to plugin developers. Use ApiStatus.Internal instead of Deprecated for actual internal API that continues to have use (internally). These do not help plugin developers if they bring moise noise than value.
This commit is contained in:
@@ -11,22 +11,21 @@ import org.jetbrains.annotations.Nullable;
|
||||
public class HangingBreakByEntityEvent extends HangingBreakEvent {
|
||||
private final Entity remover;
|
||||
|
||||
public HangingBreakByEntityEvent(@NotNull final Hanging hanging, @Nullable final Entity remover) {
|
||||
public HangingBreakByEntityEvent(@NotNull final Hanging hanging, @NotNull final Entity remover) { // Paper
|
||||
this(hanging, remover, HangingBreakEvent.RemoveCause.ENTITY);
|
||||
}
|
||||
|
||||
public HangingBreakByEntityEvent(@NotNull final Hanging hanging, @Nullable final Entity remover, @NotNull final HangingBreakEvent.RemoveCause cause) {
|
||||
public HangingBreakByEntityEvent(@NotNull final Hanging hanging, @NotNull final Entity remover, @NotNull final HangingBreakEvent.RemoveCause cause) { // Paper
|
||||
super(hanging, cause);
|
||||
this.remover = remover;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the entity that removed the hanging entity.
|
||||
* May be null, for example when broken by an explosion.
|
||||
*
|
||||
* @return the entity that removed the hanging entity
|
||||
*/
|
||||
@Nullable
|
||||
@NotNull // Paper
|
||||
public Entity getRemover() {
|
||||
return remover;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user