Сама функция:блин но он все равно таким же остается
Java:
package im.expensive.functions.impl.render;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
@FunctionRegister(name = "BabyBoy", type = Category.Render)
public class BabyBoy extends Function {
private static boolean enabled = false;
public BabyBoy() {
}
@Override
public boolean onEnable() {
enabled = true;
print("Ready!");
super.onEnable();
return false;
}
@Override
public void onDisable() {
enabled = false;
super.onDisable();
}
public static boolean isEnabled() {
return enabled;
}
}
Java:
if (BabyBoy.isEnabled()) {
if (entityIn instanceof PlayerEntity) {
ClientPlayerEntity player = Minecraft.getInstance().player;
if (player != null && entityIn.getScoreboardName().equals(player.getScoreboardName())) {
this.entityModel.isChild = true;
} else {
this.entityModel.isChild = entityIn.isChild();
}
}
}