Package appeng.api.inventories
Interface IDynamicPartBakedModel
- All Superinterfaces:
net.minecraft.client.resources.model.BakedModel,net.fabricmc.fabric.api.renderer.v1.model.FabricBakedModel
public interface IDynamicPartBakedModel
extends net.minecraft.client.resources.model.BakedModel
This interface can be implemented by baked models returned by
IPart.getStaticModels() to indicate that they
would like to use the model data returned by IPart.getRenderAttachmentData().-
Method Summary
Modifier and TypeMethodDescriptionvoidemitQuads(net.minecraft.world.level.BlockAndTintGetter blockView, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, Supplier<net.minecraft.util.RandomSource> randomSupplier, net.fabricmc.fabric.api.renderer.v1.render.RenderContext context, net.minecraft.core.Direction partSide, @Nullable Object modelData) SeeFabricBakedModel.emitBlockQuads(net.minecraft.world.level.BlockAndTintGetter, net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos, java.util.function.Supplier<net.minecraft.util.RandomSource>, net.fabricmc.fabric.api.renderer.v1.render.RenderContext)for context.default List<net.minecraft.client.renderer.block.model.BakedQuad>getQuads(@Nullable net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.core.Direction face, net.minecraft.util.RandomSource random) Unless you use your dynamic model for other purposes, this method will not be called.Methods inherited from interface net.minecraft.client.resources.model.BakedModel
getOverrides, getParticleIcon, getTransforms, isCustomRenderer, isGui3d, useAmbientOcclusion, usesBlockLightMethods inherited from interface net.fabricmc.fabric.api.renderer.v1.model.FabricBakedModel
emitBlockQuads, emitItemQuads, isVanillaAdapter
-
Method Details
-
emitQuads
void emitQuads(net.minecraft.world.level.BlockAndTintGetter blockView, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, Supplier<net.minecraft.util.RandomSource> randomSupplier, net.fabricmc.fabric.api.renderer.v1.render.RenderContext context, net.minecraft.core.Direction partSide, @Nullable @Nullable Object modelData) SeeFabricBakedModel.emitBlockQuads(net.minecraft.world.level.BlockAndTintGetter, net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos, java.util.function.Supplier<net.minecraft.util.RandomSource>, net.fabricmc.fabric.api.renderer.v1.render.RenderContext)for context.The given
contextwill already have been transformed so that the model renders from the rotated location the part is attached to.- Parameters:
partSide- The side of the cable bus that the part is attached to.modelData- The model data returned byIPart.getRenderAttachmentData()
-
getQuads
default List<net.minecraft.client.renderer.block.model.BakedQuad> getQuads(@Nullable @Nullable net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.core.Direction face, net.minecraft.util.RandomSource random) Unless you use your dynamic model for other purposes, this method will not be called.- Specified by:
getQuadsin interfacenet.minecraft.client.resources.model.BakedModel
-