BlockOutline | Exp 3.1

  • Автор темы Автор темы TheT1x
  • Дата начала Дата начала
Начинающий
Начинающий
Статус
Оффлайн
Регистрация
22 Июл 2022
Сообщения
115
Реакции
0
вот кароче мега s333lfcod333r ( я ) сделал для вас блок аутлайн под цвет клиента, ведь многие сидящие на югейме не способны даже на это

JavaScript:
Expand Collapse Copy
package im.hungry.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import im.hungry.events.WorldEvent;
import im.hungry.functions.api.Category;
import im.hungry.functions.api.Function;
import im.hungry.functions.api.FunctionRegister;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.util.math.RayTraceResult;
import net.optifine.render.RenderUtils;

@FunctionRegister(name = "BlockOutline", type = Category.Render)
public class BlockOutline extends Function {
    private BlockRayTraceResult result;
    @Subscribe
    private void onRender(WorldEvent e) {
        this.result = (BlockRayTraceResult)mc.player.pick(4.5, 1.0F, false);
        if (this.result.getType() == net.minecraft.util.math.RayTraceResult.Type.MISS) {
            this.result = null;
        }

        if (this.result != null) {
            if (mc.objectMouseOver.getType() != RayTraceResult.Type.ENTITY) {
                RenderUtils.drawBlockBox(this.result.getPos(), HUD.getColor(0));
            }
        }
    }
}
 
из изгоя в героя :astonished:
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
/del (а мы не могли спиздить с срыгалика)
 
спасиба но я не голодный судя по твоим импортам
 
вот кароче мега s333lfcod333r ( я ) сделал для вас блок аутлайн под цвет клиента, ведь многие сидящие на югейме не способны даже на это

JavaScript:
Expand Collapse Copy
package im.hungry.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import im.hungry.events.WorldEvent;
import im.hungry.functions.api.Category;
import im.hungry.functions.api.Function;
import im.hungry.functions.api.FunctionRegister;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.util.math.RayTraceResult;
import net.optifine.render.RenderUtils;

@FunctionRegister(name = "BlockOutline", type = Category.Render)
public class BlockOutline extends Function {
    private BlockRayTraceResult result;
    @Subscribe
    private void onRender(WorldEvent e) {
        this.result = (BlockRayTraceResult)mc.player.pick(4.5, 1.0F, false);
        if (this.result.getType() == net.minecraft.util.math.RayTraceResult.Type.MISS) {
            this.result = null;
        }

        if (this.result != null) {
            if (mc.objectMouseOver.getType() != RayTraceResult.Type.ENTITY) {
                RenderUtils.drawBlockBox(this.result.getPos(), HUD.getColor(0));
            }
        }
    }
}
и смысл?
 
/del ss нет
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
вот кароче мега s333lfcod333r ( я ) сделал для вас блок аутлайн под цвет клиента, ведь многие сидящие на югейме не способны даже на это

JavaScript:
Expand Collapse Copy
package im.hungry.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import im.hungry.events.WorldEvent;
import im.hungry.functions.api.Category;
import im.hungry.functions.api.Function;
import im.hungry.functions.api.FunctionRegister;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.util.math.RayTraceResult;
import net.optifine.render.RenderUtils;

@FunctionRegister(name = "BlockOutline", type = Category.Render)
public class BlockOutline extends Function {
    private BlockRayTraceResult result;
    @Subscribe
    private void onRender(WorldEvent e) {
        this.result = (BlockRayTraceResult)mc.player.pick(4.5, 1.0F, false);
        if (this.result.getType() == net.minecraft.util.math.RayTraceResult.Type.MISS) {
            this.result = null;
        }

        if (this.result != null) {
            if (mc.objectMouseOver.getType() != RayTraceResult.Type.ENTITY) {
                RenderUtils.drawBlockBox(this.result.getPos(), HUD.getColor(0));
            }
        }
    }
}
нахуя так много дерьма ненужного? если можно

Код:
Expand Collapse Copy
BlockRayTraceResult result = (BlockRayTraceResult)mc.player.pick(4.5, 1.0F, false);
        if (result.getType() != RayTraceResult.Type.MISS && mc.objectMouseOver.getType() != RayTraceResult.Type.ENTITY) {
            RenderUtils.drawBlockBox(result.getPos(), HUD.getColor(0));
        }
 
нахуя так много дерьма ненужного? если можно

Код:
Expand Collapse Copy
BlockRayTraceResult result = (BlockRayTraceResult)mc.player.pick(4.5, 1.0F, false);
        if (result.getType() != RayTraceResult.Type.MISS && mc.objectMouseOver.getType() != RayTraceResult.Type.ENTITY) {
            RenderUtils.drawBlockBox(result.getPos(), HUD.getColor(0));
        }
потому что я в джаве от силы месяц
 
Назад
Сверху Снизу