Interface IBeeSpeciesType

All Superinterfaces:
IBreedingTrackerHandler, ISpeciesType<IBeeSpecies,IBee>

public interface IBeeSpeciesType extends ISpeciesType<IBeeSpecies,IBee>
  • Method Details

    • getBreedingTracker

      IApiaristTracker getBreedingTracker(net.minecraft.world.level.LevelAccessor level, @Nullable com.mojang.authlib.GameProfile profile)
      Description copied from interface: ISpeciesType
      Gets the player's breeding tracker for this species type.
      Specified by:
      getBreedingTracker in interface ISpeciesType<IBeeSpecies,IBee>
      Parameters:
      level - The world instance where the breeding tracker is stored.
      profile - The player whose breeding tracker should be returned.
      Returns:
      IApiaristTracker associated with the passed world.
    • getBeeEffect

      IBeeEffect getBeeEffect(net.minecraft.resources.ResourceLocation id)
      Returns:
      The bee effect registered with the given ID. Backs the bee_effect reference chromosome.
    • getActivityType

      IActivityType getActivityType(net.minecraft.resources.ResourceLocation id)
      Returns:
      The activity type registered with the given ID. Backs the activity reference chromosome.
    • getJubilance

      IBeeJubilance getJubilance(net.minecraft.resources.ResourceLocation id)
      Returns:
      The bee jubilance registered with the given ID. Backs the jubilance reference chromosome.
    • getJubilanceSafe

      @Nullable IBeeJubilance getJubilanceSafe(net.minecraft.resources.ResourceLocation id)
      Returns:
      The bee jubilance registered with the given ID, or null if none is registered (graceful fallback variant).
    • isDrone

      boolean isDrone(net.minecraft.world.item.ItemStack stack)
      Returns:
      true if passed item is a drone. Equal to getLifeStage(ItemStack stack) == EnumBeeType.DRONE
    • isMated

      boolean isMated(net.minecraft.world.item.ItemStack stack)
      Returns:
      true if passed item is mated (i.e. a queen)
    • getEffectFactory

      IBeeEffectFactory getEffectFactory()
      Returns:
      The factory for the bee effects that Forestry can load from a datapack
    • getJubilanceFactory

      IJubilanceFactory getJubilanceFactory()
      Returns:
      The factory for the bee jubilances that Forestry provides
    • createSpeciesProvider

      net.minecraft.data.DataProvider createSpeciesProvider(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries, Consumer<IApicultureRegistration> species)
      Creates a data provider that generates bee species JSON.
      Parameters:
      output - The pack output to generate into
      registries - The registries used to encode the species
      species - The action that registers the species to generate
      Returns:
      The data provider to add to the data generator
    • createEffectProvider

      net.minecraft.data.DataProvider createEffectProvider(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries, Map<net.minecraft.resources.ResourceLocation,IBeeEffect> effects)
      Creates a data provider that generates bee effect JSON. Each effect must override IBeeEffect.codec().
      Parameters:
      output - The pack output to generate into
      registries - The registries used to encode the effects
      effects - The effects to generate, by ID
      Returns:
      The data provider to add to the data generator
    • createJubilanceProvider

      net.minecraft.data.DataProvider createJubilanceProvider(net.minecraft.data.PackOutput output, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries, Map<net.minecraft.resources.ResourceLocation,IBeeJubilance> jubilances)
      Creates a data provider that generates bee jubilance JSON. Each jubilance must override IBeeJubilance.codec().
      Parameters:
      output - The pack output to generate into
      registries - The registries used to encode the jubilances
      jubilances - The jubilances to generate, by ID
      Returns:
      The data provider to add to the data generator