Class Shop

java.lang.Object
com.petrolpark.core.shop.Shop

public class Shop extends Object
  • Field Details

    • DIRECT_CODEC

      public static final com.mojang.serialization.Codec<Shop> DIRECT_CODEC
    • CODEC

      public static final com.mojang.serialization.Codec<net.minecraft.core.Holder<Shop>> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,net.minecraft.core.Holder<Shop>> STREAM_CODEC
    • translationKey

      protected final String translationKey
    • offerGeneratorEntries

      public final List<Shop.OfferGeneratorEntry> offerGeneratorEntries
    • globalOrderModifierEntries

      protected final List<ShopOrderModifierEntry> globalOrderModifierEntries
    • customerEntityTypes

      public final Optional<net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>> customerEntityTypes
  • Constructor Details

  • Method Details

    • getTranslationKey

      public String getTranslationKey()
    • getName

      public net.minecraft.network.chat.Component getName()
    • getOfferGeneratorEntries

      public List<Shop.OfferGeneratorEntry> getOfferGeneratorEntries()
    • getGlobalOrderModifierEntries

      public List<ShopOrderModifierEntry> getGlobalOrderModifierEntries()
    • getCustomerEntityTypes

      public Optional<net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>> getCustomerEntityTypes()
    • generateOffer

      public ShopOffer generateOffer(net.minecraft.world.level.storage.loot.LootContext context)
    • canServe

      public boolean canServe(net.minecraft.world.entity.Entity entity)