mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 05:05:18 +01:00
Removed deprecated methods/classes
PremadeEvent, NewIsland.Builder#world()
This commit is contained in:
parent
68f90edb2f
commit
1ae3171340
@ -1,30 +0,0 @@
|
||||
package world.bentobox.bentobox.api.events;
|
||||
|
||||
import org.bukkit.event.Event;
|
||||
|
||||
/**
|
||||
* Provides the default methods expected when extending {@link Event}.
|
||||
* @deprecated As of 1.5.3, for removal. Use {@link BentoBoxEvent} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class PremadeEvent extends BentoBoxEvent {
|
||||
|
||||
/**
|
||||
* The default constructor is defined for cleaner code.
|
||||
* This constructor assumes the PremadeEvent is synchronous.
|
||||
*/
|
||||
public PremadeEvent() {
|
||||
this(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* This constructor is used to explicitly declare an PremadeEvent as synchronous or asynchronous.
|
||||
* @param async - true indicates the event will fire asynchronously, false
|
||||
* by default from default constructor
|
||||
* @since 1.5.2
|
||||
*/
|
||||
public PremadeEvent(boolean async) {
|
||||
super(async);
|
||||
}
|
||||
|
||||
}
|
@ -104,16 +104,6 @@ public class NewIsland {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param world world where the island will go
|
||||
* @deprecated use {@link #addon} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public Builder world(World world) {
|
||||
this.world2 = world;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the addon
|
||||
* @param addon a game mode addon
|
||||
|
@ -145,7 +145,6 @@ public class IslandCreateCommandTest {
|
||||
when(NewIsland.builder()).thenReturn(builder);
|
||||
when(builder.player(any())).thenReturn(builder);
|
||||
when(builder.name(Mockito.anyString())).thenReturn(builder);
|
||||
when(builder.world(any())).thenReturn(builder);
|
||||
when(builder.addon(addon)).thenReturn(builder);
|
||||
when(builder.reason(any())).thenReturn(builder);
|
||||
when(builder.build()).thenReturn(mock(Island.class));
|
||||
|
Loading…
Reference in New Issue
Block a user