Java Code Examples for net.minecraftforge.common.ForgeChunkManager#ticketCountAvailableFor()

The following examples show how to use net.minecraftforge.common.ForgeChunkManager#ticketCountAvailableFor() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChunkLoaderManager.java    From ChickenChunks with MIT License 4 votes vote down vote up
public boolean canForceNewChunks(int required, int dim) {
    return required + numLoadedChunks() < getPlayerChunkLimit(username) && required < ForgeChunkManager.ticketCountAvailableFor(username) * ForgeChunkManager.getMaxChunkDepthFor("ChickenChunks");
}
 
Example 2
Source File: ChunkLoaderManager.java    From ChickenChunks with MIT License 4 votes vote down vote up
@Override
public boolean canForceNewChunks(int required, int dim) {
    return required < ForgeChunkManager.ticketCountAvailableFor(mod, DimensionManager.getWorld(dim)) * ForgeChunkManager.getMaxChunkDepthFor(container.getModId());
}