Class SpawnChecks
java.lang.Object
com.mrbysco.spawnoverlay.util.SpawnChecks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAlwaysSpawnable(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos) Check if the block at the position is always spawnable for a zombiestatic booleanisNightSpawnable(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 nightstatic booleanisPhantomSpawnable(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos groundPos) Check if the block at the position is spawnable for a phantom
-
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 levelpos- 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 levelpos- 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 levelgroundPos- the block position- Returns:
- true if the block is spawnable for a phantom, false otherwise
-