Class BlockSpawningHandler
java.lang.Object
com.pixelmonmod.pixelmon.blocks.spawning.BlockSpawningHandler
Class to handle battles that occur when players walk through certain blocks or use certain external moves
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockSpawningHandler
void
performBattleStartCheck
(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity, PixelmonEntity entityPixelmon, BattleStartTypes startType, net.minecraft.world.level.block.state.BlockState state, Object... extra) Rolls to determine if a battle should happen and then calls for the specific battle type
-
Constructor Details
-
BlockSpawningHandler
public BlockSpawningHandler()
-
-
Method Details
-
getInstance
-
performBattleStartCheck
public void performBattleStartCheck(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity, PixelmonEntity entityPixelmon, BattleStartTypes startType, net.minecraft.world.level.block.state.BlockState state, Object... extra) Rolls to determine if a battle should happen and then calls for the specific battle type- Parameters:
world
- the world the block is inpos
- theBlockPos
of the grass blockentity
- the player in the grass block (uncast)entityPixelmon
- the pixelmon that started the check (if applicable)startType
-state
-
-