use of com.infinityraider.infinitylib.modules.playeranimations.IAnimatablePlayerModel in project AgriCraft by AgriCraft.
the class JournalViewPointHandler method onPlayerRender.
@SuppressWarnings("unused")
@SubscribeEvent
public void onPlayerRender(RenderPlayerEvent.Pre event) {
if (event.getPlayer() == AgriCraft.instance.getClientPlayer()) {
if (event.getRenderer().getEntityModel() instanceof IAnimatablePlayerModel) {
IAnimatablePlayerModel model = (IAnimatablePlayerModel) event.getRenderer().getEntityModel();
model.setDoArmWobble(!this.isActive());
}
}
}
Aggregations