Interface IVillagerTradeListingReference

All Superinterfaces:
ITradeListingReference
All Known Implementing Classes:
ExperimentalVillagerTradeListingReference, VillagerTradeListingReference

public interface IVillagerTradeListingReference extends ITradeListingReference
  • Method Details

    • codec

      static <REF extends IVillagerTradeListingReference> com.mojang.serialization.MapCodec<REF> codec(IVillagerTradeListingReference.Factory<REF> factory)
    • streamCodec

      static <REF extends IVillagerTradeListingReference> net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,REF> streamCodec(IVillagerTradeListingReference.Factory<REF> factory)
    • get

      default net.minecraft.world.entity.npc.VillagerTrades.ItemListing get()
      Specified by:
      get in interface ITradeListingReference
    • getAllListings

      Map<net.minecraft.world.entity.npc.VillagerProfession,it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.entity.npc.VillagerTrades.ItemListing[]>> getAllListings()
    • profession

      net.minecraft.world.entity.npc.VillagerProfession profession()
    • level

      int level()
    • index

      int index()