Class BlockStateModelLoader
java.lang.Object
net.minecraft.client.resources.model.BlockStateModelLoader
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static final record
(package private) static final record
(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockColors
static final FileToIdConverter
private final Map
<ResourceLocation, List<BlockStateModelLoader.LoadedJson>> private static final com.google.common.base.Splitter
private final BlockModelDefinition.Context
private final BiConsumer
<ModelResourceLocation, UnbakedModel> private static final com.google.common.base.Splitter
private static final int
private static final StateDefinition
<Block, BlockState> private static final org.slf4j.Logger
private final BlockStateModelLoader.LoadedModel
private final it.unimi.dsi.fastutil.objects.Object2IntMap
<BlockState> private int
private final ProfilerFiller
(package private) static final int
private static final Map
<ResourceLocation, StateDefinition<Block, BlockState>> -
Constructor Summary
ConstructorDescriptionBlockStateModelLoader
(Map<ResourceLocation, List<BlockStateModelLoader.LoadedJson>> p_343575_, ProfilerFiller p_343300_, UnbakedModel p_344187_, BlockColors p_342820_, BiConsumer<ModelResourceLocation, UnbakedModel> p_344332_) -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.Object2IntMap
<BlockState> (package private) static <T extends Comparable<T>>
TgetValueHelper
(Property<T> p_343450_, String p_342834_) void
private void
loadBlockStateDefinitions
(ResourceLocation p_343375_, StateDefinition<Block, BlockState> p_342234_) private static Predicate
<BlockState> predicate
(StateDefinition<Block, BlockState> p_344966_, String p_342983_) private void
registerModelGroup
(Iterable<BlockState> p_342753_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SINGLETON_MODEL_GROUP
static final int SINGLETON_MODEL_GROUP- See Also:
-
INVISIBLE_MODEL_GROUP
private static final int INVISIBLE_MODEL_GROUP- See Also:
-
BLOCKSTATE_LISTER
-
COMMA_SPLITTER
private static final com.google.common.base.Splitter COMMA_SPLITTER -
EQUAL_SPLITTER
private static final com.google.common.base.Splitter EQUAL_SPLITTER -
ITEM_FRAME_FAKE_DEFINITION
-
STATIC_DEFINITIONS
-
blockStateResources
-
profiler
-
blockColors
-
discoveredModelOutput
-
nextModelGroup
private int nextModelGroup -
modelGroups
-
missingModel
-
context
-
-
Constructor Details
-
BlockStateModelLoader
public BlockStateModelLoader(Map<ResourceLocation, List<BlockStateModelLoader.LoadedJson>> p_343575_, ProfilerFiller p_343300_, UnbakedModel p_344187_, BlockColors p_342820_, BiConsumer<ModelResourceLocation, UnbakedModel> p_344332_)
-
-
Method Details
-
loadAllBlockStates
public void loadAllBlockStates() -
loadBlockStateDefinitions
private void loadBlockStateDefinitions(ResourceLocation p_343375_, StateDefinition<Block, BlockState> p_342234_) -
predicate
private static Predicate<BlockState> predicate(StateDefinition<Block, BlockState> p_344966_, String p_342983_) -
getValueHelper
@Nullable static <T extends Comparable<T>> T getValueHelper(Property<T> p_343450_, String p_342834_) -
registerModelGroup
-
getModelGroups
-