Class SpawnChecks

java.lang.Object
com.mrbysco.spawnoverlay.util.SpawnChecks

public class SpawnChecks extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isAlwaysSpawnable(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos)
    Check if the block at the position is always spawnable for a zombie
    static boolean
    isNightSpawnable(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos)
    Check if the block at the position is spawnable for a zombie during the night
    static boolean
    isPhantomSpawnable(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos groundPos)
    Check if the block at the position is spawnable for a phantom

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpawnChecks

      public SpawnChecks()
  • Method Details

    • isAlwaysSpawnable

      public static boolean isAlwaysSpawnable(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos)
      Check if the block at the position is always spawnable for a zombie
      Parameters:
      level - the client level
      pos - the block position
      Returns:
      true if the block is always spawnable for a zombie, false otherwise
    • isNightSpawnable

      public static boolean isNightSpawnable(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos)
      Check if the block at the position is spawnable for a zombie during the night
      Parameters:
      level - the client level
      pos - the block position
      Returns:
      true if the block is spawnable for a zombie during the night, false otherwise
    • isPhantomSpawnable

      public static boolean isPhantomSpawnable(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos groundPos)
      Check if the block at the position is spawnable for a phantom
      Parameters:
      level - the client level
      groundPos - the block position
      Returns:
      true if the block is spawnable for a phantom, false otherwise