移除无用过程
This commit is contained in:
parent
3e3500e43a
commit
8c9cd37009
1 changed files with 0 additions and 25 deletions
|
@ -1,25 +0,0 @@
|
||||||
package net.mcreator.target.procedures;
|
|
||||||
|
|
||||||
import net.minecraft.world.entity.Entity;
|
|
||||||
import net.minecraft.world.entity.LivingEntity;
|
|
||||||
|
|
||||||
public class CannonAngleProcedure {
|
|
||||||
public static void execute(Entity entity) {
|
|
||||||
if (entity == null)
|
|
||||||
return;
|
|
||||||
if (entity.getXRot() > -20) {
|
|
||||||
{
|
|
||||||
entity.setYRot(entity.getYRot());
|
|
||||||
entity.setXRot(-20);
|
|
||||||
entity.setYBodyRot(entity.getYRot());
|
|
||||||
entity.setYHeadRot(entity.getYRot());
|
|
||||||
entity.yRotO = entity.getYRot();
|
|
||||||
entity.xRotO = entity.getXRot();
|
|
||||||
if (entity instanceof LivingEntity _entity) {
|
|
||||||
_entity.yBodyRotO = _entity.getYRot();
|
|
||||||
_entity.yHeadRotO = _entity.getYRot();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue