public static class PlayerActivateShrineEvent.Pre extends PlayerActivateShrineEvent
PlayerActivateShrineEvent.Post, PlayerActivateShrineEvent.Pre
canEncounter, pixelmonEntity
Constructor and Description |
---|
Pre(net.minecraft.util.math.BlockPos blockPos,
net.minecraft.entity.player.ServerPlayerEntity player,
ShrineBlock block,
ShrineType shrineType,
BirdShrineTileEntity shrine,
boolean canEncounter,
PixelmonEntity pixelmonEntity)
Basic constructor
|
Modifier and Type | Method and Description |
---|---|
void |
setCanEncounter(boolean canEncounter)
Overwrites the
EncounterData.canEncounter(PlayerEntity) check |
void |
setPixelmonEntity(PixelmonEntity entity)
Overwrites the PixelmonEntity to be spawned
|
canEncounter, getBlock, getBlockPos, getBlockState, getPixelmonEntity, getPlayer, getShrine, getShrineType
public Pre(net.minecraft.util.math.BlockPos blockPos, net.minecraft.entity.player.ServerPlayerEntity player, ShrineBlock block, ShrineType shrineType, BirdShrineTileEntity shrine, boolean canEncounter, PixelmonEntity pixelmonEntity)
blockPos
- The position of the blockplayer
- The player interacting with the blockblock
- The block type being interacted withshrineType
- The type of shrineshrine
- The shrine tile entitycanEncounter
- If the player can encounter the shrinepixelmonEntity
- The Pokémon to be spawnedpublic void setCanEncounter(boolean canEncounter)
EncounterData.canEncounter(PlayerEntity)
checkcanEncounter
- The new encounter check valuepublic void setPixelmonEntity(PixelmonEntity entity)
entity
- The new entity to be spawned