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_352185_, ProfilerFiller p_352252_, UnbakedModel p_352193_, BlockColors p_352120_, BiConsumer<ModelResourceLocation, UnbakedModel> p_352414_) -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.Object2IntMap
<BlockState> (package private) static <T extends Comparable<T>>
TgetValueHelper
(Property<T> p_352301_, String p_352273_) void
private void
loadBlockStateDefinitions
(ResourceLocation p_352059_, StateDefinition<Block, BlockState> p_352064_) private static Predicate
<BlockState> predicate
(StateDefinition<Block, BlockState> p_352099_, String p_352078_) private void
registerModelGroup
(Iterable<BlockState> p_352382_)
-
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_352185_, ProfilerFiller p_352252_, UnbakedModel p_352193_, BlockColors p_352120_, BiConsumer<ModelResourceLocation, UnbakedModel> p_352414_)
-
-
Method Details
-
loadAllBlockStates
public void loadAllBlockStates() -
loadBlockStateDefinitions
private void loadBlockStateDefinitions(ResourceLocation p_352059_, StateDefinition<Block, BlockState> p_352064_) -
predicate
private static Predicate<BlockState> predicate(StateDefinition<Block, BlockState> p_352099_, String p_352078_) -
getValueHelper
@Nullable static <T extends Comparable<T>> T getValueHelper(Property<T> p_352301_, String p_352273_) -
registerModelGroup
-
getModelGroups
-