public class OfflineGroupManager extends Object
Modifier and Type | Field and Description |
---|---|
static Long |
lastUnloadChunk |
Constructor and Description |
---|
OfflineGroupManager() |
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(String trainname) |
static boolean |
containsInLoadedWorld(String trainname) |
static boolean |
containsMinecart(UUID uniqueId)
Check if a minecart is in an offline group
Used to check if a minecart can be linked |
static void |
deinit() |
static int |
destroyAll() |
static int |
destroyAll(org.bukkit.World world) |
static OfflineGroup |
findGroup(String groupName) |
static OfflineMember |
findMember(String groupName,
UUID uuid) |
static OfflineGroupManager |
get(UUID uuid) |
static OfflineGroupManager |
get(org.bukkit.World world) |
static int |
getStoredCount() |
static int |
getStoredCountInLoadedWorlds() |
static void |
init(String filename)
Loads the buffered groups from file
|
static boolean |
isDestroyingAllInWorld(org.bukkit.World world) |
static void |
loadChunk(org.bukkit.Chunk chunk) |
static void |
refresh() |
static void |
refresh(org.bukkit.World world) |
void |
refreshGroups(org.bukkit.World world) |
static void |
removeBuggedMinecarts(org.bukkit.World world)
Gets rid of all Minecarts that are stored in the chunk, but not in the World,
resolving collision problems.
|
static void |
removeGroup(String groupName) |
static void |
removeMember(UUID memberUUID) |
static void |
rename(String oldtrainname,
String newtrainname) |
static void |
save(String filename)
Saves the buffered groups to file
|
static void |
storeGroup(MinecartGroup group)
Stores the information of a group in this offline storage system
|
static void |
unloadChunk(org.bukkit.Chunk chunk) |
public static Long lastUnloadChunk
public static OfflineGroupManager get(UUID uuid)
public static OfflineGroupManager get(org.bukkit.World world)
public static void loadChunk(org.bukkit.Chunk chunk)
public static void unloadChunk(org.bukkit.Chunk chunk)
public static void refresh()
public static void refresh(org.bukkit.World world)
public static int destroyAll(org.bukkit.World world)
public static boolean isDestroyingAllInWorld(org.bukkit.World world)
public static int destroyAll()
public static void removeBuggedMinecarts(org.bukkit.World world)
public static void deinit()
public static void init(String filename)
filename
- - The groupdata file to read frompublic static void save(String filename)
filename
- - The groupdata file to write topublic static void storeGroup(MinecartGroup group)
group
- to storepublic static boolean containsMinecart(UUID uniqueId)
uniqueId
- of the Minecartpublic static int getStoredCount()
public static int getStoredCountInLoadedWorlds()
public static boolean contains(String trainname)
public static boolean containsInLoadedWorld(String trainname)
public static void removeMember(UUID memberUUID)
public static void removeGroup(String groupName)
public static OfflineGroup findGroup(String groupName)
public static OfflineMember findMember(String groupName, UUID uuid)
public void refreshGroups(org.bukkit.World world)
Copyright © 2019. All rights reserved.