@@ -52,13 +52,11 @@ public class ApiClientHelper implements IClientHelper {
|
||||
final ICellInventory<?> cellInventory = handler.getCellInv();
|
||||
|
||||
if (cellInventory != null) {
|
||||
lines.add(new StringTextComponent(cellInventory.getUsedBytes() + " ").func_230529_a_(GuiText.Of.text())
|
||||
.func_240702_b_(" " + cellInventory.getTotalBytes() + " ")
|
||||
.func_230529_a_(GuiText.BytesUsed.text()));
|
||||
lines.add(new StringTextComponent(cellInventory.getUsedBytes() + " ").append(GuiText.Of.text())
|
||||
.appendString(" " + cellInventory.getTotalBytes() + " ").append(GuiText.BytesUsed.text()));
|
||||
|
||||
lines.add(new StringTextComponent(cellInventory.getStoredItemTypes() + " ")
|
||||
.func_230529_a_(GuiText.Of.text()).func_240702_b_(" " + cellInventory.getTotalItemTypes() + " ")
|
||||
.func_230529_a_(GuiText.Types.text()));
|
||||
lines.add(new StringTextComponent(cellInventory.getStoredItemTypes() + " ").append(GuiText.Of.text())
|
||||
.appendString(" " + cellInventory.getTotalItemTypes() + " ").append(GuiText.Types.text()));
|
||||
}
|
||||
|
||||
if (handler.isPreformatted()) {
|
||||
@@ -66,9 +64,9 @@ public class ApiClientHelper implements IClientHelper {
|
||||
: GuiText.Excluded).getLocal();
|
||||
|
||||
if (handler.isFuzzy()) {
|
||||
lines.add(GuiText.Partitioned.withSuffix(" - " + list + " ").func_230529_a_(GuiText.Fuzzy.text()));
|
||||
lines.add(GuiText.Partitioned.withSuffix(" - " + list + " ").append(GuiText.Fuzzy.text()));
|
||||
} else {
|
||||
lines.add(GuiText.Partitioned.withSuffix(" - " + list + " ").func_230529_a_(GuiText.Precise.text()));
|
||||
lines.add(GuiText.Partitioned.withSuffix(" - " + list + " ").append(GuiText.Precise.text()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -111,11 +111,11 @@ public enum GuiText {
|
||||
}
|
||||
|
||||
public IFormattableTextComponent withSuffix(String text) {
|
||||
return text().deepCopy().func_240702_b_(text);
|
||||
return text().deepCopy().appendString(text);
|
||||
}
|
||||
|
||||
public IFormattableTextComponent withSuffix(ITextComponent text) {
|
||||
return text().deepCopy().func_230529_a_(text);
|
||||
return text().deepCopy().append(text);
|
||||
}
|
||||
|
||||
public IFormattableTextComponent text(Object... args) {
|
||||
|
||||
@@ -86,7 +86,7 @@ public class AppEngAdvancementTrigger
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instance func_230307_a_(JsonObject p_230307_1_, ConditionArrayParser p_230307_2_) {
|
||||
public Instance deserialize(JsonObject p_230307_1_, ConditionArrayParser p_230307_2_) {
|
||||
return new AppEngAdvancementTrigger.Instance(this.getId());
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ public class AppEngAdvancementTrigger
|
||||
}
|
||||
|
||||
@Override
|
||||
public JsonObject func_230240_a_(ConditionArraySerializer p_230240_1_) {
|
||||
public JsonObject serialize(ConditionArraySerializer p_230240_1_) {
|
||||
return new JsonObject();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user