Class VillagerReplacementLogic

java.lang.Object
com.pixelmonmod.pixelmon.api.replacement.logic.AbstractReplacementLogic
com.pixelmonmod.pixelmon.api.replacement.logic.VillagerReplacementLogic
All Implemented Interfaces:
SpawnReplacementLogic

public class VillagerReplacementLogic extends AbstractReplacementLogic
Replaces the entity randomly with a quest giver or trainer
  • Constructor Details

    • VillagerReplacementLogic

      public VillagerReplacementLogic()
  • Method Details

    • replaceSpawn

      public void replaceSpawn(net.minecraftforge.event.entity.EntityJoinLevelEvent event)
      Description copied from interface: SpawnReplacementLogic
      Handles replacing the spawn
      Parameters:
      event - The spawn event
    • read

      public void read(com.google.gson.Gson context, com.google.gson.JsonElement element)
      Description copied from interface: SpawnReplacementLogic
      Reads the data required from the datapack JSON
      Parameters:
      context - The gson
      element - The json element of the file