Surface rule builder prototype

This commit is contained in:
paulevsGitch 2021-12-03 20:38:49 +03:00
parent 6118dcb2cf
commit a5e6344cdd
3 changed files with 129 additions and 4 deletions

View file

@ -19,7 +19,7 @@ public class SpawnRuleEntry<M extends Mob> implements Comparable<SpawnRuleEntry>
this.rule = rule;
}
boolean canSpawn(EntityType<M> type, LevelAccessor world, MobSpawnType spawnReason, BlockPos pos, Random random) {
protected boolean canSpawn(EntityType<M> type, LevelAccessor world, MobSpawnType spawnReason, BlockPos pos, Random random) {
return rule.canSpawn(type, world, spawnReason, pos, random);
}