Package com.petrolpark.core.trade
Interface IVillagerTradeListingReference
- All Superinterfaces:
ITradeListingReference
- All Known Implementing Classes:
ExperimentalVillagerTradeListingReference,VillagerTradeListingReference
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceNested classes/interfaces inherited from interface com.petrolpark.core.trade.ITradeListingReference
ITradeListingReference.Type -
Field Summary
Fields inherited from interface com.petrolpark.core.trade.ITradeListingReference
CODEC, FAILURE, TYPED_CODEC -
Method Summary
Modifier and TypeMethodDescriptionstatic <REF extends IVillagerTradeListingReference>
com.mojang.serialization.MapCodec<REF> codec(IVillagerTradeListingReference.Factory<REF> factory) default net.minecraft.world.entity.npc.VillagerTrades.ItemListingget()Map<net.minecraft.world.entity.npc.VillagerProfession, it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.world.entity.npc.VillagerTrades.ItemListing[]>> intindex()intlevel()net.minecraft.world.entity.npc.VillagerProfessionstatic <REF extends IVillagerTradeListingReference>
net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, REF> streamCodec(IVillagerTradeListingReference.Factory<REF> factory) Methods inherited from interface com.petrolpark.core.trade.ITradeListingReference
getType
-
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:
getin interfaceITradeListingReference
-
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()
-