java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.replacement.SpawnReplacement

public class SpawnReplacement extends Object
Class containing information for spawn replacements
  • Field Details

  • Constructor Details

    • SpawnReplacement

      public SpawnReplacement(boolean enabled, SpawnDetectionLogic detection, SpawnReplacementLogic replacement)
      Basic constructor
      Parameters:
      enabled - If this replacement is enabled
      detection - The logic for detection
      replacement - The logic for replacing
  • Method Details

    • replace

      public void replace(net.minecraftforge.event.entity.EntityJoinLevelEvent event)
      Handles replacing the entity
      Parameters:
      event - The spawn event