Reorganized Imports/Packages

This commit is contained in:
Frank 2022-05-18 23:56:23 +02:00
parent cb9459f176
commit 3ee10482ab
721 changed files with 34873 additions and 33558 deletions

View file

@ -0,0 +1,7 @@
package org.betterx.bclib.entity;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EntityType;
public record BCLEntityWrapper<T extends Entity>(EntityType<T> type, boolean canSpawn) {
}

View file

@ -0,0 +1,16 @@
package org.betterx.bclib.entity;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.animal.Animal;
import net.minecraft.world.level.Level;
public abstract class DespawnableAnimal extends Animal {
protected DespawnableAnimal(EntityType<? extends Animal> entityType, Level level) {
super(entityType, level);
}
@Override
public boolean removeWhenFarAway(double d) {
return !this.hasCustomName();
}
}