Uses of Class
com.mojang.datafixers.util.Either
Packages that use Either
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of Either in com.mojang.blaze3d.font
Methods in com.mojang.blaze3d.font that return Either -
Uses of Either in com.mojang.datafixers
Methods in com.mojang.datafixers that return EitherModifier and TypeMethodDescription<A,FR> Either <TypedOptic<A, ?, FT, FR>, Type.FieldNotFoundException> <A,FR> Either <TypedOptic<A, ?, FT, FR>, Type.FieldNotFoundException> default <A> Either<TypedOptic<A, ?, FT, FT>, Type.FieldNotFoundException> <A,FR> Either <TypedOptic<A, ?, FT, FR>, Type.FieldNotFoundException> <S> Either<TypedOptic<S, ?, FT, FR>, Type.FieldNotFoundException> <S> Either<TypedOptic<S, ?, FT, FR>, Type.FieldNotFoundException> Methods in com.mojang.datafixers that return types with arguments of type EitherModifier and TypeMethodDescriptionstatic <F,G, F2> TypedOptic <Either<F, G>, Either<F2, G>, F, F2> static <F,G, F2> TypedOptic <Either<F, G>, Either<F2, G>, F, F2> static <F,G, G2> TypedOptic <Either<F, G>, Either<F, G2>, G, G2> static <F,G, G2> TypedOptic <Either<F, G>, Either<F, G2>, G, G2> <A,B, C> App2 <FunctionType.Mu, Either<A, C>, Either<B, C>> FunctionType.Instance.left(App2<FunctionType.Mu, A, B> input) <A,B, C> App2 <FunctionType.Mu, Either<A, C>, Either<B, C>> FunctionType.Instance.left(App2<FunctionType.Mu, A, B> input) <A,B, C> App2 <FunctionType.Mu, Either<C, A>, Either<C, B>> FunctionType.Instance.right(App2<FunctionType.Mu, A, B> input) <A,B, C> App2 <FunctionType.Mu, Either<C, A>, Either<C, B>> FunctionType.Instance.right(App2<FunctionType.Mu, A, B> input) -
Uses of Either in com.mojang.datafixers.optics
Classes in com.mojang.datafixers.optics that implement interfaces with type arguments of type EitherModifier and TypeClassDescriptionfinal classInj1<F,G, F2> final classInj1<F,G, F2> final classInj2<F,G, G2> final classInj2<F,G, G2> Methods in com.mojang.datafixers.optics that return EitherMethods in com.mojang.datafixers.optics that return types with arguments of type EitherModifier and TypeMethodDescriptionOptics.eitherAffine(Affine<F, F2, A, B> fAffine, Affine<G, G2, A, B> gAffine) Optics.eitherAffine(Affine<F, F2, A, B> fAffine, Affine<G, G2, A, B> gAffine) Optics.eitherLens(Lens<F, F2, A, B> fLens, Lens<G, G2, A, B> gLens) Optics.eitherLens(Lens<F, F2, A, B> fLens, Lens<G, G2, A, B> gLens) Optics.eitherTraversal(Traversal<F, F2, A, B> fOptic, Traversal<G, G2, A, B> gOptic) Optics.eitherTraversal(Traversal<F, F2, A, B> fOptic, Traversal<G, G2, A, B> gOptic) <A,B, C> App2 <ForgetE.Mu<R>, Either<A, C>, Either<B, C>> ForgetE.Instance.left(App2<ForgetE.Mu<R>, A, B> input) <A,B, C> App2 <ForgetE.Mu<R>, Either<A, C>, Either<B, C>> ForgetE.Instance.left(App2<ForgetE.Mu<R>, A, B> input) <A,B, C> App2 <ForgetOpt.Mu<R>, Either<A, C>, Either<B, C>> ForgetOpt.Instance.left(App2<ForgetOpt.Mu<R>, A, B> input) <A,B, C> App2 <ForgetOpt.Mu<R>, Either<A, C>, Either<B, C>> ForgetOpt.Instance.left(App2<ForgetOpt.Mu<R>, A, B> input) <A,B, C> App2 <ReForget.Mu<R>, Either<A, C>, Either<B, C>> ReForget.Instance.left(App2<ReForget.Mu<R>, A, B> input) <A,B, C> App2 <ReForget.Mu<R>, Either<A, C>, Either<B, C>> ReForget.Instance.left(App2<ReForget.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetC.Mu<R>, Either<A, C>, Either<B, C>> ReForgetC.Instance.left(App2<ReForgetC.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetC.Mu<R>, Either<A, C>, Either<B, C>> ReForgetC.Instance.left(App2<ReForgetC.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetE.Mu<R>, Either<A, C>, Either<B, C>> ReForgetE.Instance.left(App2<ReForgetE.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetE.Mu<R>, Either<A, C>, Either<B, C>> ReForgetE.Instance.left(App2<ReForgetE.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetEP.Mu<R>, Either<A, C>, Either<B, C>> ReForgetEP.Instance.left(App2<ReForgetEP.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetEP.Mu<R>, Either<A, C>, Either<B, C>> ReForgetEP.Instance.left(App2<ReForgetEP.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetP.Mu<R>, Either<A, C>, Either<B, C>> ReForgetP.Instance.left(App2<ReForgetP.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetP.Mu<R>, Either<A, C>, Either<B, C>> ReForgetP.Instance.left(App2<ReForgetP.Mu<R>, A, B> input) <A,B, C> App2 <ForgetE.Mu<R>, Either<C, A>, Either<C, B>> ForgetE.Instance.right(App2<ForgetE.Mu<R>, A, B> input) <A,B, C> App2 <ForgetE.Mu<R>, Either<C, A>, Either<C, B>> ForgetE.Instance.right(App2<ForgetE.Mu<R>, A, B> input) <A,B, C> App2 <ForgetOpt.Mu<R>, Either<C, A>, Either<C, B>> ForgetOpt.Instance.right(App2<ForgetOpt.Mu<R>, A, B> input) <A,B, C> App2 <ForgetOpt.Mu<R>, Either<C, A>, Either<C, B>> ForgetOpt.Instance.right(App2<ForgetOpt.Mu<R>, A, B> input) <A,B, C> App2 <ReForget.Mu<R>, Either<C, A>, Either<C, B>> ReForget.Instance.right(App2<ReForget.Mu<R>, A, B> input) <A,B, C> App2 <ReForget.Mu<R>, Either<C, A>, Either<C, B>> ReForget.Instance.right(App2<ReForget.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetC.Mu<R>, Either<C, A>, Either<C, B>> ReForgetC.Instance.right(App2<ReForgetC.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetC.Mu<R>, Either<C, A>, Either<C, B>> ReForgetC.Instance.right(App2<ReForgetC.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetE.Mu<R>, Either<C, A>, Either<C, B>> ReForgetE.Instance.right(App2<ReForgetE.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetE.Mu<R>, Either<C, A>, Either<C, B>> ReForgetE.Instance.right(App2<ReForgetE.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetEP.Mu<R>, Either<C, A>, Either<C, B>> ReForgetEP.Instance.right(App2<ReForgetEP.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetEP.Mu<R>, Either<C, A>, Either<C, B>> ReForgetEP.Instance.right(App2<ReForgetEP.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetP.Mu<R>, Either<C, A>, Either<C, B>> ReForgetP.Instance.right(App2<ReForgetP.Mu<R>, A, B> input) <A,B, C> App2 <ReForgetP.Mu<R>, Either<C, A>, Either<C, B>> ReForgetP.Instance.right(App2<ReForgetP.Mu<R>, A, B> input) Methods in com.mojang.datafixers.optics with parameters of type EitherModifier and TypeMethodDescriptionstatic <R,A, B> ReForgetC <R, A, B> Optics.reForgetC(String name, Either<Function<R, B>, BiFunction<A, R, B>> either) Method parameters in com.mojang.datafixers.optics with type arguments of type EitherModifier and TypeMethodDescriptionstatic <S,T, A, B> Affine <S, T, A, B> Optics.affine(Function<S, Either<T, A>> preview, BiFunction<B, S, T> build) static <R,A, B> ForgetE <R, A, B> static <S,T, A, B> Prism <S, T, A, B> static <R,A, B> ReForgetE <R, A, B> static <R,A, B> ReForgetEP <R, A, B> Optics.reForgetEP(String name, Function<Either<A, Pair<A, R>>, B> function) -
Uses of Either in com.mojang.datafixers.optics.profunctors
Methods in com.mojang.datafixers.optics.profunctors that return types with arguments of type EitherModifier and TypeMethodDescriptionMethod parameters in com.mojang.datafixers.optics.profunctors with type arguments of type EitherModifier and TypeMethodDescription -
Uses of Either in com.mojang.datafixers.types
Methods in com.mojang.datafixers.types that return EitherModifier and TypeMethodDescription<FT,FR> Either <TypedOptic<A, ?, FT, FR>, Type.FieldNotFoundException> Type.findType(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<A, ?, FT, FR>, Type.FieldNotFoundException> Type.findTypeCached(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<A, ?, FT, FR>, Type.FieldNotFoundException> Type.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <S> Either<TypedOptic<S, ?, FT, FR>, Type.FieldNotFoundException> -
Uses of Either in com.mojang.datafixers.types.families
Methods in com.mojang.datafixers.types.families that return EitherModifier and TypeMethodDescription<A,B> Either <TypedOptic<?, ?, A, B>, Type.FieldNotFoundException> RecursiveTypeFamily.findType(int index, Type<A> aType, Type<B> bType, Type.TypeMatcher<A, B> matcher, boolean recurse) private <S,T, A, B> Either <TypedOptic<?, ?, A, B>, Type.FieldNotFoundException> RecursiveTypeFamily.mkSimpleOptic(RecursivePoint.RecursivePointType<S> sType, RecursivePoint.RecursivePointType<T> tType, Type<A> aType, Type<B> bType, Type.TypeMatcher<A, B> matcher) -
Uses of Either in com.mojang.datafixers.types.templates
Subclasses with type arguments of type Either in com.mojang.datafixers.types.templatesMethods in com.mojang.datafixers.types.templates that return EitherModifier and TypeMethodDescriptionprivate <FT,K2, FR> Either <TypedOptic<List<Pair<K, V>>, ?, FT, FR>, Type.FieldNotFoundException> CompoundList.CompoundListType.capLeft(TypedOptic<K, K2, FT, FR> optic) private <FT,F2, FR> Either <TypedOptic<Pair<F, G>, ?, FT, FR>, Type.FieldNotFoundException> Product.ProductType.capLeft(TypedOptic<F, F2, FT, FR> optic) <FT,FR> Either <TypeTemplate, Type.FieldNotFoundException> Check.findFieldOrType(int index, String name, Type<FT> type, Type<FR> resultType) <FT,FR> Either <TypeTemplate, Type.FieldNotFoundException> CompoundList.findFieldOrType(int index, String name, Type<FT> type, Type<FR> resultType) <FT,FR> Either <TypeTemplate, Type.FieldNotFoundException> Const.findFieldOrType(int index, String name, Type<FT> type, Type<FR> resultType) <FT,FR> Either <TypeTemplate, Type.FieldNotFoundException> Hook.findFieldOrType(int index, String name, Type<FT> type, Type<FR> resultType) <FT,FR> Either <TypeTemplate, Type.FieldNotFoundException> List.findFieldOrType(int index, String name, Type<FT> type, Type<FR> resultType) <FT,FR> Either <TypeTemplate, Type.FieldNotFoundException> Named.findFieldOrType(int index, String name, Type<FT> type, Type<FR> resultType) <FT,FR> Either <TypeTemplate, Type.FieldNotFoundException> Product.findFieldOrType(int index, String name, Type<FT> type, Type<FR> resultType) <FT,FR> Either <TypeTemplate, Type.FieldNotFoundException> RecursivePoint.findFieldOrType(int index, String name, Type<FT> type, Type<FR> resultType) <FT,FR> Either <TypeTemplate, Type.FieldNotFoundException> Sum.findFieldOrType(int index, String name, Type<FT> type, Type<FR> resultType) <FT,FR> Either <TypeTemplate, Type.FieldNotFoundException> Tag.findFieldOrType(int index, String name, Type<FT> type, Type<FR> resultType) TaggedChoice.findFieldOrType(int index, String name, Type<A> type, Type<B> resultType) TypeTemplate.findFieldOrType(int index, String name, Type<A> type, Type<B> resultType) returned optic will accept templateinvalid input: '<'family> with the input template, and will return the same with the returned template (template, optic) = Left(result) this.apply(family).apply(index) == optic.sType template.apply(family).apply(index) == optic.tType <FT,FR> Either <TypedOptic<A, ?, FT, FR>, Type.FieldNotFoundException> Check.CheckType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<List<Pair<K, V>>, ?, FT, FR>, Type.FieldNotFoundException> CompoundList.CompoundListType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<A, ?, FT, FR>, Type.FieldNotFoundException> Hook.HookType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<List<A>, ?, FT, FR>, Type.FieldNotFoundException> List.ListType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<Pair<String, A>, ?, FT, FR>, Type.FieldNotFoundException> Named.NamedType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<Pair<F, G>, ?, FT, FR>, Type.FieldNotFoundException> Product.ProductType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<A, ?, FT, FR>, Type.FieldNotFoundException> RecursivePoint.RecursivePointType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<Either<F, G>, ?, FT, FR>, Type.FieldNotFoundException> Sum.SumType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<A, ?, FT, FR>, Type.FieldNotFoundException> Tag.TagType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) <FT,FR> Either <TypedOptic<Pair<K, ?>, ?, FT, FR>, Type.FieldNotFoundException> TaggedChoice.TaggedChoiceType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) Methods in com.mojang.datafixers.types.templates that return types with arguments of type EitherModifier and TypeMethodDescriptionRewriteResult<Either<F, G>, ?> Sum.SumType.all(TypeRewriteRule rule, boolean recurse, boolean checkIndex) Sum.SumType.buildCodec()private <FT,FR, F2> TypedOptic <Either<F, G>, ?, FT, FR> Sum.SumType.capLeft(TypedOptic<F, F2, FT, FR> optic) private <FT,FR, G2> TypedOptic <Either<F, G>, ?, FT, FR> Sum.SumType.capRight(TypedOptic<G, G2, FT, FR> optic) <FT,FR> Either <TypedOptic<Either<F, G>, ?, FT, FR>, Type.FieldNotFoundException> Sum.SumType.findTypeInChildren(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) private static <F,G, F2> RewriteResult <Either<F, G>, Either<F2, G>> Sum.SumType.fixLeft(Type<Either<F, G>> type, Type<F> first, Type<G> second, RewriteResult<F, F2> view) private static <F,G, F2> RewriteResult <Either<F, G>, Either<F2, G>> Sum.SumType.fixLeft(Type<Either<F, G>> type, Type<F> first, Type<G> second, RewriteResult<F, F2> view) private static <F,G, G2> RewriteResult <Either<F, G>, Either<F, G2>> Sum.SumType.fixRight(Type<Either<F, G>> type, Type<F> first, Type<G> second, RewriteResult<G, G2> view) private static <F,G, G2> RewriteResult <Either<F, G>, Either<F, G2>> Sum.SumType.fixRight(Type<Either<F, G>> type, Type<F> first, Type<G> second, RewriteResult<G, G2> view) private static <A,B, LS, RS, LT, RT>
TypedOptic<Either<LS, RS>, Either<LT, RT>, A, B> Sum.SumType.mergeOptics(TypedOptic<LS, LT, A, B> lo, TypedOptic<RS, RT, A, B> ro) private static <A,B, LS, RS, LT, RT>
TypedOptic<Either<LS, RS>, Either<LT, RT>, A, B> Sum.SumType.mergeOptics(TypedOptic<LS, LT, A, B> lo, TypedOptic<RS, RT, A, B> ro) <F2,G2> RewriteResult <Either<F, G>, ?> Sum.SumType.mergeViews(RewriteResult<F, F2> leftView, RewriteResult<G, G2> rightView) Optional<RewriteResult<Either<F, G>, ?>> Sum.SumType.one(TypeRewriteRule rule) Sum.SumType.point(DynamicOps<?> ops) Method parameters in com.mojang.datafixers.types.templates with type arguments of type EitherModifier and TypeMethodDescriptionprivate static <F,G, F2> RewriteResult <Either<F, G>, Either<F2, G>> Sum.SumType.fixLeft(Type<Either<F, G>> type, Type<F> first, Type<G> second, RewriteResult<F, F2> view) private static <F,G, G2> RewriteResult <Either<F, G>, Either<F, G2>> Sum.SumType.fixRight(Type<Either<F, G>> type, Type<F> first, Type<G> second, RewriteResult<G, G2> view) -
Uses of Either in com.mojang.datafixers.util
Subclasses of Either in com.mojang.datafixers.utilModifier and TypeClassDescriptionprivate static final classEither.Left<L,R> private static final classEither.Right<L,R> Methods in com.mojang.datafixers.util that return EitherModifier and TypeMethodDescriptionstatic <L,R> Either <L, R> Either.left(L value) <C,D> Either <C, D> abstract <C,D> Either <C, D> <C,D> Either <C, D> static <L,R> Either <L, R> Either.right(R value) Either.swap()static <L,R> Either <L, R> Methods in com.mojang.datafixers.util with parameters of type EitherModifier and TypeMethodDescriptionstatic <U> UMethod parameters in com.mojang.datafixers.util with type arguments of type Either -
Uses of Either in com.mojang.realmsclient.gui.screens
Methods in com.mojang.realmsclient.gui.screens that return EitherModifier and TypeMethodDescriptionprivate Either<WorldTemplatePaginatedList, Exception> RealmsSelectWorldTemplateScreen.fetchTemplates(WorldTemplatePaginatedList paginatedList, RealmsClient client) -
Uses of Either in com.mojang.realmsclient.gui.task
Fields in com.mojang.realmsclient.gui.task declared as EitherModifier and TypeFieldDescriptionDataFetcher.ComputationResult.valueThe field for thevaluerecord component.Methods in com.mojang.realmsclient.gui.task that return EitherModifier and TypeMethodDescriptionDataFetcher.ComputationResult.value()Returns the value of thevaluerecord component.Constructors in com.mojang.realmsclient.gui.task with parameters of type EitherModifierConstructorDescriptionprivateComputationResult(Either<T, Exception> value, long time) Creates an instance of aComputationResultrecord class. -
Uses of Either in com.mojang.serialization
Methods in com.mojang.serialization that return types with arguments of type Either -
Uses of Either in com.mojang.serialization.codecs
Subclasses with type arguments of type Either in com.mojang.serialization.codecsClasses in com.mojang.serialization.codecs that implement interfaces with type arguments of type EitherMethods in com.mojang.serialization.codecs that return types with arguments of type EitherModifier and TypeMethodDescription<T> DataResult<Pair<Either<F, S>, T>> EitherCodec.decode(DynamicOps<T> ops, T input) <T> DataResult<Either<F, S>> EitherMapCodec.decode(DynamicOps<T> ops, MapLike<T> input) <T> DataResult<Pair<Either<F, S>, T>> XorCodec.decode(DynamicOps<T> ops, T input) Methods in com.mojang.serialization.codecs with parameters of type EitherModifier and TypeMethodDescription<T> DataResult<T> EitherCodec.encode(Either<F, S> input, DynamicOps<T> ops, T prefix) <T> RecordBuilder<T> EitherMapCodec.encode(Either<F, S> input, DynamicOps<T> ops, RecordBuilder<T> prefix) <T> DataResult<T> XorCodec.encode(Either<F, S> input, DynamicOps<T> ops, T prefix) -
Uses of Either in net.minecraft.client.gui
Method parameters in net.minecraft.client.gui with type arguments of type EitherModifier and TypeMethodDescriptionvoidGuiGraphicsExtractor.setComponentTooltipFromElementsForNextFrame(Font font, List<Either<FormattedText, TooltipComponent>> elements, int mouseX, int mouseY, ItemStack stack) voidGuiGraphicsExtractor.setComponentTooltipFromElementsForNextFrame(Font font, List<Either<FormattedText, TooltipComponent>> elements, int mouseX, int mouseY, ItemStack stack, @Nullable Identifier backgroundTexture) -
Uses of Either in net.minecraft.client.gui.font
Fields in net.minecraft.client.gui.font declared as EitherModifier and TypeFieldDescriptionprivate final Either<CompletableFuture<Optional<GlyphProvider>>, Identifier> FontManager.BuilderResult.resultThe field for theresultrecord component.Methods in net.minecraft.client.gui.font that return EitherModifier and TypeMethodDescriptionFontManager.BuilderResult.result()Returns the value of theresultrecord component.Constructors in net.minecraft.client.gui.font with parameters of type EitherModifierConstructorDescriptionprivateBuilderResult(FontManager.BuilderId id, FontOption.Filter filter, Either<CompletableFuture<Optional<GlyphProvider>>, Identifier> result) Creates an instance of aBuilderResultrecord class. -
Uses of Either in net.minecraft.client.gui.font.providers
Methods in net.minecraft.client.gui.font.providers that return Either -
Uses of Either in net.minecraft.client.multiplayer.chat.report
Methods in net.minecraft.client.multiplayer.chat.report that return EitherModifier and TypeMethodDescriptionChatReport.Builder.build(ReportingContext reportingContext) NameReport.Builder.build(ReportingContext reportingContext) abstract Either<Report.Result, Report.CannotBuildReason> Report.Builder.build(ReportingContext reportingContext) SkinReport.Builder.build(ReportingContext reportingContext) -
Uses of Either in net.minecraft.client.renderer.block.dispatch
Fields in net.minecraft.client.renderer.block.dispatch with type parameters of type EitherModifier and TypeFieldDescriptionstatic final Codec<Either<CustomUnbakedBlockStateModel, SingleVariant.Unbaked>> BlockStateModel.Unbaked.SINGLE_MODEL_CODECstatic final Codec<Weighted<Either<CustomUnbakedBlockStateModel, SingleVariant.Unbaked>>> BlockStateModel.Unbaked.WEIGHTED_MODEL_CODEC -
Uses of Either in net.minecraft.client.waypoints
Fields in net.minecraft.client.waypoints with type parameters of type Either -
Uses of Either in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return EitherModifier and TypeMethodDescriptionResourceOrTagArgument.ResourceResult.unwrap()ResourceOrTagArgument.Result.unwrap()ResourceOrTagArgument.TagResult.unwrap()Either<ResourceKey<T>, TagKey<T>> ResourceOrTagKeyArgument.ResourceResult.unwrap()Either<ResourceKey<T>, TagKey<T>> ResourceOrTagKeyArgument.Result.unwrap()Either<ResourceKey<T>, TagKey<T>> ResourceOrTagKeyArgument.TagResult.unwrap() -
Uses of Either in net.minecraft.commands.arguments.blocks
Methods in net.minecraft.commands.arguments.blocks that return EitherModifier and TypeMethodDescriptionBlockStateParser.parseForTesting(HolderLookup<Block> blocks, StringReader reader, boolean allowNbt) BlockStateParser.parseForTesting(HolderLookup<Block> blocks, String value, boolean allowNbt) -
Uses of Either in net.minecraft.commands.arguments.item
Methods in net.minecraft.commands.arguments.item that return types with arguments of type EitherModifier and TypeMethodDescriptionstatic Pair<Identifier, Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> FunctionArgument.getFunctionOrTag(CommandContext<CommandSourceStack> context, String name) Pair<Identifier, Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> FunctionArgument.Result.unwrap(CommandContext<CommandSourceStack> context) -
Uses of Either in net.minecraft.core
Methods in net.minecraft.core that return Either -
Uses of Either in net.minecraft.core.component.predicates
Methods in net.minecraft.core.component.predicates that return EitherModifier and TypeMethodDescriptionprivate static <T extends DataComponentPredicate.Type<?>>
Either<T, DataComponentType<?>> DataComponentPredicate.Type.unpackType(T type) Methods in net.minecraft.core.component.predicates with parameters of type EitherModifier and TypeMethodDescriptionprivate static DataComponentPredicate.Type<?> DataComponentPredicate.Type.copyOrCreateType(Either<DataComponentPredicate.Type<?>, DataComponentType<?>> concreteTypeOrComponent) -
Uses of Either in net.minecraft.network
Methods in net.minecraft.network that return EitherModifier and TypeMethodDescription<L,R> Either <L, R> FriendlyByteBuf.readEither(StreamDecoder<? super FriendlyByteBuf, L> leftReader, StreamDecoder<? super FriendlyByteBuf, R> rightReader) Methods in net.minecraft.network with parameters of type EitherModifier and TypeMethodDescription<L,R> void FriendlyByteBuf.writeEither(Either<L, R> value, StreamEncoder<? super FriendlyByteBuf, L> leftWriter, StreamEncoder<? super FriendlyByteBuf, R> rightWriter) -
Uses of Either in net.minecraft.network.chat.contents
Fields in net.minecraft.network.chat.contents declared as EitherModifier and TypeFieldDescriptionprivate final Either<CompilableString<EntitySelector>, String> ScoreContents.nameThe field for thenamerecord component.Methods in net.minecraft.network.chat.contents that return EitherModifier and TypeMethodDescriptionScoreContents.name()Returns the value of thenamerecord component.Constructors in net.minecraft.network.chat.contents with parameters of type EitherModifierConstructorDescriptionScoreContents(Either<CompilableString<EntitySelector>, String> name, String objective) Creates an instance of aScoreContentsrecord class. -
Uses of Either in net.minecraft.network.codec
Methods in net.minecraft.network.codec that return types with arguments of type EitherModifier and TypeMethodDescriptionstatic <B extends io.netty.buffer.ByteBuf, L, R>
StreamCodec<B, Either<L, R>> ByteBufCodecs.either(StreamCodec<? super B, L> leftCodec, StreamCodec<? super B, R> rightCodec) -
Uses of Either in net.minecraft.resources
Fields in net.minecraft.resources declared as EitherModifier and TypeFieldDescriptionRegistryLoadTask.PendingRegistration.valueThe field for thevaluerecord component.Fields in net.minecraft.resources with type parameters of type EitherModifier and TypeFieldDescriptionHolderSetCodec.combinedCodecHolderSetCodec.combinedCodecHolderSetCodec.registryAwareCodecMethods in net.minecraft.resources that return EitherModifier and TypeMethodDescriptionRegistryLoadTask.PendingRegistration.findAndLoadFromResource(Decoder<T> elementDecoder, RegistryOps<com.google.gson.JsonElement> ops, ResourceKey<T> elementKey, FileToIdConverter converter, ResourceProvider resourceProvider) RegistryLoadTask.PendingRegistration.loadFromNetwork(Decoder<T> elementDecoder, RegistryOps<Tag> ops, ResourceKey<T> elementKey, Tag contents) RegistryLoadTask.PendingRegistration.loadFromResource(Decoder<T> elementDecoder, RegistryOps<com.google.gson.JsonElement> ops, ResourceKey<T> elementKey, Resource thunk) RegistryLoadTask.PendingRegistration.value()Returns the value of thevaluerecord component.Constructors in net.minecraft.resources with parameters of type EitherModifierConstructorDescriptionprotectedPendingRegistration(ResourceKey<T> key, Either<T, Exception> value, RegistrationInfo registrationInfo) Creates an instance of aPendingRegistrationrecord class. -
Uses of Either in net.minecraft.server
Fields in net.minecraft.server declared as EitherModifier and TypeFieldDescriptionprivate final Either<ServerLinks.KnownLinkType, Component> ServerLinks.Entry.typeThe field for thetyperecord component.private final Either<ServerLinks.KnownLinkType, Component> ServerLinks.UntrustedEntry.typeThe field for thetyperecord component.Fields in net.minecraft.server with type parameters of type EitherModifier and TypeFieldDescriptionstatic final StreamCodec<io.netty.buffer.ByteBuf, Either<ServerLinks.KnownLinkType, Component>> ServerLinks.TYPE_STREAM_CODECMethods in net.minecraft.server that return EitherModifier and TypeMethodDescriptionServerLinks.Entry.type()Returns the value of thetyperecord component.ServerLinks.UntrustedEntry.type()Returns the value of thetyperecord component.Constructors in net.minecraft.server with parameters of type EitherModifierConstructorDescriptionEntry(Either<ServerLinks.KnownLinkType, Component> type, URI link) Creates an instance of aEntryrecord class.UntrustedEntry(Either<ServerLinks.KnownLinkType, Component> type, String link) Creates an instance of aUntrustedEntryrecord class. -
Uses of Either in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return EitherModifier and TypeMethodDescriptionstatic Either<Integer, CommandSyntaxException> static Either<Integer, CommandSyntaxException> FillBiomeCommand.fill(ServerLevel level, BlockPos rawFrom, BlockPos rawTo, Holder<Biome> biome, Predicate<Holder<Biome>> filter, Consumer<Supplier<Component>> successMessageConsumer) Method parameters in net.minecraft.server.commands with type arguments of type EitherModifier and TypeMethodDescriptionprivate static intScheduleCommand.schedule(CommandSourceStack source, Pair<Identifier, Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> callback, int time, boolean replace) -
Uses of Either in net.minecraft.server.jsonrpc.api
Fields in net.minecraft.server.jsonrpc.api with type parameters of type Either -
Uses of Either in net.minecraft.server.level
Methods in net.minecraft.server.level that return Either -
Uses of Either in net.minecraft.server.packs
Fields in net.minecraft.server.packs declared as EitherModifier and TypeFieldDescriptionprivate final Either<String, DownloadQueue.FileInfoEntry> DownloadQueue.LogEntry.errorOrFileInfoThe field for theerrorOrFileInforecord component.Methods in net.minecraft.server.packs that return EitherModifier and TypeMethodDescriptionDownloadQueue.LogEntry.errorOrFileInfo()Returns the value of theerrorOrFileInforecord component.private Either<String, DownloadQueue.FileInfoEntry> DownloadQueue.getFileInfo(Path downloadedFile) Constructors in net.minecraft.server.packs with parameters of type Either -
Uses of Either in net.minecraft.server.players
Methods in net.minecraft.server.players with parameters of type EitherModifier and TypeMethodDescriptiondefault Optional<GameProfile> ProfileResolver.fetchByNameOrId(Either<String, UUID> nameOrId) -
Uses of Either in net.minecraft.tags
Methods in net.minecraft.tags that return EitherModifier and TypeMethodDescriptionprivate Either<List<TagLoader.EntryWithSource>, List<T>> TagLoader.tryBuildTag(TagEntry.Lookup<T> lookup, List<TagLoader.EntryWithSource> entries) -
Uses of Either in net.minecraft.util.datafix.fixes
Methods in net.minecraft.util.datafix.fixes that return EitherModifier and TypeMethodDescriptionEquipmentFormatFix.getItemFromList(int index, List<ItemStack> items, Predicate<ItemStack> isPlaceholder) Methods in net.minecraft.util.datafix.fixes that return types with arguments of type EitherModifier and TypeMethodDescriptionprotected static Type<? extends Pair<? extends Either<? extends Pair<? extends Either<?, Unit>, ? extends Pair<? extends Either<? extends List<? extends Pair<? extends Either<?, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>> protected static Type<? extends Pair<? extends Either<? extends Pair<? extends Either<?, Unit>, ? extends Pair<? extends Either<? extends List<? extends Pair<? extends Either<?, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>> protected static Type<? extends Pair<? extends Either<? extends Pair<? extends Either<?, Unit>, ? extends Pair<? extends Either<? extends List<? extends Pair<? extends Either<?, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>> protected static Type<? extends Pair<? extends Either<? extends Pair<? extends Either<?, Unit>, ? extends Pair<? extends Either<? extends List<? extends Pair<? extends Either<?, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>>, Unit>, Dynamic<?>>> MissingDimensionFix.optionalFields(String name, Type<A> type) MissingDimensionFix.optionalFields(String name1, Type<A1> type1, String name2, Type<A2> type2) MissingDimensionFix.optionalFields(String name1, Type<A1> type1, String name2, Type<A2> type2) Methods in net.minecraft.util.datafix.fixes with parameters of type EitherModifier and TypeMethodDescriptionprivate static booleanEquipmentFormatFix.areAllEmpty(Either<?, Unit>... fields) Method parameters in net.minecraft.util.datafix.fixes with type arguments of type EitherModifier and TypeMethodDescriptionprivate TypeRewriteRuleChestedHorsesInventoryZeroIndexingFix.horseLikeInventoryIndexingFixer(OpticFinder<Pair<String, Pair<Either<Pair<String, String>, Unit>, Pair<Either<?, Unit>, Dynamic<?>>>>> itemStackFinder, Type<?> schema, String horseId) private TypeRewriteRuleChestedHorsesInventoryZeroIndexingFix.horseLikeInventoryIndexingFixer(OpticFinder<Pair<String, Pair<Either<Pair<String, String>, Unit>, Pair<Either<?, Unit>, Dynamic<?>>>>> itemStackFinder, Type<?> schema, String horseId) -
Uses of Either in net.minecraft.util.valueproviders
Fields in net.minecraft.util.valueproviders with type parameters of type EitherModifier and TypeFieldDescriptionprivate static final Codec<Either<Float, FloatProvider>> FloatProviders.CONSTANT_OR_DISPATCH_CODECprivate static final Codec<Either<Integer, IntProvider>> IntProviders.CONSTANT_OR_DISPATCH_CODEC -
Uses of Either in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as EitherModifier and TypeFieldDescriptionLeashable.LeashData.delayedLeashInfoprivate Either<UUID, StoredEntityType> EntityReference.entityConstructors in net.minecraft.world.entity with parameters of type Either -
Uses of Either in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player that return Either -
Uses of Either in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile that return EitherModifier and TypeMethodDescriptionstatic Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity attacker, AttackRange attackRange, Predicate<Entity> matching, ClipContext.Block blockClipType) private static Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity source, Vec3 origin, Vec3 from, Predicate<Entity> matching, Vec3 to, float entityMargin, ClipContext.Block clipType) -
Uses of Either in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as EitherModifier and TypeFieldDescriptionprivate final Either<GameProfile, ResolvableProfile.Partial> ResolvableProfile.Static.contentsResolvableProfile.Dynamic.nameOrIdMethods in net.minecraft.world.item.component that return EitherModifier and TypeMethodDescriptionprotected Either<GameProfile, ResolvableProfile.Partial> ResolvableProfile.Dynamic.unpack()protected Either<GameProfile, ResolvableProfile.Partial> ResolvableProfile.Static.unpack()protected abstract Either<GameProfile, ResolvableProfile.Partial> ResolvableProfile.unpack()Methods in net.minecraft.world.item.component with parameters of type EitherModifier and TypeMethodDescriptionprivate static ResolvableProfileResolvableProfile.create(Either<GameProfile, ResolvableProfile.Partial> value, PlayerSkin.Patch patch) Constructors in net.minecraft.world.item.component with parameters of type EitherModifierConstructorDescriptionprivateDynamic(Either<String, UUID> nameOrId, PlayerSkin.Patch skinPatch) privateStatic(Either<GameProfile, ResolvableProfile.Partial> contents, PlayerSkin.Patch skinPatch) -
Uses of Either in net.minecraft.world.level
Methods in net.minecraft.world.level that return Either -
Uses of Either in net.minecraft.world.level.biome
Fields in net.minecraft.world.level.biome declared as EitherModifier and TypeFieldDescriptionprivate final Either<Climate.ParameterList<Holder<Biome>>, Holder<MultiNoiseBiomeSourceParameterList>> MultiNoiseBiomeSource.parametersConstructors in net.minecraft.world.level.biome with parameters of type EitherModifierConstructorDescriptionprivateMultiNoiseBiomeSource(Either<Climate.ParameterList<Holder<Biome>>, Holder<MultiNoiseBiomeSourceParameterList>> parameters) -
Uses of Either in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as Either -
Uses of Either in net.minecraft.world.level.block.entity.trialspawner
Methods in net.minecraft.world.level.block.entity.trialspawner that return Either -
Uses of Either in net.minecraft.world.level.gameevent
Fields in net.minecraft.world.level.gameevent declared as EitherFields in net.minecraft.world.level.gameevent with type parameters of type EitherConstructors in net.minecraft.world.level.gameevent with parameters of type EitherModifierConstructorDescriptionprivateConstructor parameters in net.minecraft.world.level.gameevent with type arguments of type Either -
Uses of Either in net.minecraft.world.level.levelgen
Methods in net.minecraft.world.level.levelgen that return EitherModifier and TypeMethodDescriptionprivate static Either<VerticalAnchor.Absolute, Either<VerticalAnchor.AboveBottom, VerticalAnchor.BelowTop>> VerticalAnchor.split(VerticalAnchor anchor) Methods in net.minecraft.world.level.levelgen that return types with arguments of type EitherModifier and TypeMethodDescriptionprivate static Either<VerticalAnchor.Absolute, Either<VerticalAnchor.AboveBottom, VerticalAnchor.BelowTop>> VerticalAnchor.split(VerticalAnchor anchor) Methods in net.minecraft.world.level.levelgen with parameters of type EitherModifier and TypeMethodDescriptionprivate static VerticalAnchorVerticalAnchor.merge(Either<VerticalAnchor.Absolute, Either<VerticalAnchor.AboveBottom, VerticalAnchor.BelowTop>> either) Method parameters in net.minecraft.world.level.levelgen with type arguments of type EitherModifier and TypeMethodDescriptionprivate static VerticalAnchorVerticalAnchor.merge(Either<VerticalAnchor.Absolute, Either<VerticalAnchor.AboveBottom, VerticalAnchor.BelowTop>> either) -
Uses of Either in net.minecraft.world.level.levelgen.heightproviders
Fields in net.minecraft.world.level.levelgen.heightproviders with type parameters of type EitherModifier and TypeFieldDescriptionprivate static final Codec<Either<VerticalAnchor, HeightProvider>> HeightProvider.CONSTANT_OR_DISPATCH_CODEC -
Uses of Either in net.minecraft.world.level.levelgen.structure
Fields in net.minecraft.world.level.levelgen.structure declared as EitherModifier and TypeFieldDescriptionprivate final Either<Consumer<StructurePiecesBuilder>, StructurePiecesBuilder> Structure.GenerationStub.generatorThe field for thegeneratorrecord component.Methods in net.minecraft.world.level.levelgen.structure that return EitherModifier and TypeMethodDescriptionStructure.GenerationStub.generator()Returns the value of thegeneratorrecord component.Constructors in net.minecraft.world.level.levelgen.structure with parameters of type EitherModifierConstructorDescriptionGenerationStub(BlockPos position, Either<Consumer<StructurePiecesBuilder>, StructurePiecesBuilder> generator) Creates an instance of aGenerationStubrecord class. -
Uses of Either in net.minecraft.world.level.levelgen.structure.pools
Fields in net.minecraft.world.level.levelgen.structure.pools declared as EitherModifier and TypeFieldDescriptionprotected final Either<Identifier, StructureTemplate> SinglePoolElement.templateFields in net.minecraft.world.level.levelgen.structure.pools with type parameters of type EitherModifier and TypeFieldDescriptionprivate static final Codec<Either<Identifier, StructureTemplate>> SinglePoolElement.TEMPLATE_CODECMethods in net.minecraft.world.level.levelgen.structure.pools that return types with arguments of type EitherModifier and TypeMethodDescriptionprotected static <E extends SinglePoolElement>
RecordCodecBuilder<E, Either<Identifier, StructureTemplate>> SinglePoolElement.templateCodec()Methods in net.minecraft.world.level.levelgen.structure.pools with parameters of type EitherModifier and TypeMethodDescriptionprivate static <T> DataResult<T> SinglePoolElement.encodeTemplate(Either<Identifier, StructureTemplate> template, DynamicOps<T> ops, T prefix) Constructors in net.minecraft.world.level.levelgen.structure.pools with parameters of type EitherModifierConstructorDescriptionprotectedLegacySinglePoolElement(Either<Identifier, StructureTemplate> template, Holder<StructureProcessorList> processors, StructureTemplatePool.Projection projection, Optional<LiquidSettings> liquidSettings) protectedSinglePoolElement(Either<Identifier, StructureTemplate> template, Holder<StructureProcessorList> processors, StructureTemplatePool.Projection projection, Optional<LiquidSettings> overrideLiquidSettings) -
Uses of Either in net.minecraft.world.level.storage.loot.entries
Fields in net.minecraft.world.level.storage.loot.entries declared as EitherModifier and TypeFieldDescriptionprivate final Either<ResourceKey<LootTable>, LootTable> NestedLootTable.contentsConstructors in net.minecraft.world.level.storage.loot.entries with parameters of type EitherModifierConstructorDescriptionprivateNestedLootTable(Either<ResourceKey<LootTable>, LootTable> contents, int weight, int quality, List<LootItemCondition> conditions, List<LootItemFunction> functions) -
Uses of Either in net.minecraft.world.waypoints
Fields in net.minecraft.world.waypoints declared as EitherFields in net.minecraft.world.waypoints with type parameters of type EitherModifier and TypeFieldDescriptionprivate final org.apache.commons.lang3.function.TriFunction<Either<UUID, String>, Waypoint.Icon, FriendlyByteBuf, TrackedWaypoint> TrackedWaypoint.Type.constructorMethods in net.minecraft.world.waypoints that return EitherConstructors in net.minecraft.world.waypoints with parameters of type EitherModifierConstructorDescriptionAzimuthWaypoint(Either<UUID, String> identifier, Waypoint.Icon icon, FriendlyByteBuf byteBuf) ChunkWaypoint(Either<UUID, String> identifier, Waypoint.Icon icon, FriendlyByteBuf byteBuf) privateEmptyWaypoint(Either<UUID, String> identifier, Waypoint.Icon icon, FriendlyByteBuf byteBuf) privateTrackedWaypoint(Either<UUID, String> identifier, Waypoint.Icon icon, TrackedWaypoint.Type type) Vec3iWaypoint(Either<UUID, String> identifier, Waypoint.Icon icon, FriendlyByteBuf byteBuf) Constructor parameters in net.minecraft.world.waypoints with type arguments of type EitherModifierConstructorDescriptionprivateType(org.apache.commons.lang3.function.TriFunction<Either<UUID, String>, Waypoint.Icon, FriendlyByteBuf, TrackedWaypoint> constructor) -
Uses of Either in net.neoforged.neoforge.client
Method parameters in net.neoforged.neoforge.client with type arguments of type EitherModifier and TypeMethodDescriptionstatic List<ClientTooltipComponent> ClientHooks.gatherTooltipComponentsFromElements(ItemStack stack, List<Either<FormattedText, TooltipComponent>> elements, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) -
Uses of Either in net.neoforged.neoforge.client.entity.animation.json
Methods in net.neoforged.neoforge.client.entity.animation.json with parameters of type EitherModifier and TypeMethodDescriptionprivate static KeyframeAnimationParser.constructKeyframe(float timestamp, Either<Pair<org.joml.Vector3fc, org.joml.Vector3fc>, org.joml.Vector3fc> target, AnimationChannel.Interpolation interpolation) -
Uses of Either in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event with type parameters of type EitherModifier and TypeFieldDescriptionprivate final List<Either<FormattedText, TooltipComponent>> RenderTooltipEvent.GatherComponents.tooltipElementsMethods in net.neoforged.neoforge.client.event that return types with arguments of type EitherModifier and TypeMethodDescriptionRenderTooltipEvent.GatherComponents.getTooltipElements()Returns the modifiable list of elements to be rendered on the tooltip.Constructor parameters in net.neoforged.neoforge.client.event with type arguments of type EitherModifierConstructorDescriptionGatherComponents(ItemStack itemStack, int screenWidth, int screenHeight, List<Either<FormattedText, TooltipComponent>> tooltipElements, int maxWidth) -
Uses of Either in net.neoforged.neoforge.client.model
Fields in net.neoforged.neoforge.client.model with type parameters of type EitherModifier and TypeFieldDescription(package private) final com.google.common.collect.ImmutableMap<String, Either<Identifier, UnbakedModel>> CompositeUnbakedGeometry.childrenMethod parameters in net.neoforged.neoforge.client.model with type arguments of type EitherModifier and TypeMethodDescriptionprivate static voidCompositeUnbakedModel.Loader.readChildren(com.google.gson.JsonObject jsonObject, String name, com.google.common.collect.ImmutableMap.Builder<String, Either<Identifier, UnbakedModel>> children, com.google.gson.JsonDeserializationContext context) Constructor parameters in net.neoforged.neoforge.client.model with type arguments of type EitherModifierConstructorDescriptionCompositeUnbakedGeometry(com.google.common.collect.ImmutableMap<String, Either<Identifier, UnbakedModel>> children) -
Uses of Either in net.neoforged.neoforge.client.model.block
Methods in net.neoforged.neoforge.client.model.block that return EitherModifier and TypeMethodDescriptionprivate static Either<CustomBlockModelDefinition, BlockStateModelDispatcher> BlockStateModelHooks.unpackDefinition(BlockStateModelDispatcher definition) Methods in net.neoforged.neoforge.client.model.block that return types with arguments of type EitherModifier and TypeMethodDescriptionBlockStateModelHooks.makeElementCodec()BlockStateModelHooks.makeSingleModelCodec()Methods in net.neoforged.neoforge.client.model.block with parameters of type EitherModifier and TypeMethodDescriptionprivate static BlockStateModelDispatcherBlockStateModelHooks.packDefinition(Either<CustomBlockModelDefinition, BlockStateModelDispatcher> definition) -
Uses of Either in net.neoforged.neoforge.client.model.generators.loaders
Fields in net.neoforged.neoforge.client.model.generators.loaders with type parameters of type EitherModifier and TypeFieldDescriptionprivate final Map<String, Either<Identifier, CompositeModelBuilder.InlineChild>> CompositeModelBuilder.childModels -
Uses of Either in net.neoforged.neoforge.common.data
Fields in net.neoforged.neoforge.common.data with type parameters of type EitherModifier and TypeFieldDescriptionprivate final Map<Either<TagKey<R>, ResourceKey<R>>, Optional<WithConditions<DataMapEntry<T>>>> DataMapProvider.Builder.values -
Uses of Either in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return EitherModifier and TypeMethodDescription@Nullable Either<BlockEntity, Entity> IOwnedSpawner.getOwner()Returns the block entity or entity which owns this spawner object. -
Uses of Either in net.neoforged.neoforge.common.util
Subclasses with type arguments of type Either in net.neoforged.neoforge.common.utilMethods in net.neoforged.neoforge.common.util that return types with arguments of type EitherModifier and TypeMethodDescription<T> DataResult<Either<F, S>> NeoForgeExtraCodecs.XorMapCodec.decode(DynamicOps<T> ops, MapLike<T> input) NeoForgeExtraCodecs.dispatchMapOrElse(Codec<A> typeCodec, Function<? super E, ? extends A> type, Function<? super A, ? extends MapCodec<? extends E>> codec, MapCodec<B> fallbackCodec) Map dispatch codec with an alternative.NeoForgeExtraCodecs.dispatchMapOrElse(String key, Codec<A> typeCodec, Function<? super E, ? extends A> type, Function<? super A, ? extends MapCodec<? extends E>> codec, MapCodec<B> fallbackCodec) Map dispatch codec with an alternative.Codec that matches exactly one out of two map codecs.Methods in net.neoforged.neoforge.common.util with parameters of type EitherModifier and TypeMethodDescription<T> RecordBuilder<T> NeoForgeExtraCodecs.XorMapCodec.encode(Either<F, S> input, DynamicOps<T> ops, RecordBuilder<T> prefix) -
Uses of Either in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event that return EitherModifier and TypeMethodDescriptionstatic Either<Player.BedSleepingProblem, Unit> EventHooks.canPlayerStartSleeping(ServerPlayer player, BlockPos pos, Either<Player.BedSleepingProblem, Unit> vanillaResult) Methods in net.neoforged.neoforge.event with parameters of type EitherModifier and TypeMethodDescriptionstatic Either<Player.BedSleepingProblem, Unit> EventHooks.canPlayerStartSleeping(ServerPlayer player, BlockPos pos, Either<Player.BedSleepingProblem, Unit> vanillaResult) -
Uses of Either in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as EitherModifier and TypeFieldDescriptionprivate final @Nullable Either<BlockEntity, Entity> FinalizeSpawnEvent.spawnerMethods in net.neoforged.neoforge.event.entity.living that return EitherModifier and TypeMethodDescription@Nullable Either<BlockEntity, Entity> FinalizeSpawnEvent.getSpawner()Retrieves the underlyingBlockEntityorEntitythat performed the spawn.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type EitherModifierConstructorDescriptionFinalizeSpawnEvent(Mob entity, ServerLevelAccessor level, double x, double y, double z, DifficultyInstance difficulty, EntitySpawnReason spawnType, @Nullable SpawnGroupData spawnData, @Nullable Either<BlockEntity, Entity> spawner) -
Uses of Either in net.neoforged.neoforge.registries
Methods in net.neoforged.neoforge.registries that return EitherModifier and TypeMethodDescriptionEither<ResourceKey<R>, R> DeferredHolder.unwrap()Returns anEither.left()containing the resource key of this holder.Methods in net.neoforged.neoforge.registries with parameters of type Either -
Uses of Either in net.neoforged.neoforge.registries.datamaps
Fields in net.neoforged.neoforge.registries.datamaps declared as EitherModifier and TypeFieldDescriptionprivate final Either<TagKey<R>, ResourceKey<R>> DataMapEntry.Removal.keyThe field for thekeyrecord component.Fields in net.neoforged.neoforge.registries.datamaps with type parameters of type EitherModifier and TypeFieldDescriptionprivate final Map<Either<TagKey<R>, ResourceKey<R>>, Optional<WithConditions<DataMapEntry<T>>>> DataMapFile.valuesThe field for thevaluesrecord component.Methods in net.neoforged.neoforge.registries.datamaps that return EitherModifier and TypeMethodDescriptionEither<TagKey<R>, ResourceKey<R>> DataMapEntry.Removal.key()Returns the value of thekeyrecord component.Methods in net.neoforged.neoforge.registries.datamaps that return types with arguments of type EitherModifier and TypeMethodDescriptionMap<Either<TagKey<R>, ResourceKey<R>>, Optional<WithConditions<DataMapEntry<T>>>> DataMapFile.values()Returns the value of thevaluesrecord component.Methods in net.neoforged.neoforge.registries.datamaps with parameters of type EitherModifier and TypeMethodDescriptionDataMapValueMerger.merge(Registry<R> registry, Either<TagKey<R>, ResourceKey<R>> first, T firstValue, Either<TagKey<R>, ResourceKey<R>> second, T secondValue) Merge two conflicting data map values.DataMapValueRemover.Default.remove(T value, Registry<R> registry, Either<TagKey<R>, ResourceKey<R>> source, R object) DataMapValueRemover.remove(T value, Registry<R> registry, Either<TagKey<R>, ResourceKey<R>> source, R object) Remove the entry specified in this remover from thevalue.Method parameters in net.neoforged.neoforge.registries.datamaps with type arguments of type EitherModifier and TypeMethodDescriptionstatic <T,R> Codec <DataMapEntry.Removal<T, R>> DataMapEntry.Removal.codec(Codec<Either<TagKey<R>, ResourceKey<R>>> tagOrValue, DataMapType<R, T> attachment) Constructors in net.neoforged.neoforge.registries.datamaps with parameters of type EitherModifierConstructorDescriptionprivateRemoval(Either<TagKey<R>, ResourceKey<R>> key, Optional<DataMapValueRemover<R, T>> remover) Creates an instance of aRemovalrecord class.Constructor parameters in net.neoforged.neoforge.registries.datamaps with type arguments of type EitherModifierConstructorDescriptionDataMapFile(boolean replace, Map<Either<TagKey<R>, ResourceKey<R>>, Optional<WithConditions<DataMapEntry<T>>>> values, List<DataMapEntry.Removal<T, R>> removals) Creates an instance of aDataMapFilerecord class. -
Uses of Either in net.neoforged.neoforge.registries.holdersets
Methods in net.neoforged.neoforge.registries.holdersets that return Either