use of cc.hyperium.event.render.EntityRenderEvent in project Hyperium by HyperiumClient.
the class MixinRendererLivingEntity method doRender.
@Inject(method = "doRender", at = @At("HEAD"), cancellable = true)
private void doRender(T entity, double x, double y, double z, float entityYaw, float partialTicks, CallbackInfo ci) {
if (Settings.DISABLE_ARMORSTANDS && entity instanceof EntityArmorStand)
ci.cancel();
final EntityRenderEvent event = new EntityRenderEvent(entity, (float) x, (float) y, (float) z, entity.rotationPitch, entityYaw, 1.0F);
EventBus.INSTANCE.post(event);
if (event.isCancelled()) {
ci.cancel();
}
}
Aggregations