Interface StringProvider

All Superinterfaces:
net.minecraft.world.level.storage.loot.LootContextUser
All Known Implementing Classes:
DirectStringProvider, NumberStringProvider

public interface StringProvider extends net.minecraft.world.level.storage.loot.LootContextUser
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<StringProvider>
     
    static final com.mojang.serialization.Codec<StringProvider>
    Use CODEC instead.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
    getString(net.minecraft.world.level.storage.loot.LootContext context)
     
     

    Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser

    getReferencedContextParams, validate
  • Field Details

    • TYPED_CODEC

      @Internal static final com.mojang.serialization.Codec<StringProvider> TYPED_CODEC
      Use CODEC instead.
    • CODEC

      static final com.mojang.serialization.Codec<StringProvider> CODEC
  • Method Details

    • getString

      net.minecraft.network.chat.Component getString(net.minecraft.world.level.storage.loot.LootContext context)
    • getStringProviderType

      StringProviderType getStringProviderType()