Fixed small entity bugs, move classes to correct package
This commit is contained in:
parent
056a23beb9
commit
3cd71e300d
5 changed files with 15 additions and 3 deletions
|
@ -7,6 +7,7 @@ import net.minecraft.core.BlockPos;
|
|||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.sounds.SoundEvent;
|
||||
import net.minecraft.world.entity.AgableMob;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.Mob;
|
||||
|
@ -54,6 +55,11 @@ public class DragonflyEntity extends Animal implements FlyingAnimal {
|
|||
.add(Attributes.FLYING_SPEED, 1.0D)
|
||||
.add(Attributes.MOVEMENT_SPEED, 0.1D);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity getLeashHolder() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected PathNavigation createNavigation(Level world) {
|
||||
|
|
|
@ -17,6 +17,7 @@ import net.minecraft.sounds.SoundEvents;
|
|||
import net.minecraft.sounds.SoundSource;
|
||||
import net.minecraft.world.damagesource.DamageSource;
|
||||
import net.minecraft.world.entity.AgableMob;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.entity.LivingEntity;
|
||||
import net.minecraft.world.entity.Mob;
|
||||
|
@ -80,6 +81,11 @@ public class SilkMothEntity extends Animal implements FlyingAnimal {
|
|||
this.hiveWorld = world;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity getLeashHolder() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addAdditionalSaveData(CompoundTag tag) {
|
||||
if (hivePos != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue