Interface SpawnDetectionLogic

All Known Implementing Classes:
PartialDetectionLogic, SimpleDetectionLogic

public interface SpawnDetectionLogic
Detection logic for replacement for when an entity spawns
  • Field Summary

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

    Modifier and Type
    Method
    Description
    com.mojang.serialization.MapCodec<? extends SpawnDetectionLogic>
    Gets the codec for this detection logic
    boolean
    shouldReplaceSpawn(net.neoforged.neoforge.event.entity.EntityJoinLevelEvent event)
    Checks if the spawn should be replaced
  • Field Details

  • Method Details

    • codec

      com.mojang.serialization.MapCodec<? extends SpawnDetectionLogic> codec()
      Gets the codec for this detection logic
      Returns:
      The codec
    • shouldReplaceSpawn

      boolean shouldReplaceSpawn(net.neoforged.neoforge.event.entity.EntityJoinLevelEvent event)
      Checks if the spawn should be replaced
      Parameters:
      event - The spawn event