Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1976f16
commit 4de1f21
Showing
2 changed files
with
28 additions
and
20 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/java/com/teammetallurgy/atum/entity/ai/controller/AssassinLookController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.teammetallurgy.atum.entity.ai.controller; | ||
|
||
import net.minecraft.entity.Entity; | ||
import net.minecraft.entity.MobEntity; | ||
import net.minecraft.entity.ai.controller.LookController; | ||
|
||
public class AssassinLookController extends LookController { | ||
|
||
public AssassinLookController(MobEntity mob) { | ||
super(mob); | ||
} | ||
|
||
@Override | ||
public void setLookPositionWithEntity(Entity entity, float deltaYaw, float deltaPitch) { | ||
if (entity != null) { | ||
super.setLookPositionWithEntity(entity, deltaYaw, deltaPitch); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters