Class PlayerActivateShrineEvent.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PlayerActivateShrineEvent
com.pixelmonmod.pixelmon.api.events.PlayerActivateShrineEvent.Pre
Enclosing class:
PlayerActivateShrineEvent

public static class PlayerActivateShrineEvent.Pre extends PlayerActivateShrineEvent
  • Constructor Details

    • Pre

      public Pre(net.minecraft.core.BlockPos blockPos, net.minecraft.server.level.ServerPlayer player, ShrineBlock block, ShrineType shrineType, BirdShrineTileEntity shrine, boolean canEncounter, PixelmonEntity pixelmonEntity)
      Basic constructor
      Parameters:
      blockPos - The position of the block
      player - The player interacting with the block
      block - The block type being interacted with
      shrineType - The type of shrine
      shrine - The shrine tile entity
      canEncounter - If the player can encounter the shrine
      pixelmonEntity - The Pokémon to be spawned
  • Method Details

    • setCanEncounter

      public void setCanEncounter(boolean canEncounter)
      Parameters:
      canEncounter - The new encounter check value
    • setPixelmonEntity

      public void setPixelmonEntity(PixelmonEntity entity)
      Overwrites the PixelmonEntity to be spawned
      Parameters:
      entity - The new entity to be spawned