net.minecraft.client.resources.model

public class ModelBakery

gbk
net.minecraft.client.resources.model.ModelBakery
net.minecraft.class_1088
net.minecraft.client.render.model.ModelLoader
net.minecraft.src.C_4532_

Field summary

Modifier and TypeField
public static final Material
a
FIRE_0
field_5397
FIRE_0
f_119219_
public static final Material
b
FIRE_1
field_5370
FIRE_1
f_119220_
public static final Material
c
LAVA_FLOW
field_5381
LAVA_FLOW
f_119221_
public static final Material
d
WATER_FLOW
field_5391
WATER_FLOW
f_119222_
public static final Material
e
WATER_OVERLAY
field_5388
WATER_OVERLAY
f_119223_
public static final Material
f
BANNER_BASE
field_20847
BANNER_BASE
f_119224_
public static final Material
g
SHIELD_BASE
field_21557
SHIELD_BASE
f_119225_
public static final Material
h
NO_PATTERN_SHIELD
field_21558
SHIELD_BASE_NO_PATTERN
f_119226_
public static final int
i
DESTROY_STAGE_COUNT
field_32983
field_32983
f_174875_
public static final List<ResourceLocation>
j
DESTROY_STAGES
field_20848
BLOCK_DESTRUCTION_STAGES
f_119227_
public static final List<ResourceLocation>
k
BREAKING_LOCATIONS
field_21020
BLOCK_DESTRUCTION_STAGE_TEXTURES
f_119228_
public static final List<RenderType>
l
DESTROY_TYPES
field_21772
BLOCK_DESTRUCTION_RENDER_LAYERS
f_119229_
static final int
m
SINGLETON_MODEL_GROUP
field_32984
field_32984
f_174876_
private static final int
t
INVISIBLE_MODEL_GROUP
field_32985
field_32985
f_174877_
private static final org.slf4j.Logger
u
LOGGER
field_5380
LOGGER
f_119235_
private static final String
v
BUILTIN_SLASH
field_32986
BUILTIN
f_174878_
private static final String
w
BUILTIN_SLASH_GENERATED
field_32987
BUILTIN_GENERATED
f_174879_
private static final String
x
BUILTIN_BLOCK_ENTITY
field_32988
BUILTIN_ENTITY
f_174880_
private static final String
y
MISSING_MODEL_NAME
field_32989
MISSING
f_174881_
public static final ModelResourceLocation
n
MISSING_MODEL_LOCATION
field_5374
MISSING_ID
f_119230_
public static final FileToIdConverter
o
BLOCKSTATE_LISTER
field_40569
BLOCK_STATES_FINDER
f_244202_
public static final FileToIdConverter
p
MODEL_LISTER
field_40570
MODELS_FINDER
f_244378_
public static final String
q
MISSING_MODEL_MESH
field_5371
MISSING_DEFINITION
f_119231_
private static final Map<String, String>
z
BUILTIN_MODELS
field_5396
BUILTIN_MODEL_DEFINITIONS
f_119237_
private static final com.google.common.base.Splitter
A
COMMA_SPLITTER
field_5373
COMMA_SPLITTER
f_119238_
private static final com.google.common.base.Splitter
B
EQUAL_SPLITTER
field_5372
KEY_VALUE_SPLITTER
f_119239_
public static final BlockModel
r
GENERATION_MARKER
field_5400
GENERATION_MARKER
f_119232_
public static final BlockModel
s
BLOCK_ENTITY_MARKER
field_5389
BLOCK_ENTITY_MARKER
f_119233_
private static final StateDefinition<Block, BlockState>
C
ITEM_FRAME_FAKE_DEFINITION
field_5395
ITEM_FRAME_STATE_FACTORY
f_119240_
static final ItemModelGenerator
D
ITEM_MODEL_GENERATOR
field_5384
ITEM_MODEL_GENERATOR
f_119241_
private static final Map<ResourceLocation, StateDefinition<Block, BlockState>>
E
STATIC_DEFINITIONS
field_5383
STATIC_DEFINITIONS
f_119242_
private final BlockColors
F
blockColors
field_20272
blockColors
f_119209_
private final Map<ResourceLocation, BlockModel>
G
modelResources
field_40567
jsonUnbakedModels
f_244132_
private final Map<ResourceLocation, List<ModelBakery$LoadedJson>>
H
blockStateResources
field_40568
blockStates
f_243866_
private final Set<ResourceLocation>
I
loadingStack
field_5390
modelsToLoad
f_119210_
private final BlockModelDefinition$Context
J
context
field_5399
variantMapDeserializationContext
f_119211_
private final Map<ResourceLocation, UnbakedModel>
K
unbakedCache
field_5376
unbakedModels
f_119212_
final Map<ModelBakery$BakedCacheKey, BakedModel>
L
bakedCache
field_5398
bakedModelCache
f_119213_
private final Map<ResourceLocation, UnbakedModel>
M
topLevelModels
field_5394
modelsToBake
f_119214_
private final Map<ResourceLocation, BakedModel>
N
bakedTopLevelModels
field_5387
bakedModels
f_119215_
private int
O
nextModelGroup
field_20273
nextStateId
f_119217_
private final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
P
modelGroups
field_20274
stateLookup
f_119218_

Constructor summary

ModifierConstructor
public (BlockColors blockColors, ProfilerFiller profiler, Map<ResourceLocation, BlockModel> jsonUnbakedModels, Map<ResourceLocation, List<ModelBakery$LoadedJson>> blockStates)

Method summary

Modifier and TypeMethod
public void
a(BiFunction<aew, gbi, fze> arg0)
bakeModels(BiFunction<ResourceLocation, Material, TextureAtlasSprite> arg0)
method_45876(BiFunction<class_2960, class_4730, class_1058> arg0)
bake(BiFunction<Identifier, SpriteIdentifier, Sprite> spriteLoader)
m_245909_(BiFunction<C_5265_, C_4531_, C_4486_> arg0)
private static Predicate<BlockState>
a(dfk<csv, dfj> arg0, String arg1)
predicate(StateDefinition<Block, BlockState> arg0, String arg1)
method_4725(class_2689<class_2248, class_2680> arg0, String arg1)
stateKeyToPredicate(StateManager<Block, BlockState> stateFactory, String key)
m_119273_(C_2065_<C_1706_, C_2064_> p_119274_, String p_119275_)
static <T extends Comparable<T>> T
a(dgm<T> arg0, String arg1)
getValueHelper(Property<T> arg0, String arg1)
method_4724(class_2769<T> arg0, String arg1)
getPropertyValue(Property<T> property, String string)
m_119276_(C_2097_<T> p_119277_, String p_119278_)
public UnbakedModel
a(aew arg0)
getModel(ResourceLocation arg0)
method_4726(class_2960 arg0)
getOrLoadModel(Identifier id)
m_119341_(C_5265_ arg0)
private void
b(aew arg0)
loadModel(ResourceLocation arg0)
method_4715(class_2960 arg0)
loadModel(Identifier id)
m_119362_(C_5265_ arg0)
private void
a(aew arg0, gbq arg1)
cacheAndQueueDependencies(ResourceLocation arg0, UnbakedModel arg1)
method_4729(class_2960 arg0, class_1100 arg1)
putModel(Identifier id, UnbakedModel unbakedModel)
m_119352_(C_5265_ p_119354_, C_4542_ arg1)
private void
a(gbm arg0)
loadTopLevel(ModelResourceLocation arg0)
method_4727(class_1091 arg0)
addModel(ModelIdentifier modelId)
m_119306_(C_4536_ arg0)
private void
a(Iterable<dfj> arg0)
registerModelGroup(Iterable<BlockState> arg0)
method_21603(Iterable<class_2680> arg0)
addStates(Iterable<BlockState> states)
m_119310_(Iterable<C_2064_> arg0)
private BlockModel
c(aew arg0)
loadBlockModel(ResourceLocation arg0)
method_4718(class_2960 arg0)
loadModelFromJson(Identifier id)
m_119364_(C_5265_ arg0)
public Map<ResourceLocation, BakedModel>
a()
getBakedTopLevelModels()
method_4734()
getBakedModelMap()
m_119251_()
public it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState>
b()
getModelGroups()
method_21605()
getStateLookup()
m_119355_()