java.lang.Object
com.pixelmonmod.pixelmon.api.spawning.archetypes.algorithms.checkspawns.RayTraceCheckSpawns
All Implemented Interfaces:
CheckSpawns

public class RayTraceCheckSpawns extends Object implements CheckSpawns
A /checkspawns for a ray-trace-based triggers. It creates a SpawnLocation at the location of the block being looked at by the target, sets the location type and then uses the selected spawner's selection algorithm to create all information.

It will comment on not looking at an acceptable block if the given block state predicate fails.

  • Field Details

    • node

      public String node
      The permission node required to use this checkspawns.
    • locationType

      public LocationType locationType
      The LocationType to set for the traced block.
    • isValidBlock

      public Predicate<net.minecraft.world.level.block.state.BlockState> isValidBlock
      The condition that must be passed by the block being looked at by the target.
  • Constructor Details

    • RayTraceCheckSpawns

      public RayTraceCheckSpawns(LocationType locationType, Predicate<net.minecraft.world.level.block.state.BlockState> isValidBlock, String node)
  • Method Details