-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split off into common and client sided plugin entrypoint
- Loading branch information
Showing
85 changed files
with
1,958 additions
and
1,223 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
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
7 changes: 7 additions & 0 deletions
7
platform/fabric/src/plugin/java/mcp/mobius/waila/plugin/fabric/FabricClientPlugin.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,7 @@ | ||
package mcp.mobius.waila.plugin.fabric; | ||
|
||
import mcp.mobius.waila.plugin.textile.TextileClientPlugin; | ||
|
||
public class FabricClientPlugin extends TextileClientPlugin { | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
platform/fabric/src/plugin/java/mcp/mobius/waila/plugin/fabric/FabricCommonPlugin.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,6 @@ | ||
package mcp.mobius.waila.plugin.fabric; | ||
|
||
import mcp.mobius.waila.plugin.textile.TextileCommonPlugin; | ||
|
||
public class FabricCommonPlugin extends TextileCommonPlugin { | ||
} |
7 changes: 0 additions & 7 deletions
7
platform/fabric/src/plugin/java/mcp/mobius/waila/plugin/fabric/WailaPluginFabric.java
This file was deleted.
Oops, something went wrong.
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
15 changes: 4 additions & 11 deletions
15
.../waila/plugin/forge/WailaPluginForge.java → ...waila/plugin/forge/ForgeClientPlugin.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
19 changes: 19 additions & 0 deletions
19
platform/forge/src/plugin/java/mcp/mobius/waila/plugin/forge/ForgeCommonPlugin.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,19 @@ | ||
package mcp.mobius.waila.plugin.forge; | ||
|
||
import mcp.mobius.waila.api.ICommonRegistrar; | ||
import mcp.mobius.waila.api.IWailaCommonPlugin; | ||
import mcp.mobius.waila.plugin.forge.provider.EnergyCapabilityProvider; | ||
import mcp.mobius.waila.plugin.forge.provider.FluidCapabilityProvider; | ||
import mcp.mobius.waila.plugin.forge.provider.ItemCapabilityProvider; | ||
import net.minecraft.world.level.block.entity.BlockEntity; | ||
|
||
public class ForgeCommonPlugin implements IWailaCommonPlugin { | ||
|
||
@Override | ||
public void register(ICommonRegistrar registrar) { | ||
registrar.addBlockData(EnergyCapabilityProvider.INSTANCE, BlockEntity.class, 2000); | ||
registrar.addBlockData(ItemCapabilityProvider.INSTANCE, BlockEntity.class, 2000); | ||
registrar.addBlockData(FluidCapabilityProvider.INSTANCE, BlockEntity.class, 2000); | ||
} | ||
|
||
} |
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
Oops, something went wrong.