@@ -22,15 +22,12 @@ jobs:
|
|||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
||||||
- name: Clean gradle
|
- name: Clean gradle
|
||||||
run: ./gradlew clean --no-daemon
|
run: ./gradlew clean --no-daemon --max-workers 1
|
||||||
- name: Validate no assets
|
- name: Validate no assets
|
||||||
run: test ! -d ./src/generated
|
run: test ! -d ./src/generated
|
||||||
# FG does appear to read the deps in runData before it has written it. Separate step to avoid it
|
|
||||||
- name: Compile Java and prepare runData
|
|
||||||
run: ./gradlew compileJava prepareRunData --no-daemon
|
|
||||||
- name: Generate assets
|
- name: Generate assets
|
||||||
run: ./gradlew runData --no-daemon
|
run: ./gradlew runData --no-daemon --max-workers 1
|
||||||
- name: Validate assets
|
- name: Validate assets
|
||||||
run: test -d ./src/generated -a -f ./src/generated/resources/.cache/cache
|
run: test -d ./src/generated -a -f ./src/generated/resources/.cache/cache
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build --no-daemon
|
run: ./gradlew build --no-daemon --max-workers 1
|
||||||
|
|||||||
@@ -22,15 +22,12 @@ jobs:
|
|||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
||||||
- name: Clean gradle
|
- name: Clean gradle
|
||||||
run: ./gradlew clean --no-daemon
|
run: ./gradlew clean --no-daemon --max-workers 1
|
||||||
- name: Validate no assets
|
- name: Validate no assets
|
||||||
run: test ! -d ./src/generated
|
run: test ! -d ./src/generated
|
||||||
# FG does appear to read the deps in runData before it has written it. Separate step to avoid it
|
|
||||||
- name: Compile Java and prepare runData
|
|
||||||
run: ./gradlew compileJava prepareRunData --no-daemon
|
|
||||||
- name: Generate assets
|
- name: Generate assets
|
||||||
run: ./gradlew runData --no-daemon
|
run: ./gradlew runData --no-daemon --max-workers 1
|
||||||
- name: Validate assets
|
- name: Validate assets
|
||||||
run: test -d ./src/generated -a -f ./src/generated/resources/.cache/cache
|
run: test -d ./src/generated -a -f ./src/generated/resources/.cache/cache
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build --no-daemon
|
run: ./gradlew build --no-daemon --max-workers 1
|
||||||
|
|||||||
@@ -22,20 +22,17 @@ jobs:
|
|||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
||||||
- name: Clean gradle
|
- name: Clean gradle
|
||||||
run: ./gradlew clean --no-daemon
|
run: ./gradlew clean --no-daemon --max-workers 1
|
||||||
- name: Validate no assets
|
- name: Validate no assets
|
||||||
run: test ! -d ./src/generated
|
run: test ! -d ./src/generated
|
||||||
# FG does appear to read the deps in runData before it has written it. Separate step to avoid it
|
|
||||||
- name: Compile Java and prepare runData
|
|
||||||
run: ./gradlew compileJava prepareRunData --no-daemon
|
|
||||||
- name: Generate assets
|
- name: Generate assets
|
||||||
run: ./gradlew runData --no-daemon
|
run: ./gradlew runData --no-daemon --max-workers 1
|
||||||
- name: Validate assets
|
- name: Validate assets
|
||||||
run: test -d ./src/generated -a -f ./src/generated/resources/.cache/cache
|
run: test -d ./src/generated -a -f ./src/generated/resources/.cache/cache
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
env:
|
env:
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
run: ./gradlew build --no-daemon
|
run: ./gradlew build --no-daemon --max-workers 1
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: dist
|
name: dist
|
||||||
|
|||||||
@@ -30,11 +30,8 @@ jobs:
|
|||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Validate no assets
|
- name: Validate no assets
|
||||||
run: test ! -d ./src/generated
|
run: test ! -d ./src/generated
|
||||||
# FG does appear to read the deps in runData before it has written it. Separate step to avoid it
|
|
||||||
- name: Compile Java and prepare runData
|
|
||||||
run: ./gradlew compileJava prepareRunData --no-daemon
|
|
||||||
- name: Generate assets
|
- name: Generate assets
|
||||||
run: ./gradlew runData --no-daemon
|
run: ./gradlew runData --no-daemon --max-workers 1
|
||||||
- name: Validate assets
|
- name: Validate assets
|
||||||
run: test -d ./src/generated -a -f ./src/generated/resources/.cache/cache
|
run: test -d ./src/generated -a -f ./src/generated/resources/.cache/cache
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
@@ -43,7 +40,7 @@ jobs:
|
|||||||
KEY_STORE_ALIAS: ${{ secrets.KEY_STORE_ALIAS }}
|
KEY_STORE_ALIAS: ${{ secrets.KEY_STORE_ALIAS }}
|
||||||
KEY_STORE_KEY_PASS: ${{ secrets.KEY_STORE_KEY_PASS }}
|
KEY_STORE_KEY_PASS: ${{ secrets.KEY_STORE_KEY_PASS }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./gradlew build --no-daemon
|
run: ./gradlew build --no-daemon --max-workers 1
|
||||||
- name: Upload to curseforge
|
- name: Upload to curseforge
|
||||||
env:
|
env:
|
||||||
KEY_STORE_PASS: ${{ secrets.KEY_STORE_PASS }}
|
KEY_STORE_PASS: ${{ secrets.KEY_STORE_PASS }}
|
||||||
@@ -51,14 +48,14 @@ jobs:
|
|||||||
KEY_STORE_KEY_PASS: ${{ secrets.KEY_STORE_KEY_PASS }}
|
KEY_STORE_KEY_PASS: ${{ secrets.KEY_STORE_KEY_PASS }}
|
||||||
CHANGELOG: ${{ github.event.release.body }}
|
CHANGELOG: ${{ github.event.release.body }}
|
||||||
CURSEFORGE: ${{ secrets.CURSEFORGE }}
|
CURSEFORGE: ${{ secrets.CURSEFORGE }}
|
||||||
run: ./gradlew curseforge --no-daemon
|
run: ./gradlew curseforge --no-daemon --max-workers 1
|
||||||
- name: Publish to github packages
|
- name: Publish to github packages
|
||||||
env:
|
env:
|
||||||
KEY_STORE_PASS: ${{ secrets.KEY_STORE_PASS }}
|
KEY_STORE_PASS: ${{ secrets.KEY_STORE_PASS }}
|
||||||
KEY_STORE_ALIAS: ${{ secrets.KEY_STORE_ALIAS }}
|
KEY_STORE_ALIAS: ${{ secrets.KEY_STORE_ALIAS }}
|
||||||
KEY_STORE_KEY_PASS: ${{ secrets.KEY_STORE_KEY_PASS }}
|
KEY_STORE_KEY_PASS: ${{ secrets.KEY_STORE_KEY_PASS }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./gradlew publish --no-daemon
|
run: ./gradlew publish --no-daemon --max-workers 1
|
||||||
- name: Prepare artifact metadata
|
- name: Prepare artifact metadata
|
||||||
id: prepare_artifact_metadata
|
id: prepare_artifact_metadata
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ artifact_basename=appliedenergistics2
|
|||||||
#########################################################
|
#########################################################
|
||||||
minecraft_release=1.16
|
minecraft_release=1.16
|
||||||
minecraft_version=1.16.1
|
minecraft_version=1.16.1
|
||||||
mcp_mappings=20200707-1.16.1
|
mcp_mappings=20200723-1.16.1
|
||||||
forge_version=32.0.75
|
forge_version=32.0.75
|
||||||
|
|
||||||
#########################################################
|
#########################################################
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ public enum Upgrades {
|
|||||||
if (namesAdded.add(name)) {
|
if (namesAdded.add(name)) {
|
||||||
// append the supported count only if its > 1
|
// append the supported count only if its > 1
|
||||||
if (supported.maxCount > 1) {
|
if (supported.maxCount > 1) {
|
||||||
name = name.deepCopy().func_240702_b_(" (" + supported.maxCount + ")");
|
name = name.deepCopy().appendString(" (" + supported.maxCount + ")");
|
||||||
}
|
}
|
||||||
supportedTooltipLines.add(name);
|
supportedTooltipLines.add(name);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,9 +71,9 @@ public class AEBaseBlockItemChargeable extends AEBaseBlockItem implements IAEIte
|
|||||||
final double percent = internalCurrentPower / internalMaxPower;
|
final double percent = internalCurrentPower / internalMaxPower;
|
||||||
|
|
||||||
lines.add(GuiText.StoredEnergy.text().deepCopy()
|
lines.add(GuiText.StoredEnergy.text().deepCopy()
|
||||||
.func_240702_b_(':' + MessageFormat.format(" {0,number,#} ", internalCurrentPower))
|
.appendString(':' + MessageFormat.format(" {0,number,#} ", internalCurrentPower))
|
||||||
.func_230529_a_(new TranslationTextComponent(PowerUnits.AE.unlocalizedName))
|
.append(new TranslationTextComponent(PowerUnits.AE.unlocalizedName))
|
||||||
.func_240702_b_(" - " + MessageFormat.format("{0,number,#.##%}", percent)));
|
.appendString(" - " + MessageFormat.format("{0,number,#.##%}", percent)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ public class CableBusBlock extends AEBaseTileBlock<CableBusTileEntity> implement
|
|||||||
// FIXME: Check how this looks, probably like shit, maybe provide parts the
|
// FIXME: Check how this looks, probably like shit, maybe provide parts the
|
||||||
// ability to supply particle textures???
|
// ability to supply particle textures???
|
||||||
effectRenderer.addEffect(
|
effectRenderer.addEffect(
|
||||||
new CableBusBreakingParticle((ClientWorld) world, x, y, z, texture).multipleParticleScaleBy(0.8F));
|
new CableBusBreakingParticle((ClientWorld) world, x, y, z, texture).multiplyParticleScaleBy(0.8F));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public abstract class AEBaseMEScreen<T extends AEBaseContainer> extends AEBaseSc
|
|||||||
final String formattedAmount = NumberFormat.getNumberInstance(Locale.US)
|
final String formattedAmount = NumberFormat.getNumberInstance(Locale.US)
|
||||||
.format(myStack.getStackSize());
|
.format(myStack.getStackSize());
|
||||||
currentToolTip
|
currentToolTip
|
||||||
.add(ButtonToolTips.ItemsStored.text(formattedAmount).func_240699_a_(TextFormatting.GRAY));
|
.add(ButtonToolTips.ItemsStored.text(formattedAmount).mergeStyle(TextFormatting.GRAY));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (myStack.getCountRequestable() > 0) {
|
if (myStack.getCountRequestable() > 0) {
|
||||||
@@ -77,8 +77,7 @@ public abstract class AEBaseMEScreen<T extends AEBaseContainer> extends AEBaseSc
|
|||||||
return;
|
return;
|
||||||
} else if (stack.getCount() > bigNumber) {
|
} else if (stack.getCount() > bigNumber) {
|
||||||
final String formattedAmount = NumberFormat.getNumberInstance(Locale.US).format(stack.getCount());
|
final String formattedAmount = NumberFormat.getNumberInstance(Locale.US).format(stack.getCount());
|
||||||
currentToolTip
|
currentToolTip.add(ButtonToolTips.ItemsStored.text(formattedAmount).mergeStyle(TextFormatting.GRAY));
|
||||||
.add(ButtonToolTips.ItemsStored.text(formattedAmount).func_240699_a_(TextFormatting.GRAY));
|
|
||||||
|
|
||||||
this.renderToolTip(matrixStack, currentToolTip, x, y, this.font);
|
this.renderToolTip(matrixStack, currentToolTip, x, y, this.font);
|
||||||
|
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ public abstract class AEBaseScreen<T extends AEBaseContainer> extends ContainerS
|
|||||||
List<ITextComponent> styledLines = new ArrayList<>(lines.size());
|
List<ITextComponent> styledLines = new ArrayList<>(lines.size());
|
||||||
for (int i = 0; i < lines.size(); i++) {
|
for (int i = 0; i < lines.size(); i++) {
|
||||||
Style style = (i == 0) ? TOOLTIP_HEADER : TOOLTIP_BODY;
|
Style style = (i == 0) ? TOOLTIP_HEADER : TOOLTIP_BODY;
|
||||||
styledLines.add(lines.get(i).deepCopy().func_240700_a_(s -> style));
|
styledLines.add(lines.get(i).deepCopy().modifyStyle(s -> style));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.renderTooltip(matrices, styledLines, x, y);
|
this.renderTooltip(matrices, styledLines, x, y);
|
||||||
@@ -219,7 +219,7 @@ public abstract class AEBaseScreen<T extends AEBaseContainer> extends ContainerS
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected final void func_230451_b_(MatrixStack matrixStack, final int x, final int y) {
|
protected final void drawGuiContainerForegroundLayer(MatrixStack matrixStack, final int x, final int y) {
|
||||||
final int ox = this.guiLeft; // (width - xSize) / 2;
|
final int ox = this.guiLeft; // (width - xSize) / 2;
|
||||||
final int oy = this.guiTop; // (height - ySize) / 2;
|
final int oy = this.guiTop; // (height - ySize) / 2;
|
||||||
RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
|
RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
@@ -234,7 +234,8 @@ public abstract class AEBaseScreen<T extends AEBaseContainer> extends ContainerS
|
|||||||
public abstract void drawFG(MatrixStack matrixStack, int offsetX, int offsetY, int mouseX, int mouseY);
|
public abstract void drawFG(MatrixStack matrixStack, int offsetX, int offsetY, int mouseX, int mouseY);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected final void func_230450_a_(MatrixStack matrixStack, final float f, final int x, final int y) {
|
protected final void drawGuiContainerBackgroundLayer(MatrixStack matrixStack, final float f, final int x,
|
||||||
|
final int y) {
|
||||||
final int ox = this.guiLeft; // (width - xSize) / 2;
|
final int ox = this.guiLeft; // (width - xSize) / 2;
|
||||||
final int oy = this.guiTop; // (height - ySize) / 2;
|
final int oy = this.guiTop; // (height - ySize) / 2;
|
||||||
RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
|
RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
@@ -544,11 +545,6 @@ public abstract class AEBaseScreen<T extends AEBaseContainer> extends ContainerS
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void removed() {
|
|
||||||
super.removed();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected Slot getSlot(final int mouseX, final int mouseY) {
|
protected Slot getSlot(final int mouseX, final int mouseY) {
|
||||||
final List<Slot> slots = this.getInventorySlots();
|
final List<Slot> slots = this.getInventorySlots();
|
||||||
for (final Slot slot : slots) {
|
for (final Slot slot : slots) {
|
||||||
@@ -630,7 +626,7 @@ public abstract class AEBaseScreen<T extends AEBaseContainer> extends ContainerS
|
|||||||
* hackery...
|
* hackery...
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void func_238746_a_(MatrixStack matrices, Slot s) {
|
public void moveItems(MatrixStack matrices, Slot s) {
|
||||||
if (s instanceof SlotME) {
|
if (s instanceof SlotME) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -639,7 +635,7 @@ public abstract class AEBaseScreen<T extends AEBaseContainer> extends ContainerS
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Annoying but easier than trying to splice into render item
|
// Annoying but easier than trying to splice into render item
|
||||||
super.func_238746_a_(matrices, new Size1Slot((SlotME) s));
|
super.moveItems(matrices, new Size1Slot((SlotME) s));
|
||||||
|
|
||||||
this.stackSizeRenderer.renderStackSize(this.font, ((SlotME) s).getAEStack(), s.xPos, s.yPos);
|
this.stackSizeRenderer.renderStackSize(this.font, ((SlotME) s).getAEStack(), s.xPos, s.yPos);
|
||||||
|
|
||||||
@@ -755,9 +751,9 @@ public abstract class AEBaseScreen<T extends AEBaseContainer> extends ContainerS
|
|||||||
|
|
||||||
if (s instanceof AppEngSlot) {
|
if (s instanceof AppEngSlot) {
|
||||||
((AppEngSlot) s).setDisplay(true);
|
((AppEngSlot) s).setDisplay(true);
|
||||||
super.func_238746_a_(matrices, s);
|
super.moveItems(matrices, s);
|
||||||
} else {
|
} else {
|
||||||
super.func_238746_a_(matrices, s);
|
super.moveItems(matrices, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -766,7 +762,7 @@ public abstract class AEBaseScreen<T extends AEBaseContainer> extends ContainerS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// do the usual for non-ME Slots.
|
// do the usual for non-ME Slots.
|
||||||
super.func_238746_a_(matrices, s);
|
super.moveItems(matrices, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isPowered() {
|
protected boolean isPowered() {
|
||||||
|
|||||||
@@ -314,8 +314,8 @@ public class MEMonitorableScreen<T extends MEMonitorableContainer> extends AEBas
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removed() {
|
public void onClose() {
|
||||||
super.removed();
|
super.onClose();
|
||||||
getMinecraft().keyboardListener.enableRepeatEvents(false);
|
getMinecraft().keyboardListener.enableRepeatEvents(false);
|
||||||
memoryText = this.searchField.getText();
|
memoryText = this.searchField.getText();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,8 +87,8 @@ public class ProgressBar extends Widget implements ITooltip {
|
|||||||
}
|
}
|
||||||
ITextComponent result = this.titleName != null ? this.titleName : new StringTextComponent("");
|
ITextComponent result = this.titleName != null ? this.titleName : new StringTextComponent("");
|
||||||
|
|
||||||
return result.deepCopy().func_240702_b_("\n").func_240702_b_(this.source.getCurrentProgress() + " ")
|
return result.deepCopy().appendString("\n").appendString(this.source.getCurrentProgress() + " ")
|
||||||
.func_230529_a_(GuiText.Of.text().deepCopy().func_240702_b_(" " + this.source.getMaxProgress()));
|
.append(GuiText.Of.text().deepCopy().appendString(" " + this.source.getMaxProgress()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ public class SkyCompassBakedModel implements IDynamicBakedModel {
|
|||||||
float offRads = (float) (player.rotationYaw / 180.0f * (float) Math.PI + Math.PI);
|
float offRads = (float) (player.rotationYaw / 180.0f * (float) Math.PI + Math.PI);
|
||||||
|
|
||||||
SkyCompassBakedModel.this.fallbackRotation = offRads
|
SkyCompassBakedModel.this.fallbackRotation = offRads
|
||||||
+ getAnimatedRotation(player.func_233580_cy_(), true);
|
+ getAnimatedRotation(player.getPosition(), true);
|
||||||
} else {
|
} else {
|
||||||
SkyCompassBakedModel.this.fallbackRotation = getAnimatedRotation(null, false);
|
SkyCompassBakedModel.this.fallbackRotation = getAnimatedRotation(null, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,13 +52,11 @@ public class ApiClientHelper implements IClientHelper {
|
|||||||
final ICellInventory<?> cellInventory = handler.getCellInv();
|
final ICellInventory<?> cellInventory = handler.getCellInv();
|
||||||
|
|
||||||
if (cellInventory != null) {
|
if (cellInventory != null) {
|
||||||
lines.add(new StringTextComponent(cellInventory.getUsedBytes() + " ").func_230529_a_(GuiText.Of.text())
|
lines.add(new StringTextComponent(cellInventory.getUsedBytes() + " ").append(GuiText.Of.text())
|
||||||
.func_240702_b_(" " + cellInventory.getTotalBytes() + " ")
|
.appendString(" " + cellInventory.getTotalBytes() + " ").append(GuiText.BytesUsed.text()));
|
||||||
.func_230529_a_(GuiText.BytesUsed.text()));
|
|
||||||
|
|
||||||
lines.add(new StringTextComponent(cellInventory.getStoredItemTypes() + " ")
|
lines.add(new StringTextComponent(cellInventory.getStoredItemTypes() + " ").append(GuiText.Of.text())
|
||||||
.func_230529_a_(GuiText.Of.text()).func_240702_b_(" " + cellInventory.getTotalItemTypes() + " ")
|
.appendString(" " + cellInventory.getTotalItemTypes() + " ").append(GuiText.Types.text()));
|
||||||
.func_230529_a_(GuiText.Types.text()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handler.isPreformatted()) {
|
if (handler.isPreformatted()) {
|
||||||
@@ -66,9 +64,9 @@ public class ApiClientHelper implements IClientHelper {
|
|||||||
: GuiText.Excluded).getLocal();
|
: GuiText.Excluded).getLocal();
|
||||||
|
|
||||||
if (handler.isFuzzy()) {
|
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 {
|
} 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) {
|
public IFormattableTextComponent withSuffix(String text) {
|
||||||
return text().deepCopy().func_240702_b_(text);
|
return text().deepCopy().appendString(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IFormattableTextComponent withSuffix(ITextComponent text) {
|
public IFormattableTextComponent withSuffix(ITextComponent text) {
|
||||||
return text().deepCopy().func_230529_a_(text);
|
return text().deepCopy().append(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IFormattableTextComponent text(Object... args) {
|
public IFormattableTextComponent text(Object... args) {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ public class AppEngAdvancementTrigger
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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());
|
return new AppEngAdvancementTrigger.Instance(this.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ public class AppEngAdvancementTrigger
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JsonObject func_230240_a_(ConditionArraySerializer p_230240_1_) {
|
public JsonObject serialize(ConditionArraySerializer p_230240_1_) {
|
||||||
return new JsonObject();
|
return new JsonObject();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public class FluidTankWidget extends Widget implements ITooltip {
|
|||||||
final IAEFluidStack fluid = this.tank.getFluidInSlot(this.slot);
|
final IAEFluidStack fluid = this.tank.getFluidInSlot(this.slot);
|
||||||
if (fluid != null && fluid.getStackSize() > 0) {
|
if (fluid != null && fluid.getStackSize() > 0) {
|
||||||
return fluid.getFluid().getAttributes().getDisplayName(fluid.getFluidStack()).deepCopy()
|
return fluid.getFluid().getAttributes().getDisplayName(fluid.getFluidStack()).deepCopy()
|
||||||
.func_240702_b_("\n" + (fluid.getStackSize() + "mB"));
|
.appendString("\n" + (fluid.getStackSize() + "mB"));
|
||||||
}
|
}
|
||||||
return new StringTextComponent("");
|
return new StringTextComponent("");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,11 +126,10 @@ public class InvalidPatternHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ITextComponent getFormattedToolTip() {
|
public ITextComponent getFormattedToolTip() {
|
||||||
IFormattableTextComponent result = new StringTextComponent(this.getCount() + " ")
|
IFormattableTextComponent result = new StringTextComponent(this.getCount() + " ").append(this.getName());
|
||||||
.func_230529_a_(this.getName());
|
|
||||||
|
|
||||||
if (!this.isValid()) {
|
if (!this.isValid()) {
|
||||||
result.func_240699_a_(TextFormatting.RED);
|
result.mergeStyle(TextFormatting.RED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -58,12 +58,12 @@ public class MetaRotation implements IOrientable {
|
|||||||
public Direction getUp() {
|
public Direction getUp() {
|
||||||
final BlockState state = this.w.getBlockState(this.pos);
|
final BlockState state = this.w.getBlockState(this.pos);
|
||||||
|
|
||||||
if (this.facingProp != null && state.func_235901_b_(this.facingProp)) {
|
if (this.facingProp != null && state.hasProperty(this.facingProp)) {
|
||||||
return state.get(this.facingProp);
|
return state.get(this.facingProp);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO 1.10.2-R - Temp
|
// TODO 1.10.2-R - Temp
|
||||||
if (state.func_235901_b_(QuartzPillarBlock.AXIS)) {
|
if (state.hasProperty(QuartzPillarBlock.AXIS)) {
|
||||||
Axis a = state.get(QuartzPillarBlock.AXIS);
|
Axis a = state.get(QuartzPillarBlock.AXIS);
|
||||||
switch (a) {
|
switch (a) {
|
||||||
case X:
|
case X:
|
||||||
|
|||||||
@@ -116,33 +116,33 @@ public class EncodedPatternItem extends AEBaseItem {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
stack.setDisplayName(GuiText.InvalidPattern.text().deepCopy().func_240701_a_(TextFormatting.RED));
|
stack.setDisplayName(GuiText.InvalidPattern.text().deepCopy().mergeStyle(TextFormatting.RED));
|
||||||
|
|
||||||
InvalidPatternHelper invalid = new InvalidPatternHelper(stack);
|
InvalidPatternHelper invalid = new InvalidPatternHelper(stack);
|
||||||
|
|
||||||
final ITextComponent label = (invalid.isCraftable() ? GuiText.Crafts.text() : GuiText.Creates.text())
|
final ITextComponent label = (invalid.isCraftable() ? GuiText.Crafts.text() : GuiText.Creates.text())
|
||||||
.deepCopy().func_240702_b_(": ");
|
.deepCopy().appendString(": ");
|
||||||
final ITextComponent and = new StringTextComponent(" ").deepCopy().func_230529_a_(GuiText.And.text())
|
final ITextComponent and = new StringTextComponent(" ").deepCopy().append(GuiText.And.text()).deepCopy()
|
||||||
.deepCopy().func_240702_b_(" ");
|
.appendString(" ");
|
||||||
final ITextComponent with = GuiText.With.text().deepCopy().func_240702_b_(": ");
|
final ITextComponent with = GuiText.With.text().deepCopy().appendString(": ");
|
||||||
|
|
||||||
boolean first = true;
|
boolean first = true;
|
||||||
for (final InvalidPatternHelper.PatternIngredient output : invalid.getOutputs()) {
|
for (final InvalidPatternHelper.PatternIngredient output : invalid.getOutputs()) {
|
||||||
lines.add((first ? label : and).deepCopy().func_230529_a_(output.getFormattedToolTip()));
|
lines.add((first ? label : and).deepCopy().append(output.getFormattedToolTip()));
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
first = true;
|
first = true;
|
||||||
for (final InvalidPatternHelper.PatternIngredient input : invalid.getInputs()) {
|
for (final InvalidPatternHelper.PatternIngredient input : invalid.getInputs()) {
|
||||||
lines.add((first ? with : and).deepCopy().func_230529_a_(input.getFormattedToolTip()));
|
lines.add((first ? with : and).deepCopy().append(input.getFormattedToolTip()));
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (invalid.isCraftable()) {
|
if (invalid.isCraftable()) {
|
||||||
final ITextComponent substitutionLabel = GuiText.Substitute.text().deepCopy().func_240702_b_(" ");
|
final ITextComponent substitutionLabel = GuiText.Substitute.text().deepCopy().appendString(" ");
|
||||||
final ITextComponent canSubstitute = invalid.canSubstitute() ? GuiText.Yes.text() : GuiText.No.text();
|
final ITextComponent canSubstitute = invalid.canSubstitute() ? GuiText.Yes.text() : GuiText.No.text();
|
||||||
|
|
||||||
lines.add(substitutionLabel.deepCopy().func_230529_a_(canSubstitute));
|
lines.add(substitutionLabel.deepCopy().append(canSubstitute));
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -159,10 +159,9 @@ public class EncodedPatternItem extends AEBaseItem {
|
|||||||
final Collection<IAEItemStack> out = details.getOutputs();
|
final Collection<IAEItemStack> out = details.getOutputs();
|
||||||
|
|
||||||
final ITextComponent label = (isCrafting ? GuiText.Crafts.text() : GuiText.Creates.text()).deepCopy()
|
final ITextComponent label = (isCrafting ? GuiText.Crafts.text() : GuiText.Creates.text()).deepCopy()
|
||||||
.func_240702_b_(": ");
|
.appendString(": ");
|
||||||
final ITextComponent and = new StringTextComponent(" ").deepCopy().func_230529_a_(GuiText.And.text())
|
final ITextComponent and = new StringTextComponent(" ").deepCopy().append(GuiText.And.text()).appendString(" ");
|
||||||
.func_240702_b_(" ");
|
final ITextComponent with = GuiText.With.text().deepCopy().appendString(": ");
|
||||||
final ITextComponent with = GuiText.With.text().deepCopy().func_240702_b_(": ");
|
|
||||||
|
|
||||||
boolean first = true;
|
boolean first = true;
|
||||||
for (final IAEItemStack anOut : out) {
|
for (final IAEItemStack anOut : out) {
|
||||||
@@ -170,8 +169,8 @@ public class EncodedPatternItem extends AEBaseItem {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
lines.add((first ? label : and).deepCopy().func_240702_b_(anOut.getStackSize() + "x ")
|
lines.add((first ? label : and).deepCopy().appendString(anOut.getStackSize() + "x ")
|
||||||
.func_230529_a_(Platform.getItemDisplayName(anOut)));
|
.append(Platform.getItemDisplayName(anOut)));
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -181,16 +180,16 @@ public class EncodedPatternItem extends AEBaseItem {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
lines.add((first ? with : and).deepCopy().func_240702_b_(anIn.getStackSize() + "x ")
|
lines.add((first ? with : and).deepCopy().appendString(anIn.getStackSize() + "x ")
|
||||||
.func_230529_a_(Platform.getItemDisplayName(anIn)));
|
.append(Platform.getItemDisplayName(anIn)));
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isCrafting) {
|
if (isCrafting) {
|
||||||
final ITextComponent substitutionLabel = GuiText.Substitute.text().deepCopy().func_240702_b_(" ");
|
final ITextComponent substitutionLabel = GuiText.Substitute.text().deepCopy().appendString(" ");
|
||||||
final ITextComponent canSubstitute = substitute ? GuiText.Yes.text() : GuiText.No.text();
|
final ITextComponent canSubstitute = substitute ? GuiText.Yes.text() : GuiText.No.text();
|
||||||
|
|
||||||
lines.add(substitutionLabel.deepCopy().func_230529_a_(canSubstitute));
|
lines.add(substitutionLabel.deepCopy().append(canSubstitute));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public class FacadeItem extends AEBaseItem implements IFacadeItem, IAlphaPassIte
|
|||||||
try {
|
try {
|
||||||
final ItemStack in = this.getTextureItem(is);
|
final ItemStack in = this.getTextureItem(is);
|
||||||
if (!in.isEmpty()) {
|
if (!in.isEmpty()) {
|
||||||
return super.getDisplayName(is).deepCopy().func_240702_b_(" - ").func_230529_a_(in.getDisplayName());
|
return super.getDisplayName(is).deepCopy().appendString(" - ").append(in.getDisplayName());
|
||||||
}
|
}
|
||||||
} catch (final Throwable ignored) {
|
} catch (final Throwable ignored) {
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ public class SpatialStorageCellItem extends AEBaseItem implements ISpatialStorag
|
|||||||
final ITooltipFlag advancedTooltips) {
|
final ITooltipFlag advancedTooltips) {
|
||||||
final RegistryKey<World> worldId = this.getStoredDimension(stack);
|
final RegistryKey<World> worldId = this.getStoredDimension(stack);
|
||||||
if (worldId == null) {
|
if (worldId == null) {
|
||||||
lines.add(GuiText.Unformatted.text().deepCopy().func_240699_a_(TextFormatting.ITALIC));
|
lines.add(GuiText.Unformatted.text().deepCopy().mergeStyle(TextFormatting.ITALIC));
|
||||||
lines.add(GuiText.SpatialCapacity.text(maxRegion, maxRegion, maxRegion));
|
lines.add(GuiText.SpatialCapacity.text(maxRegion, maxRegion, maxRegion));
|
||||||
} else {
|
} else {
|
||||||
SpatialDimensionManager.INSTANCE.addCellDimensionTooltip(worldId, lines);
|
SpatialDimensionManager.INSTANCE.addCellDimensionTooltip(worldId, lines);
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public class BiometricCardItem extends AEBaseItem implements IBiometricCard {
|
|||||||
@Override
|
@Override
|
||||||
public ITextComponent getDisplayName(final ItemStack is) {
|
public ITextComponent getDisplayName(final ItemStack is) {
|
||||||
final GameProfile username = this.getProfile(is);
|
final GameProfile username = this.getProfile(is);
|
||||||
return username != null ? super.getDisplayName(is).deepCopy().func_240702_b_(" - " + username.getName())
|
return username != null ? super.getDisplayName(is).deepCopy().appendString(" - " + username.getName())
|
||||||
: super.getDisplayName(is);
|
: super.getDisplayName(is);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,8 +167,8 @@ public class BiometricCardItem extends AEBaseItem implements IBiometricCard {
|
|||||||
if (msg == null) {
|
if (msg == null) {
|
||||||
msg = new TranslationTextComponent(sp.getTranslatedName());
|
msg = new TranslationTextComponent(sp.getTranslatedName());
|
||||||
} else {
|
} else {
|
||||||
msg = msg.deepCopy().func_240702_b_(", ")
|
msg = msg.deepCopy().appendString(", ")
|
||||||
.func_230529_a_(new TranslationTextComponent(sp.getTranslatedName()));
|
.append(new TranslationTextComponent(sp.getTranslatedName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lines.add(msg);
|
lines.add(msg);
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ public class ColorApplicatorItem extends AEBasePoweredItem
|
|||||||
extra = new TranslationTextComponent(selected.translationKey);
|
extra = new TranslationTextComponent(selected.translationKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.getDisplayName(is).deepCopy().func_240702_b_(" - ").func_230529_a_(extra);
|
return super.getDisplayName(is).deepCopy().appendString(" - ").append(extra);
|
||||||
}
|
}
|
||||||
|
|
||||||
public AEColor getActiveColor(final ItemStack tol) {
|
public AEColor getActiveColor(final ItemStack tol) {
|
||||||
@@ -328,7 +328,7 @@ public class ColorApplicatorItem extends AEBasePoweredItem
|
|||||||
Block recolored = BlockRecolorer.recolor(blk, newColor);
|
Block recolored = BlockRecolorer.recolor(blk, newColor);
|
||||||
if (recolored != blk) {
|
if (recolored != blk) {
|
||||||
BlockState newState = recolored.getDefaultState();
|
BlockState newState = recolored.getDefaultState();
|
||||||
for (Property<?> prop : newState.func_235904_r_()) {
|
for (Property<?> prop : newState.getProperties()) {
|
||||||
newState = copyProp(state, newState, prop);
|
newState = copyProp(state, newState, prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -355,7 +355,7 @@ public class ColorApplicatorItem extends AEBasePoweredItem
|
|||||||
|
|
||||||
private static <T extends Comparable<T>> BlockState copyProp(BlockState oldState, BlockState newState,
|
private static <T extends Comparable<T>> BlockState copyProp(BlockState oldState, BlockState newState,
|
||||||
Property<T> prop) {
|
Property<T> prop) {
|
||||||
if (newState.func_235901_b_(prop)) {
|
if (newState.hasProperty(prop)) {
|
||||||
return newState.with(prop, oldState.get(prop));
|
return newState.with(prop, oldState.get(prop));
|
||||||
}
|
}
|
||||||
return newState;
|
return newState;
|
||||||
|
|||||||
@@ -67,9 +67,9 @@ public abstract class AEBasePoweredItem extends AEBaseItem implements IAEItemPow
|
|||||||
final double percent = internalCurrentPower / internalMaxPower;
|
final double percent = internalCurrentPower / internalMaxPower;
|
||||||
|
|
||||||
lines.add(GuiText.StoredEnergy.text().deepCopy()
|
lines.add(GuiText.StoredEnergy.text().deepCopy()
|
||||||
.func_240702_b_(':' + MessageFormat.format(" {0,number,#} ", internalCurrentPower))
|
.appendString(':' + MessageFormat.format(" {0,number,#} ", internalCurrentPower))
|
||||||
.func_230529_a_(PowerUnits.AE.textComponent())
|
.append(PowerUnits.AE.textComponent())
|
||||||
.func_240702_b_(" - " + MessageFormat.format(" {0,number,#.##%} ", percent)));
|
.appendString(" - " + MessageFormat.format(" {0,number,#.##%} ", percent)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -1106,7 +1106,7 @@ public final class CraftingCPUCluster implements IAECluster, ICraftingCPU {
|
|||||||
|
|
||||||
if (te.hasCustomInventoryName()) {
|
if (te.hasCustomInventoryName()) {
|
||||||
if (this.myName != null) {
|
if (this.myName != null) {
|
||||||
this.myName.deepCopy().func_240702_b_(" ").func_230529_a_(te.getCustomInventoryName());
|
this.myName.deepCopy().appendString(" ").append(te.getCustomInventoryName());
|
||||||
} else {
|
} else {
|
||||||
this.myName = te.getCustomInventoryName().deepCopy();
|
this.myName = te.getCustomInventoryName().deepCopy();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,16 +54,16 @@ public class MinecraftServerMixin implements DynamicDimensions {
|
|||||||
|
|
||||||
// Each worlds must have a corresponding dimension options, otherwise they will
|
// Each worlds must have a corresponding dimension options, otherwise they will
|
||||||
// not be re-created on load
|
// not be re-created on load
|
||||||
DimensionGeneratorSettings generatorOptions = this.field_240768_i_.func_230418_z_();
|
DimensionGeneratorSettings generatorOptions = this.field_240768_i_.getDimensionGeneratorSettings();
|
||||||
Preconditions.checkArgument(!generatorOptions.func_236224_e_().containsKey(worldId.func_240901_a_()),
|
Preconditions.checkArgument(!generatorOptions.func_236224_e_().containsKey(worldId.func_240901_a_()),
|
||||||
"Dimension config with id %s already exists.", worldId.func_240901_a_());
|
"Dimension config with id %s already exists.", worldId.func_240901_a_());
|
||||||
|
|
||||||
DimensionType dimensionType = field_240767_f_.func_230520_a_().func_230516_a_(dimensionTypeId);
|
DimensionType dimensionType = field_240767_f_.func_230520_a_().getValueForKey(dimensionTypeId);
|
||||||
Preconditions.checkArgument(dimensionType != null, "dimensionTypeId %s is not registered", dimensionTypeId);
|
Preconditions.checkArgument(dimensionType != null, "dimensionTypeId %s is not registered", dimensionTypeId);
|
||||||
|
|
||||||
// Create dimension options with the given world-id and chunk generator
|
// Create dimension options with the given world-id and chunk generator
|
||||||
Dimension dimensionOptions = new Dimension(
|
Dimension dimensionOptions = new Dimension(
|
||||||
() -> field_240767_f_.func_230520_a_().func_230516_a_(dimensionTypeId), chunkGenerator);
|
() -> field_240767_f_.func_230520_a_().getValueForKey(dimensionTypeId), chunkGenerator);
|
||||||
|
|
||||||
IServerWorldInfo serverWorldProperties = this.field_240768_i_.func_230407_G_();
|
IServerWorldInfo serverWorldProperties = this.field_240768_i_.func_230407_G_();
|
||||||
|
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ public class CableAnchorPart implements IPart {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isLadder(final LivingEntity entity) {
|
public boolean isLadder(final LivingEntity entity) {
|
||||||
return this.mySide.yOffset == 0 && (entity.collidedHorizontally || !entity.func_233570_aj_());
|
return this.mySide.yOffset == 0 && (entity.collidedHorizontally || !entity.isOnGround());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -169,12 +169,12 @@ public class TestMeteoritesCommand implements ISubCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
IFormattableTextComponent msg = new StringTextComponent(" #" + (i + 1) + " ");
|
IFormattableTextComponent msg = new StringTextComponent(" #" + (i + 1) + " ");
|
||||||
msg.func_230529_a_(getClickablePosition(world, settings, pos)).func_230529_a_(restOfLine);
|
msg.append(getClickablePosition(world, settings, pos)).append(restOfLine);
|
||||||
|
|
||||||
// Add a tooltip
|
// Add a tooltip
|
||||||
ITextComponent tooltip = new StringTextComponent(settings.toString() + "\nBiome: ").deepCopy()
|
ITextComponent tooltip = new StringTextComponent(settings.toString() + "\nBiome: ").deepCopy()
|
||||||
.func_230529_a_(world.getBiome(pos).getDisplayName());
|
.append(world.getBiome(pos).getDisplayName());
|
||||||
msg.func_240700_a_(style -> style.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, tooltip)));
|
msg.modifyStyle(style -> style.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, tooltip)));
|
||||||
|
|
||||||
sender.sendFeedback(msg, true);
|
sender.sendFeedback(msg, true);
|
||||||
}
|
}
|
||||||
@@ -192,8 +192,8 @@ public class TestMeteoritesCommand implements ISubCommand {
|
|||||||
String displayText = String.format(Locale.ROOT, "pos=%d,%d,%d", tpPos.getX(), tpPos.getY(), tpPos.getZ());
|
String displayText = String.format(Locale.ROOT, "pos=%d,%d,%d", tpPos.getX(), tpPos.getY(), tpPos.getZ());
|
||||||
String tpCommand = String.format(Locale.ROOT, "/tp @s %d %d %d", tpPos.getX(), tpPos.getY(), tpPos.getZ());
|
String tpCommand = String.format(Locale.ROOT, "/tp @s %d %d %d", tpPos.getX(), tpPos.getY(), tpPos.getZ());
|
||||||
|
|
||||||
return new StringTextComponent(displayText).func_240699_a_(TextFormatting.UNDERLINE)
|
return new StringTextComponent(displayText).mergeStyle(TextFormatting.UNDERLINE)
|
||||||
.func_240700_a_(style -> style.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, tpCommand)));
|
.modifyStyle(style -> style.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, tpCommand)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static MeteoriteStructurePiece getMeteoritePieceFromChunk(IChunk chunk) {
|
private static MeteoriteStructurePiece getMeteoritePieceFromChunk(IChunk chunk) {
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ public class StorageCellBiome extends Biome {
|
|||||||
new ConfiguredSurfaceBuilder<>(SurfaceBuilder.NOPE, SurfaceBuilder.STONE_STONE_GRAVEL_CONFIG))
|
new ConfiguredSurfaceBuilder<>(SurfaceBuilder.NOPE, SurfaceBuilder.STONE_STONE_GRAVEL_CONFIG))
|
||||||
.precipitation(RainType.NONE).category(Category.NONE).depth(0).scale(1)
|
.precipitation(RainType.NONE).category(Category.NONE).depth(0).scale(1)
|
||||||
// Copied from the vanilla void biome
|
// Copied from the vanilla void biome
|
||||||
.temperature(0.5F).downfall(0.5F).func_235097_a_(new BiomeAmbience.Builder().func_235246_b_(4159204)
|
.temperature(0.5F).downfall(0.5F).func_235097_a_(new BiomeAmbience.Builder().setWaterColor(4159204)
|
||||||
.func_235248_c_(329011).func_235239_a_(0).func_235238_a_())
|
.setWaterFogColor(329011).setFogColor(0).build())
|
||||||
.parent(null));
|
.parent(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ public class StorageChunkGenerator extends ChunkGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int func_222529_a(int p_222529_1_, int p_222529_2_, Heightmap.Type heightmapType) {
|
public int getHeight(int p_222529_1_, int p_222529_2_, Heightmap.Type heightmapType) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ public class Platform {
|
|||||||
final ISecurityGrid sg = g.getCache(ISecurityGrid.class);
|
final ISecurityGrid sg = g.getCache(ISecurityGrid.class);
|
||||||
if (!sg.hasPermission(player, requiredPermission)) {
|
if (!sg.hasPermission(player, requiredPermission)) {
|
||||||
player.sendMessage(new TranslationTextComponent("appliedenergistics2.permission_denied")
|
player.sendMessage(new TranslationTextComponent("appliedenergistics2.permission_denied")
|
||||||
.func_240699_a_(TextFormatting.RED), Util.DUMMY_UUID);
|
.mergeStyle(TextFormatting.RED), Util.DUMMY_UUID);
|
||||||
// FIXME trace logging?
|
// FIXME trace logging?
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import net.minecraft.world.gen.feature.ReplaceBlockConfig;
|
|||||||
public class ChargedQuartzOreConfig implements IFeatureConfig {
|
public class ChargedQuartzOreConfig implements IFeatureConfig {
|
||||||
|
|
||||||
public static final Codec<ChargedQuartzOreConfig> CODEC = RecordCodecBuilder.create((instance) -> instance
|
public static final Codec<ChargedQuartzOreConfig> CODEC = RecordCodecBuilder.create((instance) -> instance
|
||||||
.group(BlockState.field_235877_b_.fieldOf("target").forGetter((config) -> config.target),
|
.group(BlockState.BLOCKSTATE_CODEC.fieldOf("target").forGetter((config) -> config.target),
|
||||||
BlockState.field_235877_b_.fieldOf("state").forGetter((config) -> config.state),
|
BlockState.BLOCKSTATE_CODEC.fieldOf("state").forGetter((config) -> config.state),
|
||||||
Codec.FLOAT.fieldOf("chance").withDefault(0f).forGetter((config) -> config.chance))
|
Codec.FLOAT.fieldOf("chance").withDefault(0f).forGetter((config) -> config.chance))
|
||||||
.apply(instance, ChargedQuartzOreConfig::new));
|
.apply(instance, ChargedQuartzOreConfig::new));
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class MeteoriteStructureStart extends StructureStart<NoFeatureConfig> {
|
|||||||
int scanRadius = (int) Math.max(1, meteoriteRadius * 2);
|
int scanRadius = (int) Math.max(1, meteoriteRadius * 2);
|
||||||
for (int x = -scanRadius; x <= scanRadius; x++) {
|
for (int x = -scanRadius; x <= scanRadius; x++) {
|
||||||
for (int z = -scanRadius; z <= scanRadius; z++) {
|
for (int z = -scanRadius; z <= scanRadius; z++) {
|
||||||
int h = generator.func_222529_a(centerX + x, centerZ + z, heightmapType);
|
int h = generator.getHeight(centerX + x, centerZ + z, heightmapType);
|
||||||
stats.add(h);
|
stats.add(h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -106,7 +106,7 @@ public class MeteoriteStructureStart extends StructureStart<NoFeatureConfig> {
|
|||||||
final double distanceFrom = dx * dx + dz * dz;
|
final double distanceFrom = dx * dx + dz * dz;
|
||||||
|
|
||||||
if (maxY > h + distanceFrom * 0.0175 && maxY < h + distanceFrom * 0.02) {
|
if (maxY > h + distanceFrom * 0.0175 && maxY < h + distanceFrom * 0.02) {
|
||||||
int heigth = generator.func_222529_a(blockPos.getX(), blockPos.getZ(), Heightmap.Type.OCEAN_FLOOR);
|
int heigth = generator.getHeight(blockPos.getX(), blockPos.getZ(), Heightmap.Type.OCEAN_FLOOR);
|
||||||
if (heigth < seaLevel) {
|
if (heigth < seaLevel) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# GUI rendering
|
# GUI rendering
|
||||||
protected net.minecraft.client.gui.screen.inventory.ContainerScreen func_238746_a_(Lcom/mojang/blaze3d/matrix/MatrixStack;Lnet/minecraft/inventory/container/Slot;)V # drawSlot
|
protected net.minecraft.client.gui.screen.inventory.ContainerScreen func_238746_a_(Lcom/mojang/blaze3d/matrix/MatrixStack;Lnet/minecraft/inventory/container/Slot;)V # moveItems
|
||||||
public net.minecraft.client.gui.widget.TextFieldWidget func_146188_c(IIII)V # drawSelectionBox
|
public net.minecraft.client.gui.widget.TextFieldWidget func_146188_c(IIII)V # drawSelectionBox
|
||||||
public net.minecraft.client.gui.widget.TextFieldWidget func_146208_g()I # getMaxStringLength
|
public net.minecraft.client.gui.widget.TextFieldWidget func_146208_g()I # getMaxStringLength
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user