Uses of Enum Class
net.minecraft.server.ServerLinks.KnownLinkType
-
Uses of ServerLinks.KnownLinkType in net.minecraft.server
Modifier and TypeFieldDescriptionprivate static final IntFunction
<ServerLinks.KnownLinkType> ServerLinks.KnownLinkType.BY_ID
static final StreamCodec
<io.netty.buffer.ByteBuf, ServerLinks.KnownLinkType> ServerLinks.KnownLinkType.STREAM_CODEC
private final com.mojang.datafixers.util.Either
<ServerLinks.KnownLinkType, Component> ServerLinks.Entry.type
The field for thetype
record component.private final com.mojang.datafixers.util.Either
<ServerLinks.KnownLinkType, Component> ServerLinks.UntrustedEntry.type
The field for thetype
record component.static final StreamCodec
<io.netty.buffer.ByteBuf, com.mojang.datafixers.util.Either<ServerLinks.KnownLinkType, Component>> ServerLinks.TYPE_STREAM_CODEC
Modifier and TypeMethodDescriptionstatic ServerLinks.KnownLinkType
Returns the enum constant of this class with the specified name.static ServerLinks.KnownLinkType[]
ServerLinks.KnownLinkType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either
<ServerLinks.KnownLinkType, Component> ServerLinks.Entry.type()
Returns the value of thetype
record component.com.mojang.datafixers.util.Either
<ServerLinks.KnownLinkType, Component> ServerLinks.UntrustedEntry.type()
Returns the value of thetype
record component.Modifier and TypeMethodDescriptionServerLinks.findKnownType
(ServerLinks.KnownLinkType p_350409_) static ServerLinks.Entry
ServerLinks.Entry.knownType
(ServerLinks.KnownLinkType p_350698_, URI p_352076_) ModifierConstructorDescriptionEntry
(com.mojang.datafixers.util.Either<ServerLinks.KnownLinkType, Component> type, URI link) Creates an instance of aEntry
record class.UntrustedEntry
(com.mojang.datafixers.util.Either<ServerLinks.KnownLinkType, Component> type, String link) Creates an instance of aUntrustedEntry
record class.