mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-26 06:53:30 +00:00
Auto-fix formatting
This commit is contained in:
1 parent
697ccabf53
commit
975309598a
25 files changed
+89
-104
No files matched your search
@@ -261,9 +261,9 @@ public class TileEntityMachineBase extends TileEntity implements IInventoryMachi
|
||||
public <T> T getCapability(Capability<T> capability, EnumFacing facing) {
|
||||
if (capability == CapabilityEnergy.ENERGY) {
|
||||
return CapabilityEnergy.ENERGY.cast(this);
|
||||
}else if(capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY){
|
||||
} else if (capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) {
|
||||
return CapabilityItemHandler.ITEM_HANDLER_CAPABILITY.cast(new InvWrapper(getInventory()));
|
||||
}else if(capability == CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY){
|
||||
} else if (capability == CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY) {
|
||||
return CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY.cast(getHandler(facing));
|
||||
}
|
||||
return super.getCapability(capability, facing);
|
||||
|
||||
@@ -27,7 +27,7 @@ public class ComponentTankContainer extends MachineComponent implements ITankMac
|
||||
super(machine);
|
||||
this.tanks = new LinkedHashMap<>();
|
||||
this.handlers = new EnumMap<>(EnumFacing.class);
|
||||
for(EnumFacing facing : EnumFacing.VALUES){
|
||||
for (EnumFacing facing : EnumFacing.VALUES) {
|
||||
handlers.put(facing, new TankContainer(facing));
|
||||
}
|
||||
}
|
||||
@@ -153,19 +153,19 @@ public class ComponentTankContainer extends MachineComponent implements ITankMac
|
||||
this.getMachine().markDirty();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public IFluidHandler getHandler(EnumFacing from) {
|
||||
return handlers.get(from);
|
||||
}
|
||||
|
||||
private class TankContainer implements IFluidHandler{
|
||||
|
||||
private class TankContainer implements IFluidHandler {
|
||||
EnumFacing from;
|
||||
|
||||
|
||||
public TankContainer(EnumFacing from) {
|
||||
this.from = from;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public final int fill(final FluidStack resource, final boolean doFill) {
|
||||
final int index = getTankIndexToFill(from, resource);
|
||||
@@ -174,7 +174,7 @@ public class ComponentTankContainer extends MachineComponent implements ITankMac
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public FluidStack drain(final FluidStack resource, final boolean doDrain) {
|
||||
final int index = getTankIndexToDrain(from, null);
|
||||
@@ -192,7 +192,7 @@ public class ComponentTankContainer extends MachineComponent implements ITankMac
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public IFluidTankProperties[] getTankProperties() {
|
||||
final IFluidTankProperties[] properties = new IFluidTankProperties[getTanks().length];
|
||||
|
||||
Reference in new issue
Block a user