Interface SpawnReplacementLogic

All Known Implementing Classes:
BeeReplacementLogic, NoReplacementLogic, SimpleReplacementLogic, VillagerReplacementLogic

public interface SpawnReplacementLogic
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<SpawnReplacementLogic>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.serialization.MapCodec<? extends SpawnReplacementLogic>
    Gets the codec for this replacement logic
    void
    replaceSpawn(net.neoforged.neoforge.event.entity.EntityJoinLevelEvent event)
    Handles replacing the spawn
  • Field Details

  • Method Details

    • codec

      com.mojang.serialization.MapCodec<? extends SpawnReplacementLogic> codec()
      Gets the codec for this replacement logic
      Returns:
      The codec
    • replaceSpawn

      void replaceSpawn(net.neoforged.neoforge.event.entity.EntityJoinLevelEvent event)
      Handles replacing the spawn
      Parameters:
      event - The spawn event