Uses of Interface
net.minecraft.util.RegistryContextSwapper
Packages that use RegistryContextSwapper
-
Uses of RegistryContextSwapper in net.minecraft.client.renderer.item
Fields in net.minecraft.client.renderer.item declared as RegistryContextSwapperModifier and TypeFieldDescriptionprivate final @Nullable RegistryContextSwapperItemModel.BakingContext.contextSwapperThe field for thecontextSwapperrecord component.private final @Nullable RegistryContextSwapperClientItem.registrySwapperThe field for theregistrySwapperrecord component.Methods in net.minecraft.client.renderer.item that return RegistryContextSwapperModifier and TypeMethodDescription@Nullable RegistryContextSwapperItemModel.BakingContext.contextSwapper()Returns the value of thecontextSwapperrecord component.@Nullable RegistryContextSwapperClientItem.registrySwapper()Returns the value of theregistrySwapperrecord component.Methods in net.minecraft.client.renderer.item with parameters of type RegistryContextSwapperModifier and TypeMethodDescriptionprivate ItemModelPropertyTestConditionalItemModel.Unbaked.adaptProperty(ConditionalItemModelProperty pProperty, @Nullable RegistryContextSwapper pContextSwapper) private SelectItemModel.ModelSelector<T> SelectItemModel.UnbakedSwitch.createModelGetter(it.unimi.dsi.fastutil.objects.Object2ObjectMap<T, ItemModel> pModels, @Nullable RegistryContextSwapper pContextSwapper) private static <T extends ConditionalItemModelProperty>
TConditionalItemModel.Unbaked.swapContext(T pProperty, RegistryContextSwapper pContextSwapper, ClientLevel pLevel) ClientItem.withRegistrySwapper(RegistryContextSwapper pRegistrySwapper) Constructors in net.minecraft.client.renderer.item with parameters of type RegistryContextSwapperModifierConstructorDescriptionBakingContext(ModelBaker blockModelBaker, EntityModelSet entityModelSet, MaterialSet materials, PlayerSkinRenderCache playerSkinRenderCache, ItemModel missingItemModel, @Nullable RegistryContextSwapper contextSwapper) Deprecated.BakingContext(ModelBaker blockModelBaker, EntityModelSet entityModelSet, MaterialSet materials, PlayerSkinRenderCache playerSkinRenderCache, ItemModel missingItemModel, @Nullable RegistryContextSwapper contextSwapper, AnimationLoader.PendingAnimations pendingAnimations) Creates an instance of aBakingContextrecord class.ClientItem(ItemModel.Unbaked model, ClientItem.Properties properties, @Nullable RegistryContextSwapper registrySwapper) Creates an instance of aClientItemrecord class. -
Uses of RegistryContextSwapper in net.minecraft.util
Methods in net.minecraft.util that return RegistryContextSwapper
BakingContext(ModelBaker, EntityModelSet, MaterialSet, PlayerSkinRenderCache, ItemModel, RegistryContextSwapper, net.neoforged.neoforge.client.entity.animation.json.AnimationLoader.PendingAnimations)instead