public class PlayerBasedLevels extends java.lang.Object implements SpawningTweak, SpawnerCondition
Constructor and Description |
---|
PlayerBasedLevels() |
Modifier and Type | Method and Description |
---|---|
void |
doTweak(AbstractSpawner spawner,
SpawnAction<? extends net.minecraft.entity.Entity> action)
Performs the tweak to the given spawn action or its entity.
|
boolean |
fits(AbstractSpawner spawner,
SpawnInfo spawnInfo,
SpawnLocation spawnLocation)
Returns whether or not this
SpawnInfo at this SpawnLocation is acceptable. |
int |
getTweakedLevel(AbstractSpawner spawner,
SpawnAction<? extends net.minecraft.entity.Entity> action,
int level,
int min,
int max) |
public void doTweak(AbstractSpawner spawner, SpawnAction<? extends net.minecraft.entity.Entity> action)
SpawningTweak
doTweak
in interface SpawningTweak
public int getTweakedLevel(AbstractSpawner spawner, SpawnAction<? extends net.minecraft.entity.Entity> action, int level, int min, int max)
public boolean fits(AbstractSpawner spawner, SpawnInfo spawnInfo, SpawnLocation spawnLocation)
SpawnerCondition
SpawnInfo
at this SpawnLocation
is acceptable. This is performed async.fits
in interface SpawnerCondition