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

@ -32,6 +32,10 @@ public class SpawnHelper {
restriction(entity, Location.ON_GROUND, Type.MOTION_BLOCKING, predicate);
}
public static <T extends MobEntity> void restrictionWater(EntityType<T> entity, SpawnPredicate<T> predicate) {
restriction(entity, Location.IN_WATER, Type.MOTION_BLOCKING, predicate);
}
static {
try {
for (Method method: SpawnRestriction.class.getDeclaredMethods()) {