Skip to content

Commit

Permalink
Updated Forge and dependencies (AppliedEnergistics#5208)
Browse files Browse the repository at this point in the history
Updated Forge to the latest RB 36.1.0.
Updated JEI to the 1.16.5 builds instead of 1.16.4
Updated TOP to 3.0.8
Updated mappings to 20210309-1.16.5
Updated spotless to 5.12.4
  • Loading branch information
yueh authored May 11, 2021
1 parent fca741b commit b72a3aa
Show file tree
Hide file tree
Showing 124 changed files with 155 additions and 174 deletions.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ buildscript {

plugins {
id "maven-publish"
id "com.diffplug.gradle.spotless" version "4.3.0"
id "com.diffplug.spotless" version "5.12.4"
id "com.matthewprenger.cursegradle" version "1.4.0"
id "idea"
}
Expand Down Expand Up @@ -339,13 +339,17 @@ publishing {
/////////////
// Spotless
spotless {

java {
target 'src/*/java/appeng/**/*.java'

endWithNewline()
indentWithSpaces()
removeUnusedImports()
eclipse().configFile 'codeformat/codeformat.xml'
importOrderFile 'codeformat/ae2.importorder'
}

format 'json', {
target 'src/*/resources/**/*.json'
targetExclude 'src/generated/resources/**'
Expand Down
2 changes: 1 addition & 1 deletion codeformat/copyright.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This file is part of Applied Energistics 2.
Copyright (c) 2013 - $YEAR, AlgorithmX2, All rights reserved.
Copyright (c) $YEAR, TeamAppliedEnergistics, All rights reserved.

Applied Energistics 2 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ minecraft_release=1.16
minecraft_version=1.16.5
minecraft_version_range=[1.16.5,1.17.0)
mcp_channel=snapshot
mcp_mappings=20201028-1.16.3
forge_version=36.0.42
forge_version_range=[36.0.21,37.0.0)
mcp_mappings=20210309-1.16.5
forge_version=36.1.0
forge_version_range=[36.1.0,37.0.0)

#########################################################
# Provided APIs #
#########################################################
jei_minecraft_version=1.16.4
jei_version=7.6.1.71
top_version=3.0.6-8
jei_minecraft_version=1.16.5
jei_version=7.6.4.90
top_version=3.0.8-14

#########################################################
# Deployment #
Expand Down
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/IAppEngApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ public interface IAppEngApi {
*/
IClientHelper client();

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/AccessRestriction.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ public AccessRestriction addPermissions(final AccessRestriction ar) {
public AccessRestriction removePermissions(final AccessRestriction ar) {
return this.getPermByBit(this.permissionBit & (~ar.permissionBit));
}
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/ActionItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

public enum ActionItems {
WRENCH, CLOSE, STASH, ENCODE, ENABLE_SUBSTITUTION, DISABLE_SUBSTITUTION
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/CondenserOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ public enum CondenserOutput {

public int requiredPower = 0;

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/FullnessMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

public enum FullnessMode {
EMPTY, HALF, FULL
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/FuzzyMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ public int calculateBreakPoint(final int maxDamage) {
return (int) ((this.percentage * maxDamage) / 100.0f);
}

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/IncludeExclude.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

public enum IncludeExclude {
WHITELIST, BLACKLIST
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/LevelEmitterMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public enum LevelEmitterMode {

STORABLE_AMOUNT

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/LevelType.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public enum LevelType {

ENERGY_LEVEL

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/NetworkEmitterMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public enum NetworkEmitterMode {

CHANNEL_ERROR

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/OperationMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

public enum OperationMode {
FILL, EMPTY
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/PowerUnits.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ public ITextComponent textComponent() {
return new TranslationTextComponent(unlocalizedName);
}

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/RedstoneMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

public enum RedstoneMode {
IGNORE, LOW_SIGNAL, HIGH_SIGNAL, SIGNAL_PULSE
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/RelativeDirection.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

public enum RelativeDirection {
LEFT, RIGHT, UP, DOW
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/SortDir.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

public enum SortDir {
ASCENDING, DESCENDING
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/SortOrder.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

public enum SortOrder {
NAME, AMOUNT, MOD
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/TerminalStyle.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public enum TerminalStyle {

SMALL

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/config/ViewItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

public enum ViewItems {
ALL, STORED, CRAFTABLE
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ public interface IItemComparisonProvider {
* @return true, if getComparison will return a valid IItemComparison Object
*/
boolean canHandle(ItemStack stack);
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/features/ILocatable.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ public interface ILocatable {
* @return the serial for a locatable object
*/
long getLocatableSerial();
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/features/ILocatableRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ public interface ILocatableRegistry {
* @return requestedObject, or null, if the object does not exist anymore
*/
ILocatable getLocatableBy(long serial);
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/features/IP2PTunnelRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ public interface IP2PTunnelRegistry {
*/
@Nonnull
TunnelType getTunnelTypeByItem(ItemStack trigger);
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/features/IWirelessTermHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ public interface IWirelessTermHandler extends INetworkEncodable {
* @return config manager of wireless terminal
*/
IConfigManager getConfigManager(ItemStack is);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ public interface IAEItemPowerStorage {
*/
AccessRestriction getPowerFlow(ItemStack stack);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ public interface ISpatialStorageCell {
* @return success of transition
*/
boolean doSpatialTransition(ItemStack is, ServerWorld w, WorldCoord min, WorldCoord max, int playerId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ public interface IStorageMonitorPart extends IMonitorPart, IPart, IGridHost, INe
* @return the current locked state of the Storage Monitor
*/
boolean isLocked();
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/movable/IMovableHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ public interface IMovableHandler {
* @param newPosition the new location
*/
void moveTile(TileEntity tile, World world, BlockPos newPosition);
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/movable/IMovableRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ public interface IMovableRegistry {
* @return true if this block is blacklisted
*/
boolean isBlacklisted(Block blk);
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/networking/IGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ public interface IGrid {
*/
@Nonnull
IGridNode getPivot();
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/networking/IGridConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ public interface IGridConnection {
* @return how many channels pass over this connections.
*/
int getUsedChannels();
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/networking/IGridHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ public interface IGridHelper {
@Nonnull
IGridConnection createGridConnection(@Nonnull IGridNode a, @Nonnull IGridNode b) throws FailedConnectionException;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ public MENetworkChunkRemoved(ServerWorld world, ChunkPos chunkPos) {

}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ public interface IPathingGrid extends IGridCache {
* trigger a network reset, booting, path-finding and all.
*/
void repath();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ public interface IActionSource {
*/
@Nonnull
<T> Optional<T> context(@Nonnull Class<T> key);
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/parts/IFacadePart.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ public interface IFacadePart {
*/
BlockState getBlockState();

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/parts/IPartHost.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ public interface IPartHost extends ICustomCableConnection {
*/
boolean isInWorld();

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/parts/IPartItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ public interface IPartItem<P extends IPart> {
*/
P createPart(ItemStack is);

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/storage/ICellRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ public interface ICellRegistry {
@Nullable
<T extends IAEStack<T>> ICellInventoryHandler<T> getCellInventory(ItemStack is, ISaveProvider host,
IStorageChannel<T> chan);
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/storage/cells/CellState.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ public enum CellState {
* Full cell, technically could have free types
*/
FULL;
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/storage/cells/ICellHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ default <T extends IAEStack<T>> double cellIdleDrain(ItemStack is, ICellInventor
}
return 1.0;
}
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/storage/data/IAEItemStack.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ public interface IAEItemStack extends IAEStack<IAEItemStack> {
*/
boolean equals(ItemStack is);

}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/storage/data/IItemContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ public interface IItemContainer<T extends IAEStack<T>> {
* @return true if there are no items in the list
*/
boolean isEmpty();
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/storage/data/IItemList.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ public interface IItemList<T extends IAEStack<T>> extends IItemContainer<T>, Ite
* resets stack sizes to 0.
*/
void resetStatus();
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/util/ICommonTile.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ public interface ICommonTile {
* @param drops drops of tile entity
*/
void getDrops(World world, BlockPos pos, List<ItemStack> drops);
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/util/IOrientable.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ public interface IOrientable {
* @param Up new upwards direction
*/
void setOrientation(Direction Forward, Direction Up);
}
}
2 changes: 1 addition & 1 deletion src/api/java/appeng/api/util/IOrientableBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public interface IOrientableBlock {
* @return a IOrientable if applicable
*/
IOrientable getOrientable(IBlockReader world, BlockPos pos);
}
}
2 changes: 1 addition & 1 deletion src/main/java/appeng/block/AEBaseBlockItemChargeable.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void addCheckedInformation(final ItemStack stack, final World world, fina

lines.add(GuiText.StoredEnergy.text().deepCopy()
.appendString(':' + MessageFormat.format(" {0,number,#} ", internalCurrentPower))
.append(new TranslationTextComponent(PowerUnits.AE.unlocalizedName))
.appendSibling(new TranslationTextComponent(PowerUnits.AE.unlocalizedName))
.appendString(" - " + MessageFormat.format("{0,number,#.##%}", percent)));
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/appeng/block/misc/TinyTNTBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void onEntityWalk(final World w, final BlockPos pos, final Entity entity)
if (entityarrow.isBurning()) {
LivingEntity igniter = null;
// Check if the shooter still exists
Entity shooter = entityarrow.func_234616_v_();
Entity shooter = entityarrow.getShooter();
if (shooter instanceof LivingEntity) {
igniter = (LivingEntity) shooter;
}
Expand Down
Loading

0 comments on commit b72a3aa

Please sign in to comment.