Class BlockSpawningHandler

java.lang.Object
com.pixelmonmod.pixelmon.blocks.spawning.BlockSpawningHandler

public class BlockSpawningHandler extends Object
Class to handle battles that occur when players walk through certain blocks or use certain external moves
  • Constructor Details

    • BlockSpawningHandler

      public BlockSpawningHandler()
  • Method Details

    • getInstance

      public static BlockSpawningHandler 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 in
      pos - the BlockPos of the grass block
      entity - the player in the grass block (uncast)
      entityPixelmon - the pixelmon that started the check (if applicable)
      startType -
      state -