- 6
- 2
Вопрос в шапке, вот код
Java:
if (DayZHud.mc.thePlayer != null && DayZHud.mc.thePlayer.isInsideOfMaterial(Material.leaves)) {
GL11.glDisable(3553);
GL11.glBlendFunc(774, 0);
GL11.glColor4f(0.33f, 1.0f, 0.33f, 1.0f);
drawRect(0.0, 0.0, resolution.getScaledWidth(), resolution.getScaledHeight());
GL11.glEnable(3553);
GL11.glBlendFunc(770, 771);
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
DayZHud.mc.renderEngine.bindTexture(DayZHud.leaves);
drawRect(0.0, 0.0, resolution.getScaledWidth(), resolution.getScaledHeight());
}
Java:
@Hook(returnCondition = ReturnCondition.ALWAYS, createMethod = true)
public static void onEntityCollidedWithBlock(BlockLeaves that, World world, int x, int y, int z, Entity entity) {
}
@Hook(returnCondition = ReturnCondition.ALWAYS, createMethod = true)
public static AxisAlignedBB getCollisionBoundingBoxFromPool(BlockLeaves that, World world, int x, int y, int z) {
return null;
}