Package net.minecraftforge.client.model
Class ModelDataManager
- java.lang.Object
-
- net.minecraftforge.client.model.ModelDataManager
-
public class ModelDataManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ModelDataManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
currentWorld
private static java.lang.ref.WeakReference<World> currentWorld
-
needModelDataRefresh
private static final java.util.Map<ChunkPos,java.util.Set<BlockPos>> needModelDataRefresh
-
modelDataCache
private static final java.util.Map<ChunkPos,java.util.Map<BlockPos,IModelData>> modelDataCache
-
-
Method Detail
-
cleanCaches
private static void cleanCaches(World world)
-
requestModelDataRefresh
public static void requestModelDataRefresh(TileEntity te)
-
onChunkUnload
public static void onChunkUnload(ChunkEvent.Unload event)
-
getModelData
@Nullable public static IModelData getModelData(World world, BlockPos pos)
-
getModelData
public static java.util.Map<BlockPos,IModelData> getModelData(World world, ChunkPos pos)
-
-