net.minecraft.client.render.model

public class BakedModelManager

implements ResourceReloader

net.minecraft.client.resources.model.ModelManager
net.minecraft.class_1092
net.minecraft.client.render.model.BakedModelManager

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_40573
LOGGER
private static final ResourceFinder
MODEL_LISTER
field_53676
MODELS_FINDER
private Map<Identifier, ItemModel>
bakedItemStackModels
field_55472
bakedItemModels
private Map<Identifier, ItemAsset$Properties>
itemProperties
field_55573
itemProperties
private final AtlasManager
atlasManager
field_61870
atlasManager
private final PlayerSkinCache
playerSkinRenderCache
field_62266
skinCache
private final BlockColors
blockColors
field_20277
colorMap
private LoadedEntityModels
entityModelSet
field_55473
entityModels
private ModelBaker$BlockItemModels
missingModels
field_57008
missingModels
private BlockStateModels
blockStateModelSet
field_1_2180
blockStateModels
private BlockModels
blockModelSet
field_1_2294
blockModels
private FluidModels
fluidStateModelSet
field_1_2477
fluidModels
private it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
modelGroups
field_55476
modelGroups

Constructor summary

ModifierConstructor
public (BlockColors colorMap, AtlasManager atlasManager, PlayerSkinCache skinCache)

Method summary

Modifier and TypeMethod
public ItemModel
getItemModel(Identifier id)
method_65746(class_2960 arg0)
getItemModel(Identifier id)
public ItemAsset$Properties
getItemProperties(Identifier id)
method_65934(class_2960 arg0)
getItemProperties(Identifier id)
public BlockStateModels
getBlockStateModelSet()
method_1_2607()
getBlockStateModels()
public BlockModels
getBlockModelSet()
method_1_2714()
getBlockModels()
public FluidModels
getFluidStateModelSet()
method_1_2991()
getFluidModels()
public final CompletableFuture<Void>
reload(PreparableReloadListener$SharedState currentReload, Executor taskExecutor, PreparableReloadListener$PreparationBarrier preparationBarrier, Executor reloadExecutor)
method_25931(class_3302$class_11558 arg0, Executor arg1, class_3302$class_4045 arg2, Executor arg3)
reload(ResourceReloader$Store arg0, Executor arg1, ResourceReloader$Synchronizer arg2, Executor arg3)
private static CompletableFuture<Map<Identifier, UnbakedModel>>
loadBlockModels(ResourceManager manager, Executor executor)
method_45881(class_3300 arg0, Executor arg1)
reloadModels(ResourceManager resourceManager, Executor executor)
private static BakedModelManager$Models
discoverModelDependencies(Map<Identifier, UnbakedModel> allModels, BlockStateModelLoader$LoadedModels blockStateModels, ClientItemInfoLoader$LoadedClientInfos itemInfos)
method_62657(Map<class_2960, class_1100> arg0, class_9824$class_10095 arg1, class_10521$class_10522 arg2)
collect(Map<Identifier, UnbakedModel> modelMap, BlockStatesLoader$LoadedModels stateDefinition, ItemAssetsLoader$Result result)
private static CompletableFuture<BakedModelManager$BakingResult>
loadModels(SpriteLoader$Preparations blockAtlas, SpriteLoader$Preparations itemAtlas, ModelBakery bakery, LoadedBlockModels blockModels, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups, EntityModelSet entityModelSet, Executor taskExecutor)
method_45883(class_7766$class_7767 arg0, class_7766$class_7767 arg1, class_1088 arg2, class_1_415 arg3, it.unimi.dsi.fastutil.objects.Object2IntMap<class_2680> arg4, class_5599 arg5, Executor arg6)
bake(SpriteLoader$StitchResult blocksResult, SpriteLoader$StitchResult itemsResult, ModelBaker baker, BlockModelLoader blockModelLoader, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> groups, LoadedEntityModels entityModels, Executor executor)
private static Map<BlockState, BlockStateModel>
createBlockStateToModelDispatch(Map<BlockState, BlockStateModel> bakedModels, BlockStateModel missingModel)
method_65751(Map<class_2680, class_1087> arg0, class_1087 arg1)
toStateMap(Map<BlockState, BlockStateModel> blockStateModels, BlockStateModel missingModel)
private static it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
buildModelGroups(BlockColors blockColors, BlockStateModelLoader$LoadedModels blockStateModels)
method_62654(class_324 arg0, class_9824$class_10095 arg1)
group(BlockColors colors, BlockStatesLoader$LoadedModels definition)
private void
apply(ModelManager$ReloadState preparations)
method_18179(class_1092$class_7779 arg0)
upload(BakedModelManager$BakingResult bakingResult)
public boolean
requiresRender(BlockState oldState, BlockState newState)
method_21611(class_2680 arg0, class_2680 arg1)
shouldRerender(BlockState from, BlockState to)
public Supplier<LoadedEntityModels>
entityModels()
method_65757()
getEntityModelsSupplier()
private LoadedEntityModels
lambda$entityModels$0()
method_65758()
method_65758()
private static void
lambda$createBlockStateToModelDispatch$0(Map arg0, BlockStateModel arg1, BlockState arg2)
method_65752(Map arg0, class_1087 arg1, class_2680 arg2)
method_65752(Map arg0, BlockStateModel arg1, BlockState state)
private static BakedModelManager$BakingResult
lambda$loadModels$1(MaterialBaker arg0, com.google.common.collect.Multimap arg1, com.google.common.collect.Multimap arg2, it.unimi.dsi.fastutil.objects.Object2IntMap arg3, EntityModelSet arg4, ModelBakery$BakingResult arg5, Map arg6)
method_68047(class_9826 arg0, com.google.common.collect.Multimap arg1, com.google.common.collect.Multimap arg2, it.unimi.dsi.fastutil.objects.Object2IntMap arg3, class_5599 arg4, class_1088$class_10524 arg5, Map arg6)
method_68047(ErrorCollectingSpriteGetter arg0, com.google.common.collect.Multimap arg1, com.google.common.collect.Multimap arg2, it.unimi.dsi.fastutil.objects.Object2IntMap arg3, LoadedEntityModels arg4, ModelBaker$BakedModels bakedModels, Map blockModels)
private static void
lambda$loadModels$4(String arg0, Collection arg1)
method_65749(String arg0, Collection arg1)
method_65749(String modelName, Collection textureIds)
private static String
lambda$loadModels$5(String arg0)
method_65748(String arg0)
method_65748(String textureId)
private static void
lambda$loadModels$2(String arg0, Collection arg1)
method_65754(String arg0, Collection arg1)
method_65754(String modelName, Collection texture)
private static String
lambda$loadModels$3(Identifier arg0)
method_45886(class_2960 arg0)
method_45886(Identifier id)
private static CompletionStage
lambda$loadModels$0(LoadedBlockModels arg0, Executor arg1, ModelBakery$BakingResult arg2)
method_1_2715(class_1_415 arg0, Executor arg1, class_1088$class_10524 arg2)
method_1_2715(BlockModelLoader arg0, Executor arg1, ModelBaker$BakedModels blockModelLoader)
private static void
lambda$discoverModelDependencies$0(ModelDiscovery arg0, ClientItem arg1)
method_65933(class_10097 arg0, class_10434 arg1)
method_65933(ReferencedModelsCollector arg0, ItemAsset asset)
private static CompletionStage
lambda$loadBlockModels$1(Executor arg0, Map arg1)
method_45899(Executor arg0, Map arg1)
method_45899(Executor arg0, Map models)
private static Map
lambda$loadBlockModels$3(List arg0)
method_45897(List arg0)
method_45897(List models)
private static com.mojang.datafixers.util.Pair
lambda$loadBlockModels$2(Map$Entry arg0)
method_65750(Map$Entry arg0)
method_65750(Map$Entry arg0)
private static Map
lambda$loadBlockModels$0(ResourceManager arg0)
method_62663(class_3300 arg0)
method_62663(ResourceManager arg0)
private CompletionStage
lambda$reload$4(CompletableFuture arg0, CompletableFuture arg1, CompletableFuture arg2, CompletableFuture arg3, CompletableFuture arg4, CompletableFuture arg5, CompletableFuture arg6, CompletableFuture arg7, CompletableFuture arg8, Executor arg9, Void arg10)
method_65753(CompletableFuture arg0, CompletableFuture arg1, CompletableFuture arg2, CompletableFuture arg3, CompletableFuture arg4, CompletableFuture arg5, CompletableFuture arg6, CompletableFuture arg7, CompletableFuture arg8, Executor arg9, Void arg10)
method_65753(CompletableFuture arg0, CompletableFuture arg1, CompletableFuture arg2, CompletableFuture arg3, CompletableFuture arg4, CompletableFuture arg5, CompletableFuture arg6, CompletableFuture arg7, CompletableFuture arg8, Executor arg9, Void arg10)
private static String
lambda$reload$5(Identifier arg0)
method_65755(class_2960 arg0)
method_65755(Identifier id)
private BlockModelLoader
lambda$reload$3(CompletableFuture arg0, CompletableFuture arg1, Void arg2)
method_1_2717(CompletableFuture arg0, CompletableFuture arg1, Void arg2)
method_1_2717(CompletableFuture arg0, CompletableFuture arg1, Void arg2)
private it.unimi.dsi.fastutil.objects.Object2IntMap
lambda$reload$2(BlockStateModelLoader$LoadedModels arg0)
method_62655(class_9824$class_10095 arg0)
method_62655(BlockStatesLoader$LoadedModels definition)
private static BakedModelManager$Models
lambda$reload$1(CompletableFuture arg0, CompletableFuture arg1, CompletableFuture arg2, Void arg3)
method_65747(CompletableFuture arg0, CompletableFuture arg1, CompletableFuture arg2, Void arg3)
method_65747(CompletableFuture arg0, CompletableFuture arg1, CompletableFuture arg2, Void arg3)
private Map
lambda$reload$0()
method_1_2716()
method_1_2716()