-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'architectury-1.19.3' into architectury-1.19.4
# Conflicts: # common/src/main/java/com/unlikepaladin/pfm/runtime/data/PFMTagProvider.java # fabric/src/main/java/com/unlikepaladin/pfm/compat/farmersdelight/fabric/PFMFarmersDelightImpl.java # forge/src/main/java/com/unlikepaladin/pfm/compat/farmersdelight/forge/PFMFarmersDelightImpl.java
- Loading branch information
Showing
18 changed files
with
70 additions
and
54 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
6 changes: 6 additions & 0 deletions
6
common/src/main/java/com/unlikepaladin/pfm/compat/farmersdelight/PFMFarmersDelight.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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
package com.unlikepaladin.pfm.compat.farmersdelight; | ||
|
||
import com.unlikepaladin.pfm.compat.PFMModCompatibility; | ||
import com.unlikepaladin.pfm.data.PFMTags; | ||
import dev.architectury.injectables.annotations.ExpectPlatform; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.registry.tag.TagKey; | ||
import net.minecraft.util.Identifier; | ||
|
||
public abstract class PFMFarmersDelight implements PFMModCompatibility { | ||
@ExpectPlatform | ||
public static PFMFarmersDelight getInstance() { | ||
throw new AssertionError(); | ||
}; | ||
|
||
protected static final TagKey<Block> HEAT_SOURCES = PFMTags.createTag(new Identifier("farmersdelight", "heat_sources")); | ||
} |
15 changes: 15 additions & 0 deletions
15
common/src/main/java/com/unlikepaladin/pfm/data/PFMTags.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,15 @@ | ||
package com.unlikepaladin.pfm.data; | ||
|
||
import dev.architectury.injectables.annotations.ExpectPlatform; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.registry.tag.TagKey; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class PFMTags { | ||
public static TagKey<Block> TUCKABLE_BLOCKS = createTag(new Identifier("pfm", "tuckable_blocks")); | ||
|
||
@ExpectPlatform | ||
public static TagKey<Block> createTag(Identifier identifier) { | ||
throw new AssertionError(); | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
fabric/src/main/java/com/unlikepaladin/pfm/data/fabric/PFMTagsImpl.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 com.unlikepaladin.pfm.data.fabric; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.registry.tag.TagKey; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class PFMTagsImpl { | ||
public static TagKey<Block> createTag(Identifier identifier) { | ||
return TagKey.of(RegistryKeys.BLOCK, identifier); | ||
} | ||
} |
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
16 changes: 0 additions & 16 deletions
16
fabric/src/main/java/com/unlikepaladin/pfm/data/fabric/TagsImpl.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
12 changes: 12 additions & 0 deletions
12
forge/src/main/java/com/unlikepaladin/pfm/data/forge/PFMTagsImpl.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 com.unlikepaladin.pfm.data.forge; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.registry.tag.BlockTags; | ||
import net.minecraft.registry.tag.TagKey; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class PFMTagsImpl { | ||
public static TagKey<Block> createTag(Identifier identifier) { | ||
return BlockTags.create(new Identifier("pfm", "tuckable_blocks")); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
forge/src/main/java/com/unlikepaladin/pfm/data/forge/TagsImpl.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