Interface ID


public interface ID
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<net.minecraft.resources.ResourceLocation>
     
    static final DataType<net.minecraft.resources.ResourceLocation>
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,net.minecraft.resources.ResourceLocation>
     
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.resources.ResourceLocation>
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static net.minecraft.resources.ResourceLocation
     
    static String
    idToString(net.minecraft.resources.ResourceLocation id)
     
    static net.minecraft.resources.ResourceLocation
    java(String path)
     
    static net.minecraft.resources.ResourceLocation
    mc(String path)
     
    static net.minecraft.resources.ResourceLocation
    parse(com.mojang.brigadier.StringReader reader)
     
    static com.mojang.brigadier.suggestion.SuggestionProvider<net.minecraft.commands.CommandSourceStack>
    registerSuggestionProvider(net.minecraft.resources.ResourceLocation id, Supplier<Iterable<net.minecraft.resources.ResourceLocation>> allIds)
     
    static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
    suggest(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Supplier<Iterable<net.minecraft.resources.ResourceLocation>> allIds)
     
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<net.minecraft.resources.ResourceLocation> CODEC
    • STREAM_CODEC

      static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.resources.ResourceLocation> STREAM_CODEC
    • DATA_TYPE

      static final DataType<net.minecraft.resources.ResourceLocation> DATA_TYPE
    • REGISTRY_STREAM_CODEC

      static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,net.minecraft.resources.ResourceLocation> REGISTRY_STREAM_CODEC
  • Method Details

    • mc

      static net.minecraft.resources.ResourceLocation mc(String path)
    • java

      static net.minecraft.resources.ResourceLocation java(String path)
    • idFromString

      static net.minecraft.resources.ResourceLocation idFromString(String string)
    • idToString

      static String idToString(net.minecraft.resources.ResourceLocation id)
    • parse

      static net.minecraft.resources.ResourceLocation parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • suggest

      static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, Supplier<Iterable<net.minecraft.resources.ResourceLocation>> allIds)
    • registerSuggestionProvider

      static com.mojang.brigadier.suggestion.SuggestionProvider<net.minecraft.commands.CommandSourceStack> registerSuggestionProvider(net.minecraft.resources.ResourceLocation id, Supplier<Iterable<net.minecraft.resources.ResourceLocation>> allIds)