reformatted all src files (#141)

This commit is contained in:
YoungOnion
2022-09-17 05:08:02 -06:00
committed by GitHub
parent 3328bfcda2
commit 9011273229
1056 changed files with 88127 additions and 110597 deletions
@@ -19,61 +19,52 @@
package appeng.client.me;
import javax.annotation.Nonnull;
import appeng.tile.inventory.AppEngInternalInventory;
import net.minecraft.util.text.translation.I18n;
import appeng.tile.inventory.AppEngInternalInventory;
import javax.annotation.Nonnull;
public class ClientDCInternalInv implements Comparable<ClientDCInternalInv>
{
public class ClientDCInternalInv implements Comparable<ClientDCInternalInv> {
private final String unlocalizedName;
private final AppEngInternalInventory inventory;
private final String unlocalizedName;
private final AppEngInternalInventory inventory;
private final long id;
private final long sortBy;
private final long id;
private final long sortBy;
public ClientDCInternalInv( final int size, final long id, final long sortBy, final String unlocalizedName )
{
this.inventory = new AppEngInternalInventory( null, size, 1 );
this.unlocalizedName = unlocalizedName;
this.id = id;
this.sortBy = sortBy;
}
public ClientDCInternalInv(final int size, final long id, final long sortBy, final String unlocalizedName) {
this.inventory = new AppEngInternalInventory(null, size, 1);
this.unlocalizedName = unlocalizedName;
this.id = id;
this.sortBy = sortBy;
}
public ClientDCInternalInv( final int size, final long id, final long sortBy, final String unlocalizedName, int stackSize )
{
this.inventory = new AppEngInternalInventory( null, size, stackSize );
this.unlocalizedName = unlocalizedName;
this.id = id;
this.sortBy = sortBy;
}
public ClientDCInternalInv(final int size, final long id, final long sortBy, final String unlocalizedName, int stackSize) {
this.inventory = new AppEngInternalInventory(null, size, stackSize);
this.unlocalizedName = unlocalizedName;
this.id = id;
this.sortBy = sortBy;
}
public String getName()
{
final String s = I18n.translateToLocal( this.unlocalizedName + ".name" );
if( s.equals( this.unlocalizedName + ".name" ) )
{
return I18n.translateToLocal( this.unlocalizedName );
}
return s;
}
public String getName() {
final String s = I18n.translateToLocal(this.unlocalizedName + ".name");
if (s.equals(this.unlocalizedName + ".name")) {
return I18n.translateToLocal(this.unlocalizedName);
}
return s;
}
@Override
public int compareTo( @Nonnull final ClientDCInternalInv o )
{
return Long.compare( this.sortBy, o.sortBy );
}
@Override
public int compareTo(@Nonnull final ClientDCInternalInv o) {
return Long.compare(this.sortBy, o.sortBy);
}
public AppEngInternalInventory getInventory()
{
return this.inventory;
}
public AppEngInternalInventory getInventory() {
return this.inventory;
}
public long getId()
{
return this.id;
}
public long getId() {
return this.id;
}
}