Uses of Class
net.minecraft.client.resources.model.Material
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Extension interfaces for
client
-only classes.-
Uses of Material in net.minecraft.client.renderer
Modifier and TypeFieldDescriptionstatic final Material
Sheets.BANNER_BASE
static final Material[]
Sheets.BED_TEXTURES
static final Material
Sheets.CHEST_LOCATION
static final Material
Sheets.CHEST_LOCATION_LEFT
static final Material
Sheets.CHEST_LOCATION_RIGHT
static final Material
Sheets.CHEST_TRAP_LOCATION
static final Material
Sheets.CHEST_TRAP_LOCATION_LEFT
static final Material
Sheets.CHEST_TRAP_LOCATION_RIGHT
static final Material
Sheets.CHEST_XMAS_LOCATION
static final Material
Sheets.CHEST_XMAS_LOCATION_LEFT
static final Material
Sheets.CHEST_XMAS_LOCATION_RIGHT
static final Material
Sheets.DECORATED_POT_BASE
static final Material
Sheets.DECORATED_POT_SIDE
static final Material
static final Material
Sheets.ENDER_CHEST_LOCATION
static final Material
Sheets.SHIELD_BASE
Modifier and TypeFieldDescriptionprivate static final Map
<ResourceLocation, Material> Sheets.BANNER_MATERIALS
static final Map
<ResourceKey<DecoratedPotPattern>, Material> Sheets.DECORATED_POT_MATERIALS
Sheets.HANGING_SIGN_MATERIALS
private static final Map
<ResourceLocation, Material> Sheets.SHIELD_MATERIALS
Sheets.SHULKER_TEXTURE_LOCATION
Sheets.SIGN_MATERIALS
Modifier and TypeMethodDescriptionprivate static Material
Sheets.chestMaterial
(String p_110779_) static Material
Sheets.chooseMaterial
(BlockEntity p_110768_, ChestType p_110769_, boolean p_110770_) private static Material
Sheets.chooseMaterial
(ChestType p_110772_, Material p_110773_, Material p_110774_, Material p_110775_) private static Material
Sheets.createDecoratedPotMaterial
(ResourceLocation p_347474_) private static Material
Sheets.createHangingSignMaterial
(WoodType p_251735_) private static Material
Sheets.createSignMaterial
(WoodType p_173386_) static Material
Sheets.getBannerMaterial
(Holder<BannerPattern> p_332774_) static Material
Sheets.getDecoratedPotMaterial
(ResourceKey<DecoratedPotPattern> p_273567_) static Material
Sheets.getHangingSignMaterial
(WoodType p_250958_) static Material
Sheets.getShieldMaterial
(Holder<BannerPattern> p_332760_) static Material
Sheets.getSignMaterial
(WoodType p_173382_) -
Uses of Material in net.minecraft.client.renderer.block.model
Modifier and TypeMethodDescriptionBlockModel.findTextureEntry
(String p_111486_) BlockModel.Deserializer.getTextureMap
(com.google.gson.JsonObject p_111510_) BlockModel.Deserializer.parseTextureLocationOrReference
(ResourceLocation p_111504_, String p_111505_) Modifier and TypeMethodDescriptionBlockModel.bake
(ModelBaker p_252120_, Function<Material, TextureAtlasSprite> p_250023_, ModelState p_251130_) BlockModel.bake
(ModelBaker p_249720_, BlockModel p_111451_, Function<Material, TextureAtlasSprite> p_111452_, ModelState p_111453_, boolean p_111455_) MultiVariant.bake
(ModelBaker p_249016_, Function<Material, TextureAtlasSprite> p_111851_, ModelState p_111852_) private BakedModel
ItemOverrides.bakeModel
(ModelBaker p_249483_, UnbakedModel p_251965_, ItemOverride p_250816_, Function<Material, TextureAtlasSprite> spriteGetter) BlockModel.bakeVanilla
(ModelBaker p_249720_, BlockModel p_111451_, Function<Material, TextureAtlasSprite> p_111452_, ModelState p_111453_, boolean p_111455_) ItemModelGenerator.generateBlockModel
(Function<Material, TextureAtlasSprite> p_111671_, BlockModel p_111672_) BlockModel.getOverrides
(ModelBaker p_250138_, BlockModel p_251800_, Function<Material, TextureAtlasSprite> spriteGetter) ModifierConstructorDescriptionBlockModel
(ResourceLocation p_273263_, List<BlockElement> p_272668_, Map<String, com.mojang.datafixers.util.Either<Material, String>> p_272821_, Boolean p_272676_, BlockModel.GuiLight p_273072_, ItemTransforms p_273480_, List<ItemOverride> p_273099_) ItemOverrides
(ModelBaker p_251211_, UnbakedModel p_111741_, List<ItemOverride> p_111743_, Function<Material, TextureAtlasSprite> spriteGetter) -
Uses of Material in net.minecraft.client.renderer.block.model.multipart
Modifier and TypeMethodDescriptionMultiPart.bake
(ModelBaker p_249988_, Function<Material, TextureAtlasSprite> p_111972_, ModelState p_111973_) -
Uses of Material in net.minecraft.client.renderer.blockentity
Modifier and TypeFieldDescriptionstatic final Material
ConduitRenderer.ACTIVE_SHELL_TEXTURE
static final Material
BellRenderer.BELL_RESOURCE_LOCATION
static final Material
EnchantTableRenderer.BOOK_LOCATION
static final Material
ConduitRenderer.CLOSED_EYE_TEXTURE
static final Material
ConduitRenderer.OPEN_EYE_TEXTURE
static final Material
ConduitRenderer.SHELL_TEXTURE
static final Material
ConduitRenderer.VERTICAL_WIND_TEXTURE
static final Material
ConduitRenderer.WIND_TEXTURE
Modifier and TypeMethodDescriptionprotected Material
ChestRenderer.getMaterial
(T blockEntity, ChestType chestType) private static Material
DecoratedPotRenderer.getSideMaterial
(Optional<Item> p_347523_) (package private) Material
HangingSignRenderer.getSignMaterial
(WoodType p_251791_) (package private) Material
SignRenderer.getSignMaterial
(WoodType p_251961_) Modifier and TypeMethodDescriptionprivate static void
BannerRenderer.renderPatternLayer
(PoseStack p_332737_, MultiBufferSource p_332758_, int p_332821_, int p_332828_, ModelPart p_332732_, Material p_332704_, DyeColor p_332728_) static void
BannerRenderer.renderPatterns
(PoseStack p_112066_, MultiBufferSource p_112067_, int p_112068_, int p_112069_, ModelPart p_112070_, Material p_112071_, boolean p_112072_, DyeColor p_332660_, BannerPatternLayers p_330986_) static void
BannerRenderer.renderPatterns
(PoseStack p_112075_, MultiBufferSource p_112076_, int p_112077_, int p_112078_, ModelPart p_112079_, Material p_112080_, boolean p_112081_, DyeColor p_332652_, BannerPatternLayers p_331851_, boolean p_332823_) private void
BedRenderer.renderPiece
(PoseStack p_173542_, MultiBufferSource p_173543_, ModelPart p_173544_, Direction p_173545_, Material p_173546_, int p_173547_, int p_173548_, boolean p_173549_) private void
DecoratedPotRenderer.renderSide
(ModelPart p_273495_, PoseStack p_272899_, MultiBufferSource p_273582_, int p_273242_, int p_273108_, Material p_273173_) -
Uses of Material in net.minecraft.client.resources.model
Modifier and TypeFieldDescriptionstatic final Material
ModelBakery.BANNER_BASE
static final Material
ModelBakery.FIRE_0
static final Material
ModelBakery.FIRE_1
static final Material
ModelBakery.LAVA_FLOW
static final Material
ModelBakery.NO_PATTERN_SHIELD
static final Material
ModelBakery.SHIELD_BASE
static final Material
ModelBakery.WATER_FLOW
static final Material
ModelBakery.WATER_OVERLAY
Modifier and TypeFieldDescriptionstatic final Comparator
<Material> Material.COMPARATOR
private final Function
<Material, TextureAtlasSprite> ModelBakery.ModelBakerImpl.modelTextureGetter
Modifier and TypeMethodDescriptionModelBakery.TextureGetter.get
(ModelResourceLocation p_352455_, Material p_352128_) Modifier and TypeMethodDescriptionModelBakery.ModelBakerImpl.bake
(ResourceLocation p_252176_, ModelState p_249765_, Function<Material, TextureAtlasSprite> sprites) UnbakedModel.bake
(ModelBaker p_250133_, Function<Material, TextureAtlasSprite> p_119535_, ModelState p_119536_) ModelBakery.ModelBakerImpl.bakeUncached
(UnbakedModel p_352386_, ModelState p_352194_, Function<Material, TextureAtlasSprite> sprites) -
Uses of Material in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic Material
ClientHooks.getBlockMaterial
(ResourceLocation loc) -
Uses of Material in net.neoforged.neoforge.client.event
Modifier and TypeFieldDescriptionprivate final Function
<Material, TextureAtlasSprite> ModelEvent.ModifyBakingResult.textureGetter
Modifier and TypeMethodDescriptionModelEvent.ModifyBakingResult.getTextureGetter()
Returns a lookup function to retrieveTextureAtlasSprite
s by name from any of the atlases handled by theModelManager
.ModifierConstructorDescriptionModifyBakingResult
(Map<ModelResourceLocation, BakedModel> models, Function<Material, TextureAtlasSprite> textureGetter, ModelBakery modelBakery) -
Uses of Material in net.neoforged.neoforge.client.extensions
Modifier and TypeMethodDescription@Nullable BakedModel
IModelBakerExtension.bake
(ResourceLocation location, ModelState state, Function<Material, TextureAtlasSprite> sprites) @Nullable BakedModel
IModelBakerExtension.bakeUncached
(UnbakedModel model, ModelState state, Function<Material, TextureAtlasSprite> sprites) -
Uses of Material in net.neoforged.neoforge.client.model
Modifier and TypeFieldDescriptionprivate @Nullable com.google.common.collect.ImmutableList
<Material> ItemLayerModel.textures
Modifier and TypeMethodDescriptionprotected void
ElementsModel.addQuads
(IGeometryBakingContext context, IModelBuilder<?> modelBuilder, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState) protected void
EmptyModel.addQuads
(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform) CompositeModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) DynamicFluidContainerModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) EmptyModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) ItemLayerModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) SeparateTransformsModel.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) ModifierConstructorDescriptionprivate
ItemLayerModel
(@Nullable com.google.common.collect.ImmutableList<Material> textures, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ExtraFaceData> layerData, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceLocation> renderTypeNames) -
Uses of Material in net.neoforged.neoforge.client.model.geometry
Modifier and TypeFieldDescriptionprivate static final Material
StandaloneGeometryBakingContext.Builder.NO_MATERIAL
Modifier and TypeFieldDescriptionStandaloneGeometryBakingContext.Builder.materialLookup
StandaloneGeometryBakingContext.materialLookup
Modifier and TypeMethodDescriptionBlockGeometryBakingContext.getMaterial
(String name) IGeometryBakingContext.getMaterial
(String name) Resolves the final texture name, taking into account texture aliases and replacements.StandaloneGeometryBakingContext.getMaterial
(String name) static Material
UnbakedGeometryHelper.resolveDirtyMaterial
(@Nullable String tex, IGeometryBakingContext owner) Resolves a material that may have been defined with a filesystem path instead of a properResourceLocation
.Modifier and TypeMethodDescriptionStandaloneGeometryBakingContext.Builder.withMaterials
(Map<String, Material> materials, Material defaultMaterial) Modifier and TypeMethodDescriptionprotected abstract void
SimpleUnbakedGeometry.addQuads
(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform) BlockGeometryBakingContext.bake
(ModelBaker baker, Function<Material, TextureAtlasSprite> bakedTextureGetter, ModelState modelTransform, ItemOverrides overrides) IUnbakedGeometry.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) SimpleUnbakedGeometry.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) static BakedModel
UnbakedGeometryHelper.bake
(BlockModel blockModel, ModelBaker modelBaker, BlockModel owner, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, boolean guiLight3d) Helper for bakingBlockModel
instances.UnbakedGeometryHelper.bakeElements
(List<BlockElement> elements, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState) Bakes a list of block elements and returns the list of baked quads.static void
UnbakedGeometryHelper.bakeElements
(IModelBuilder<?> builder, List<BlockElement> elements, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState) Bakes a list of block elements and feeds the baked quads to a model builder.StandaloneGeometryBakingContext.Builder.withMaterials
(Map<String, Material> materials, Material defaultMaterial) ModifierConstructorDescriptionprivate
StandaloneGeometryBakingContext
(ResourceLocation modelName, Predicate<String> materialCheck, Function<String, Material> materialLookup, boolean isGui3d, boolean useBlockLight, boolean useAmbientOcclusion, ItemTransforms transforms, Transformation rootTransform, @Nullable ResourceLocation renderTypeHint, BiPredicate<String, Boolean> visibilityTest) -
Uses of Material in net.neoforged.neoforge.client.model.obj
Modifier and TypeMethodDescriptionObjModel.ModelGroup.getTextures
(IGeometryBakingContext owner, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) ObjModel.ModelObject.getTextures
(IGeometryBakingContext owner, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) Modifier and TypeMethodDescriptionprotected void
ObjModel.addQuads
(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform) void
ObjModel.ModelGroup.addQuads
(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform) void
ObjModel.ModelMesh.addQuads
(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform) void
ObjModel.ModelObject.addQuads
(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform) -
Uses of Material in net.neoforged.neoforge.oldtest.block
Modifier and TypeMethodDescriptionFullPotsAccessorDemo.ClientHandler.DioritePotModelGeometry.bake
(IGeometryBakingContext context, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelState, ItemOverrides overrides) -
Uses of Material in net.neoforged.neoforge.oldtest.client.model
Modifier and TypeMethodDescriptionprotected void
NewModelLoaderTest.TestModel.addQuads
(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform)