Class EncounterData

java.lang.Object
com.pixelmonmod.pixelmon.api.util.EncounterData

public class EncounterData extends Object
Created by Jay113355 on 5/31/2021.
  • Field Details

    • defaultMode

      protected final EnumEncounterMode defaultMode
      The default encounter mode, usually from the config. This can be overridden on a per block basis via nbt
    • mode

      protected EnumEncounterMode mode
      The encounter mode loaded from nbt, this overrides the default mode provided from the config.
    • lastEncounter

      protected long lastEncounter
    • playerEncounters

      protected final Map<UUID,Long> playerEncounters
  • Constructor Details

  • Method Details

    • canEncounter

      public boolean canEncounter(net.minecraft.world.entity.player.Player player)
    • registerEncounter

      public void registerEncounter(net.minecraft.world.entity.player.Player player)
    • addEncounter

      public void addEncounter(UUID player, long time)
    • getMode

      public EnumEncounterMode getMode()
    • write

      public net.minecraft.nbt.CompoundTag write(net.minecraft.nbt.CompoundTag compound)
    • read

      public void read(net.minecraft.nbt.CompoundTag compound)