Removed deprecated methods/classes

PremadeEvent, NewIsland.Builder#world()
This commit is contained in:
Florian CUNY 2019-08-13 11:14:53 +02:00
parent 68f90edb2f
commit 1ae3171340
3 changed files with 0 additions and 41 deletions

View File

@ -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);
}
}

View File

@ -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

View File

@ -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));