public class ModelDataManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.ref.WeakReference<World> |
currentWorld |
private static java.util.Map<ChunkPos,java.util.Map<BlockPos,IModelData>> |
modelDataCache |
private static java.util.Map<ChunkPos,java.util.Set<BlockPos>> |
needModelDataRefresh |
Constructor and Description |
---|
ModelDataManager() |
Modifier and Type | Method and Description |
---|---|
private static void |
cleanCaches(World world) |
static IModelData |
getModelData(World world,
BlockPos pos) |
static java.util.Map<BlockPos,IModelData> |
getModelData(World world,
ChunkPos pos) |
static void |
onChunkUnload(ChunkEvent.Unload event) |
private static void |
refreshModelData(World world,
ChunkPos chunk) |
static void |
requestModelDataRefresh(TileEntity te) |
private static java.lang.ref.WeakReference<World> currentWorld
private static final java.util.Map<ChunkPos,java.util.Set<BlockPos>> needModelDataRefresh
private static final java.util.Map<ChunkPos,java.util.Map<BlockPos,IModelData>> modelDataCache
private static void cleanCaches(World world)
public static void requestModelDataRefresh(TileEntity te)
public static void onChunkUnload(ChunkEvent.Unload event)
@Nullable public static IModelData getModelData(World world, BlockPos pos)
public static java.util.Map<BlockPos,IModelData> getModelData(World world, ChunkPos pos)