Fish spawning
This commit is contained in:
parent
ad59f5b80d
commit
6e202c2452
5 changed files with 19 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue