Record Class BlockEntityRendererFactory.Context
java.lang.Object
java.lang.Record
net.minecraft.client.render.block.entity.BlockEntityRendererFactory.Context
- Record Components:
renderDispatcher-renderManager-itemModelManager-itemRenderer-entityRenderDispatcher-loadedEntityModels-textRenderer-spriteHolder-playerSkinRenderCache-
- Enclosing interface:
BlockEntityRendererFactory<T extends BlockEntity,S extends BlockEntityRenderState>
@Environment(CLIENT)
public static record BlockEntityRendererFactory.Context(BlockEntityRenderManager renderDispatcher, BlockRenderManager renderManager, ItemModelManager itemModelManager, ItemRenderer itemRenderer, EntityRenderManager entityRenderDispatcher, LoadedEntityModels loadedEntityModels, TextRenderer textRenderer, SpriteHolder spriteHolder, PlayerSkinCache playerSkinRenderCache)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/block/entity/BlockEntityRendererFactory$Contextintermediary net/minecraft/class_5614$class_5615official hit$anamed renderDispatcherintermediary comp_4534official anamed renderManagerintermediary comp_4535official bnamed itemModelManagerintermediary comp_4536official cnamed itemRendererintermediary comp_4537official dnamed entityRenderDispatcherintermediary comp_4538official enamed loadedEntityModelsintermediary comp_4539official fnamed textRendererintermediary comp_4540official gnamed spriteHolderintermediary comp_4541official hnamed playerSkinRenderCacheintermediary comp_4655official i
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EntityRenderManagerThe field for theentityRenderDispatcherrecord component.private final ItemModelManagerThe field for theitemModelManagerrecord component.private final ItemRendererThe field for theitemRendererrecord component.private final LoadedEntityModelsThe field for theloadedEntityModelsrecord component.private final PlayerSkinCacheThe field for theplayerSkinRenderCacherecord component.private final BlockEntityRenderManagerThe field for therenderDispatcherrecord component.private final BlockRenderManagerThe field for therenderManagerrecord component.private final SpriteHolderThe field for thespriteHolderrecord component.private final TextRendererThe field for thetextRendererrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionContext(BlockEntityRenderManager renderDispatcher, BlockRenderManager renderManager, ItemModelManager itemModelManager, ItemRenderer itemRenderer, EntityRenderManager entityRenderDispatcher, LoadedEntityModels layerRenderDispatcher, TextRenderer textRenderer, SpriteHolder spriteHolder, PlayerSkinCache playerSkinCache) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityRenderDispatcherrecord component.final booleanIndicates whether some other object is "equal to" this one.getLayerModelPart(EntityModelLayer modelLayer) final inthashCode()Returns a hash code value for this object.Returns the value of theitemModelManagerrecord component.Returns the value of theitemRendererrecord component.Returns the value of theloadedEntityModelsrecord component.Returns the value of theplayerSkinRenderCacherecord component.Returns the value of therenderDispatcherrecord component.Returns the value of therenderManagerrecord component.Returns the value of thespriteHolderrecord component.Returns the value of thetextRendererrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
renderDispatcher
The field for therenderDispatcherrecord component. -
renderManager
The field for therenderManagerrecord component. -
itemModelManager
The field for theitemModelManagerrecord component. -
itemRenderer
The field for theitemRendererrecord component. -
entityRenderDispatcher
The field for theentityRenderDispatcherrecord component. -
loadedEntityModels
The field for theloadedEntityModelsrecord component. -
textRenderer
The field for thetextRendererrecord component. -
spriteHolder
The field for thespriteHolderrecord component. -
playerSkinRenderCache
The field for theplayerSkinRenderCacherecord component.
-
-
Constructor Details
-
Context
public Context(BlockEntityRenderManager renderDispatcher, BlockRenderManager renderManager, ItemModelManager itemModelManager, ItemRenderer itemRenderer, EntityRenderManager entityRenderDispatcher, LoadedEntityModels layerRenderDispatcher, TextRenderer textRenderer, SpriteHolder spriteHolder, PlayerSkinCache playerSkinCache) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/block/entity/BlockEntityRendererFactory$Context;<init>(Lnet/minecraft/client/render/block/entity/BlockEntityRenderManager;Lnet/minecraft/client/render/block/BlockRenderManager;Lnet/minecraft/client/item/ItemModelManager;Lnet/minecraft/client/render/item/ItemRenderer;Lnet/minecraft/client/render/entity/EntityRenderManager;Lnet/minecraft/client/render/entity/model/LoadedEntityModels;Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/texture/SpriteHolder;Lnet/minecraft/client/texture/PlayerSkinCache;)Vintermediary <init>Lnet/minecraft/class_5614$class_5615;<init>(Lnet/minecraft/class_824;Lnet/minecraft/class_776;Lnet/minecraft/class_10442;Lnet/minecraft/class_918;Lnet/minecraft/class_898;Lnet/minecraft/class_5599;Lnet/minecraft/class_327;Lnet/minecraft/class_11701;Lnet/minecraft/class_11786;)Vofficial <init>Lhit$a;<init>(Lhir;Lhhg;Lhyq;Lhox;Lhnw;Lgyk;Lgda;Lies;Lhgc;)V
-
-
Method Details
-
getLayerModelPart
- Mappings:
Namespace Name Mixin selector named getLayerModelPartLnet/minecraft/client/render/block/entity/BlockEntityRendererFactory$Context;getLayerModelPart(Lnet/minecraft/client/render/entity/model/EntityModelLayer;)Lnet/minecraft/client/model/ModelPart;intermediary method_32140Lnet/minecraft/class_5614$class_5615;method_32140(Lnet/minecraft/class_5601;)Lnet/minecraft/class_630;official aLhit$a;a(Lgym;)Lgyo;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
renderDispatcher
Returns the value of therenderDispatcherrecord component.- Returns:
- the value of the
renderDispatcherrecord component
-
renderManager
Returns the value of therenderManagerrecord component.- Returns:
- the value of the
renderManagerrecord component
-
itemModelManager
Returns the value of theitemModelManagerrecord component.- Returns:
- the value of the
itemModelManagerrecord component
-
itemRenderer
Returns the value of theitemRendererrecord component.- Returns:
- the value of the
itemRendererrecord component
-
entityRenderDispatcher
Returns the value of theentityRenderDispatcherrecord component.- Returns:
- the value of the
entityRenderDispatcherrecord component
-
loadedEntityModels
Returns the value of theloadedEntityModelsrecord component.- Returns:
- the value of the
loadedEntityModelsrecord component
-
textRenderer
Returns the value of thetextRendererrecord component.- Returns:
- the value of the
textRendererrecord component
-
spriteHolder
Returns the value of thespriteHolderrecord component.- Returns:
- the value of the
spriteHolderrecord component
-
playerSkinRenderCache
Returns the value of theplayerSkinRenderCacherecord component.- Returns:
- the value of the
playerSkinRenderCacherecord component
-