-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into zb-better-copying
# Conflicts: # src/main/java/gregtech/api/metatileentity/MetaTileEntity.java # src/main/java/gregtech/common/metatileentities/multi/multiblockpart/appeng/MetaTileEntityMEInputBus.java # src/main/java/gregtech/common/metatileentities/multi/multiblockpart/appeng/MetaTileEntityMEInputHatch.java # src/main/resources/assets/gregtech/lang/en_us.lang # src/main/resources/assets/gregtech/lang/ru_ru.lang
- Loading branch information
Showing
576 changed files
with
11,141 additions
and
24,366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/api/java/meldexun/nothirium/api/renderer/chunk/ChunkRenderPass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package meldexun.nothirium.api.renderer.chunk; | ||
|
||
/** | ||
* Adapted and minimized from <a | ||
* href="https://github.com/Meldexun/Nothirium/blob/main/src/main/java/meldexun/nothirium/api/renderer/chunk/ChunkRenderPass.java">ChunkRenderPass.java</a> | ||
*/ | ||
public enum ChunkRenderPass { | ||
; | ||
|
||
public static final ChunkRenderPass[] ALL = ChunkRenderPass.values(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package gregtech.api.capability; | ||
|
||
import net.minecraftforge.items.IItemHandler; | ||
|
||
public interface IDualHandler { | ||
|
||
boolean hasFluidTanks(); | ||
|
||
boolean hasItemHandlers(); | ||
|
||
IMultipleTankHandler getFluidTanks(); | ||
|
||
IItemHandler getItemHandlers(); | ||
} |
34 changes: 34 additions & 0 deletions
34
src/main/java/gregtech/api/capability/IQuantumController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package gregtech.api.capability; | ||
|
||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraftforge.common.capabilities.ICapabilityProvider; | ||
|
||
// ICapabilityProvider is needed because getCapability is called in the quantum proxy against this interface | ||
public interface IQuantumController extends ICapabilityProvider { | ||
|
||
/** | ||
* Constructs the network upon placement and when storages are added/removed | ||
* <br /> | ||
*/ | ||
void rebuildNetwork(); | ||
|
||
/** | ||
* Return whether this storage block can connect. Can be used to implement a maximum distance from controller for | ||
* example. | ||
*/ | ||
boolean canConnect(IQuantumStorage<?> storage); | ||
|
||
BlockPos getPos(); | ||
|
||
IDualHandler getHandler(); | ||
|
||
boolean isPowered(); | ||
|
||
long getEnergyUsage(); | ||
|
||
int getCount(IQuantumStorage.Type type); | ||
|
||
long getTypeEnergy(IQuantumStorage<?> storage); | ||
|
||
void updateHandler(); | ||
} |
Oops, something went wrong.