mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 12:06:41 +00:00
Made BukkitEntity keep a weak ref to the entity and cleaned up code.
This commit is contained in:
@ -46,6 +46,11 @@ import java.util.List;
|
||||
*/
|
||||
public class NullWorld extends AbstractWorld {
|
||||
|
||||
private static final NullWorld INSTANCE = new NullWorld();
|
||||
|
||||
protected NullWorld() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "null";
|
||||
@ -120,4 +125,14 @@ public class NullWorld extends AbstractWorld {
|
||||
public Entity createEntity(Location location, BaseEntity entity) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an instance of this null world.
|
||||
*
|
||||
* @return a null world
|
||||
*/
|
||||
public static NullWorld getInstance() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user