Fish spawning

This commit is contained in:
paulevsGitch 2020-10-24 00:25:37 +03:00
parent ad59f5b80d
commit 6e202c2452
5 changed files with 19 additions and 1 deletions

View file

@ -24,6 +24,7 @@ public class EntityRegistry {
public static void register() {
SpawnHelper.restrictionLand(END_SLIME, EntityEndSlime::canSpawn);
SpawnHelper.restrictionWater(END_FISH, EntityEndFish::canSpawn);
}
protected static <T extends Entity> EntityType<T> register(String name, SpawnGroup group, float width, float height, EntityFactory<T> entity) {