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)
SpawningTweakdoTweak in interface SpawningTweakpublic 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)
SpawnerConditionSpawnInfo at this SpawnLocation is acceptable. This is performed async.fits in interface SpawnerCondition