Interface ItemIngredientModifier

All Superinterfaces:
IIngredientModifier<net.minecraft.world.item.ItemStack>, ITypelessIngredientModifier<net.minecraft.world.item.ItemStack>

public interface ItemIngredientModifier extends IIngredientModifier<net.minecraft.world.item.ItemStack>
  • Field Details

    • TYPED_CODEC

      static final com.mojang.serialization.Codec<IIngredientModifier<? super net.minecraft.world.item.ItemStack>> TYPED_CODEC
      Use instead.
    • CODEC

      static final com.mojang.serialization.Codec<IIngredientModifier<? super net.minecraft.world.item.ItemStack>> CODEC
    • STREAM_CODEC

      static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,IIngredientModifier<? super net.minecraft.world.item.ItemStack>> STREAM_CODEC
  • Method Details

    • test

      boolean test(net.minecraft.world.item.ItemStack stack)
      Specified by:
      test in interface ITypelessIngredientModifier<net.minecraft.world.item.ItemStack>
    • translate

      default net.minecraft.network.chat.Component translate(Object... translationArgs)
    • translateInverse

      default net.minecraft.network.chat.Component translateInverse(Object... translationArgs)
    • getType

      IngredientModifierType<net.minecraft.world.item.ItemStack> getType()
      Specified by:
      getType in interface IIngredientModifier<net.minecraft.world.item.ItemStack>