Java 类net.minecraftforge.client.event.EntityViewRenderEvent.FogColors 实例源码

项目:PerFabricaAdAstra    文件:FogHandler.java   
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void onFogColors(FogColors event) {
    IndustrialFluidBlock block = IndustrialFluidBlock.atEyeLevel(event.entity);
    if (block != null) {
        int color = block.getFluid().getColor();
        event.red = (color >> 16 & 255) / 255.0F;
        event.green = (color >> 8 & 255) / 255.0F;
        event.blue = (color & 255) / 255.0F;
    }
}
项目:vintagecraft    文件:RenderFog.java   
@SubscribeEvent
public void RenderFogColorHandler(FogColors event) {
}
项目:Farrago    文件:ToolBlockRenderer.java   
@SubscribeEvent
public void onFogColors(FogColors e) {
    e.red = 0.149019608f;
    e.green = 0.196078431f;
    e.blue = 0.219607843f;
}