Interface IButterflySpeciesType

All Superinterfaces:
IBreedingTrackerHandler, ISpeciesType<IButterflySpecies,IButterfly>

public interface IButterflySpeciesType extends ISpeciesType<IButterflySpecies,IButterfly>
  • Method Details

    • getBreedingTracker

      IBreedingTracker 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<IButterflySpecies,IButterfly>
      Parameters:
      level - The world instance where the breeding tracker is stored.
      profile - The player whose breeding tracker should be returned.
      Returns:
      The breeding tracker for species of this type.
    • spawnButterflyInWorld

      net.minecraft.world.entity.Mob spawnButterflyInWorld(net.minecraft.world.level.Level level, IButterfly butterfly, double x, double y, double z)
      Spawns the given butterfly in the world.
      Returns:
      butterfly entity on success, null otherwise.
    • plantCocoon

      @Nullable net.minecraft.core.BlockPos plantCocoon(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos, IButterfly caterpillar, int age, boolean createNursery)
    • isMated

      boolean isMated(net.minecraft.world.item.ItemStack stack)
      Returns:
      true if passed item is mated.