Updated the Demon Aura hud by allowing it to actually see the Aura in the chunk - refresh rate is 50 ticks.
This commit is contained in:
parent
0ac2b78803
commit
98ed17fe21
9 changed files with 144 additions and 8 deletions
|
@ -15,6 +15,17 @@ public class WorldDemonWillHandler
|
|||
static ConcurrentHashMap<Integer, WillWorld> containedWills = new ConcurrentHashMap<Integer, WillWorld>();
|
||||
public static ConcurrentHashMap<Integer, CopyOnWriteArrayList<PosXY>> dirtyChunks = new ConcurrentHashMap<Integer, CopyOnWriteArrayList<PosXY>>();
|
||||
|
||||
public static DemonWillHolder getWillHolder(int dim, int x, int y)
|
||||
{
|
||||
WillChunk chunk = getWillChunk(dim, x, y);
|
||||
if (chunk != null)
|
||||
{
|
||||
return chunk.getCurrentWill();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static WillWorld getWillWorld(int dim)
|
||||
{
|
||||
return containedWills.get(dim);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue