类 BakedModelRenderable
java.lang.Object
net.minecraftforge.client.model.renderable.BakedModelRenderable
- 所有已实现的接口:
IRenderable<BakedModelRenderable.Context>
public class BakedModelRenderable
extends Object
implements IRenderable<BakedModelRenderable.Context>
Renderable wrapper for baked models.
The context can provide the BlockState
, faces to be rendered, a RandomSource
and seed,
a ModelData
instance, and a tint
.
- 另请参阅:
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static BakedModelRenderable
of
(BakedModel model) Constructs aBakedModelRenderable
from the given baked model.static BakedModelRenderable
of
(ModelResourceLocation model) Constructs aBakedModelRenderable
from the given model location.void
render
(PoseStack poseStack, MultiBufferSource bufferSource, ITextureRenderTypeLookup textureRenderTypeLookup, int lightmap, int overlay, float partialTick, BakedModelRenderable.Context context) Draws the renderable by adding the geometry to the providedMultiBufferSource
withContext
(ModelData modelData) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.client.model.renderable.IRenderable
withContext
-
字段详细资料
-
model
-
-
构造器详细资料
-
BakedModelRenderable
-
-
方法详细资料
-
of
Constructs aBakedModelRenderable
from the given model location. The model is expected to have been baked ahead of time.- 另请参阅:
-
of
Constructs aBakedModelRenderable
from the given baked model. -
render
public void render(PoseStack poseStack, MultiBufferSource bufferSource, ITextureRenderTypeLookup textureRenderTypeLookup, int lightmap, int overlay, float partialTick, BakedModelRenderable.Context context) 从接口复制的说明:IRenderable
Draws the renderable by adding the geometry to the providedMultiBufferSource
- 指定者:
render
在接口中IRenderable<BakedModelRenderable.Context>
- 参数:
poseStack
- The pose stackbufferSource
- The buffer source where the vertex data should be outputtextureRenderTypeLookup
- A function that provides a RenderType for the given texturelightmap
- The lightmap coordinates representing the current lighting conditions. SeeLightTexture
overlay
- The overlay coordinates representing the current overlay status. SeeOverlayTexture
partialTick
- The current time expressed in the fraction of a tick elapsed since the last client tickcontext
- The context used for rendering
-
withContext
-
withModelDataContext
-