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 originalProperty, @Nullable RegistryContextSwapper contextSwapper) private SelectItemModel.ModelSelector<T> SelectItemModel.UnbakedSwitch.createModelGetter(it.unimi.dsi.fastutil.objects.Object2ObjectMap<T, ItemModel> originalModels, @Nullable RegistryContextSwapper registrySwapper) private static <T extends ConditionalItemModelProperty>
TConditionalItemModel.Unbaked.swapContext(T originalProperty, RegistryContextSwapper contextSwapper, ClientLevel context) ClientItem.withRegistrySwapper(RegistryContextSwapper registrySwapper) Constructors in net.minecraft.client.renderer.item with parameters of type RegistryContextSwapperModifierConstructorDescriptionBakingContext(ModelBaker blockModelBaker, EntityModelSet entityModelSet, SpriteGetter sprites, PlayerSkinRenderCache playerSkinRenderCache, ItemModel missingItemModel, @Nullable RegistryContextSwapper contextSwapper) Deprecated.BakingContext(ModelBaker blockModelBaker, EntityModelSet entityModelSet, SpriteGetter sprites, 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, SpriteGetter, PlayerSkinRenderCache, ItemModel, RegistryContextSwapper, net.neoforged.neoforge.client.entity.animation.json.AnimationLoader.PendingAnimations)instead