Update to 1.16.4
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package exopandora.worldhandler.util;
|
||||
|
||||
|
||||
import exopandora.worldhandler.builder.INBTWritable;
|
||||
import net.minecraft.nbt.INBT;
|
||||
import net.minecraft.nbt.StringNBT;
|
||||
@@ -75,7 +74,7 @@ public class MutableStringTextComponent extends StringTextComponent implements I
|
||||
|
||||
public IReorderingProcessor formatter(String string, Integer index)
|
||||
{
|
||||
return IReorderingProcessor.func_242239_a(string, this.getStyle());
|
||||
return IReorderingProcessor.fromString(string, this.getStyle());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -37,7 +37,7 @@ public class RegistryHelper
|
||||
registerRegistry(ForgeRegistries.POTIONS, Effect::getName);
|
||||
registerRegistry(ForgeRegistries.BIOMES, biome ->
|
||||
{
|
||||
MutableRegistry<Biome> registry = DynamicRegistries.func_239770_b_().func_243612_b(Registry.BIOME_KEY);
|
||||
MutableRegistry<Biome> registry = DynamicRegistries.func_239770_b_().getRegistry(Registry.BIOME_KEY);
|
||||
ResourceLocation resource = registry.getKey(biome);
|
||||
String key = "biome." + biome.getRegistryName().getNamespace() + "." + resource.getPath();
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ public class RenderUtils
|
||||
matrix.scale(16.0F, 16.0F, 16.0F);
|
||||
|
||||
IRenderTypeBuffer.Impl buffer = Minecraft.getInstance().getRenderTypeBuffers().getBufferSource();
|
||||
boolean flag = !bakedmodel.func_230044_c_();
|
||||
boolean flag = !bakedmodel.isSideLit();
|
||||
|
||||
if(flag)
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ public class TextUtils
|
||||
|
||||
public static IFormattableTextComponent stripText(IFormattableTextComponent string, IFormattableTextComponent prefix, int maxWidth, FontRenderer fontRenderer)
|
||||
{
|
||||
if(fontRenderer.func_238414_a_(prefix) + fontRenderer.func_238414_a_(string) > (maxWidth - fontRenderer.func_238414_a_(prefix)))
|
||||
if(fontRenderer.getStringPropertyWidth(prefix) + fontRenderer.getStringPropertyWidth(string) > (maxWidth - fontRenderer.getStringPropertyWidth(prefix)))
|
||||
{
|
||||
IFormattableTextComponent result = new StringTextComponent("").setStyle(string.getStyle());
|
||||
|
||||
@@ -31,7 +31,7 @@ public class TextUtils
|
||||
{
|
||||
IFormattableTextComponent extension = new StringTextComponent(result.getString() + c + "...").setStyle(string.getStyle());
|
||||
|
||||
if(fontRenderer.func_238414_a_(extension) < maxWidth)
|
||||
if(fontRenderer.getStringPropertyWidth(extension) < maxWidth)
|
||||
{
|
||||
result = new StringTextComponent(result.getString() + c).setStyle(string.getStyle());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user