Class PotentialSpawnsEventTest
java.lang.Object
net.neoforged.neoforge.oldtest.world.PotentialSpawnsEventTest
This tests net.minecraftforge.event.world.World.LevelEvent.PotentialSpawns. If ENABLED is set to true, this test mod uses the PotentialSpawns event to prevent mobs in the MONSTER mob category from spawning if the game difficulty is set to anything other than hard.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic void
- 
Field Details- 
ENABLEDpublic static final boolean ENABLED- See Also:
 
 
- 
- 
Constructor Details- 
PotentialSpawnsEventTestpublic PotentialSpawnsEventTest()
 
- 
- 
Method Details- 
onlySpawnHostileMobs
 
-