@SubscribeEvent(priority = EventPriority.HIGHEST)
public void entityColorRender(final RenderLivingEvent.Pre event) {
final String s = EnumChatFormatting.getTextWithoutFormattingCodes(event.entity.getCommandSenderName());
if (s.startsWith("Aureylian") && !(event.entity instanceof EntityPlayer)) {
GL11.glColor4f(0.9686f, 0.7059f, 0.8392f, 1.0f);
this.resetRender = true;
}
if (EventHandlerClient.holograms.contains(s) && (!(event.entity instanceof EntityPlayer) || !((EntityPlayer)event.entity).getHideCape())) {
GL11.glColor4f(1.0f, 1.0f, 1.0f, 0.45f);
GL11.glEnable(3042);
GL11.glBlendFunc(770, 771);
this.resetRender = true;
}
if (s.equals("RWTema") && !(event.entity instanceof EntityPlayer)) {
GL11.glColor4f(1.0f, 1.0f, 1.0f, 0.65f);
GL11.glEnable(3042);
GL11.glBlendFunc(770, 771);
this.resetRender = true;
}
if (s.equals("jadedcat") && (!(event.entity instanceof EntityPlayer) || !((EntityPlayer)event.entity).getHideCape())) {
GL11.glColor4f(0.69f, 0.392f, 0.847f, 1.0f);
this.resetRender = true;
}
}
EventHandlerClient.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:ExtraUtilities
作者:
评论列表
文章目录