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
public static final Identifier
BLOCK_OR_ITEM
field_64468
BLOCK_OR_ITEM
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 BlockModels
blockModelShaper
field_5410
blockModelCache
private final BlockColors
blockColors
field_20277
colorMap
private LoadedEntityModels
entityModelSet
field_55473
entityModels
private LoadedBlockEntityModels
specialBlockModelRenderer
field_55474
blockEntityModels
private ModelBaker$BlockItemModels
missingModels
field_57008
missingModels
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 BlockStateModel
getMissingBlockStateModel()
method_68046()
getMissingModel()
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 BlockModels
getBlockModelShaper()
method_4743()
getBlockModels()
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, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups, EntityModelSet entityModelSet, SpecialBlockModelRenderer specialBlockModelRenderer, Executor taskExecutor)
method_45883(class_7766$class_7767 arg0, class_7766$class_7767 arg1, class_1088 arg2, it.unimi.dsi.fastutil.objects.Object2IntMap<class_2680> arg3, class_5599 arg4, class_10418 arg5, Executor arg6)
bake(SpriteLoader$StitchResult blocksResult, SpriteLoader$StitchResult itemsResult, ModelBaker baker, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> groups, LoadedEntityModels entityModels, LoadedBlockEntityModels blockEntityModels, 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 LoadedBlockEntityModels
specialBlockModelRenderer()
method_65756()
getBlockEntityModelsSupplier()
public Supplier<LoadedEntityModels>
entityModels()
method_65757()
getEntityModelsSupplier()
private LoadedEntityModels
lambda$entityModels$16()
method_65758()
method_65758()
private static void
lambda$createBlockStateToModelDispatch$15(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$14(com.google.common.collect.Multimap arg0, com.google.common.collect.Multimap arg1, it.unimi.dsi.fastutil.objects.Object2IntMap arg2, EntityModelSet arg3, SpecialBlockModelRenderer arg4, ModelBakery$BakingResult arg5)
method_68047(com.google.common.collect.Multimap arg0, com.google.common.collect.Multimap arg1, it.unimi.dsi.fastutil.objects.Object2IntMap arg2, class_5599 arg3, class_10418 arg4, class_1088$class_10524 arg5)
method_68047(com.google.common.collect.Multimap arg0, com.google.common.collect.Multimap arg1, it.unimi.dsi.fastutil.objects.Object2IntMap arg2, LoadedEntityModels arg3, LoadedBlockEntityModels arg4, ModelBaker$BakedModels bakedModels)
private static void
lambda$loadModels$13(String arg0, Collection arg1)
method_65749(String arg0, Collection arg1)
method_65749(String modelName, Collection textureIds)
private static String
lambda$loadModels$12(String arg0)
method_65748(String arg0)
method_65748(String textureId)
private static void
lambda$loadModels$11(String arg0, Collection arg1)
method_65754(String arg0, Collection arg1)
method_65754(String modelName, Collection sprites)
private static String
lambda$loadModels$10(Material arg0)
method_45886(class_4730 arg0)
method_45886(SpriteIdentifier spriteId)
private static void
lambda$discoverModelDependencies$9(ModelDiscovery arg0, ClientItem arg1)
method_65933(class_10097 arg0, class_10434 arg1)
method_65933(ReferencedModelsCollector arg0, ItemAsset asset)
private static CompletionStage
lambda$loadBlockModels$8(Executor arg0, Map arg1)
method_45899(Executor arg0, Map arg1)
method_45899(Executor arg0, Map models)
private static Map
lambda$loadBlockModels$7(List arg0)
method_45897(List arg0)
method_45897(List models)
private static com.mojang.datafixers.util.Pair
lambda$loadBlockModels$6(Map$Entry arg0)
method_65750(Map$Entry arg0)
method_65750(Map$Entry arg0)
private static Map
lambda$loadBlockModels$5(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 v)
private static String
lambda$reload$3(Identifier arg0)
method_65755(class_2960 arg0)
method_65755(Identifier id)
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 async)
private LoadedBlockEntityModels
lambda$reload$0(EntityModelSet arg0)
method_73040(class_5599 arg0)
method_73040(LoadedEntityModels entityModels)