Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Moved mobs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealEmissions committed Mar 27, 2024
1 parent 88df46d commit 96f87ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.dumbcode.projectnublar.core.entities;
package net.dumbcode.projectnublar.core.mobs;

import net.dumbcode.projectnublar.core.utils.MathsUtil;
import net.minecraft.core.BlockPos;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.dumbcode.projectnublar.core.entities.elements;
package net.dumbcode.projectnublar.core.mobs.elements;

import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.entity.*;
Expand All @@ -13,10 +13,10 @@
import software.bernie.geckolib.core.object.PlayState;
import software.bernie.geckolib.util.GeckoLibUtil;

public class DinosaurEntity extends Animal implements GeoEntity {
public class DinosaurMob extends Animal implements GeoEntity {
protected AnimatableInstanceCache animationCache = GeckoLibUtil.createInstanceCache(this);

public DinosaurEntity(EntityType<? extends Animal> pEntityType, Level pLevel) {
public DinosaurMob(EntityType<? extends Animal> pEntityType, Level pLevel) {
super(pEntityType, pLevel);
}

Expand All @@ -36,7 +36,7 @@ public void registerControllers(AnimatableManager.ControllerRegistrar controller
controllers.add(new AnimationController<>(this, "Head", 5, this::headAnimationController));
}

private PlayState headAnimationController(AnimationState<DinosaurEntity> entity) {
private PlayState headAnimationController(AnimationState<DinosaurMob> entity) {
// if entity is attacking, play specific animation by using
// event.setAndContinue(animation)
return PlayState.STOP;
Expand Down

0 comments on commit 96f87ee

Please sign in to comment.