-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1351 from Reabstraction/1.21
Add Fusion connected textures for the pressure_chamber_glass texture
- Loading branch information
Showing
10 changed files
with
55 additions
and
2 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
23 changes: 23 additions & 0 deletions
23
src/main/java/me/desht/pneumaticcraft/common/thirdparty/Fusion.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,23 @@ | ||
package me.desht.pneumaticcraft.common.thirdparty; | ||
|
||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.server.packs.PackType; | ||
import net.minecraft.server.packs.repository.PackSource; | ||
import net.minecraft.server.packs.repository.Pack.Position; | ||
import net.neoforged.bus.api.IEventBus; | ||
import net.neoforged.fml.ModList; | ||
import net.neoforged.neoforge.event.AddPackFindersEvent; | ||
|
||
public class Fusion implements IThirdParty { | ||
|
||
private void addPackFinders(AddPackFindersEvent event) { | ||
if (ModList.get().isLoaded("fusion")) | ||
event.addPackFinders(ResourceLocation.fromNamespaceAndPath("pneumaticcraft", "fusion_integration"), PackType.CLIENT_RESOURCES, Component.literal("Fusion for PneumaticCraft"), PackSource.BUILT_IN, false, Position.TOP); | ||
} | ||
|
||
@Override | ||
public void clientPreInit(IEventBus modBus) { | ||
modBus.addListener(this::addPackFinders); | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
...sources/fusion_integration/assets/pneumaticcraft/models/block/pressure_chamber_glass.json
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 @@ | ||
{ | ||
"loader": "fusion:model", | ||
"type": "connecting", | ||
"connections": [ | ||
{ | ||
"type": "is_same_block" | ||
} | ||
], | ||
"parent": "minecraft:block/cube_all", | ||
"textures": { | ||
"all": "pneumaticcraft:block/pressure_chamber/window" | ||
}, | ||
"render_type": "cutout" | ||
} |
Binary file added
BIN
+1.7 KB
...on_integration/assets/pneumaticcraft/textures/block/pressure_chamber/window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
...usion_integration/assets/pneumaticcraft/textures/block/pressure_chamber/window.png.mcmeta
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 @@ | ||
{ | ||
"fusion": { | ||
"type": "connecting", | ||
"layout": "full" | ||
} | ||
} |
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 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 14, | ||
"supported_formats": [14,50], | ||
"description": "Integration with Fusion connected textures" | ||
} | ||
} |