public class PlayerActivateShrineEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
PlayerActivateShrineEvent.Post |
static class |
PlayerActivateShrineEvent.Pre |
Modifier and Type | Field and Description |
---|---|
protected boolean |
canEncounter |
protected PixelmonEntity |
pixelmonEntity |
Constructor and Description |
---|
PlayerActivateShrineEvent(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 |
---|---|
boolean |
canEncounter()
The result of the
EncounterData.canEncounter(PlayerEntity) method |
ShrineBlock |
getBlock()
Gets the block interacted with
|
net.minecraft.util.math.BlockPos |
getBlockPos()
Gets the block position of the interacted block
|
net.minecraft.block.BlockState |
getBlockState()
Gets the block state at the given position
|
PixelmonEntity |
getPixelmonEntity()
Gets the PixelmonEntity to be spawned
|
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer()
Gets the player interacting with the shrine
|
BirdShrineTileEntity |
getShrine()
Gets the tile entity being interacted with
|
ShrineType |
getShrineType()
Gets the type of shrine being interacted with
|
protected boolean canEncounter
protected PixelmonEntity pixelmonEntity
public PlayerActivateShrineEvent(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 net.minecraft.util.math.BlockPos getBlockPos()
public net.minecraft.block.BlockState getBlockState()
public ShrineBlock getBlock()
public net.minecraft.entity.player.ServerPlayerEntity getPlayer()
public ShrineType getShrineType()
public BirdShrineTileEntity getShrine()
public boolean canEncounter()
EncounterData.canEncounter(PlayerEntity)
methodpublic PixelmonEntity getPixelmonEntity()