generated from NeoForgeMDKs/MDK-1.21-NeoGradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MCZME
committed
Aug 11, 2024
1 parent
1d12939
commit fa3c0e0
Showing
10 changed files
with
60 additions
and
9 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/85f12f813aff948f91f5cd129c0ffa86bcb17361
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,2 +1,2 @@ | ||
// 1.21 2024-08-08T18:35:43.0608317 Languages: zh_cn for mod: lingshi | ||
4da2b2e0b4727bd49396896000019baab4eb2e48 assets/lingshi/lang/zh_cn.json | ||
// 1.21 2024-08-11T20:03:29.7270915 Languages: zh_cn for mod: lingshi | ||
ceb883a13057e1c30eaabbc27de7a3819e5e58b5 assets/lingshi/lang/zh_cn.json |
3 changes: 2 additions & 1 deletion
3
src/generated/resources/.cache/d88813880ae3e40e9724fa9bc86e438c1f5ddb3d
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,2 +1,3 @@ | ||
// 1.21 2024-08-10T17:02:48.5453931 Tags for minecraft:block mod id lingshi | ||
// 1.21 2024-08-11T19:15:15.9707849 Tags for minecraft:block mod id lingshi | ||
8f3ae1f87856cf69d686ec0be92f6b700f51bd30 data/lingshi/tags/block/heat_source.json | ||
e00d57f2828f9f55903e8c8c9f4b95dfeca4135d data/minecraft/tags/block/mineable/axe.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
6 changes: 6 additions & 0 deletions
6
src/generated/resources/data/lingshi/tags/block/heat_source.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,6 @@ | ||
{ | ||
"values": [ | ||
"minecraft:campfire", | ||
"minecraft:magma_block" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
package mczme.lingshi.common.item; | ||
|
||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.item.DiggerItem; | ||
import net.minecraft.world.item.SwordItem; | ||
import net.minecraft.world.item.Tier; | ||
import net.minecraft.world.level.block.Block; | ||
|
||
public class KnifeItem extends DiggerItem { | ||
public class KnifeItem extends SwordItem { | ||
|
||
public KnifeItem(Tier pTier, TagKey<Block> pBlocks, Properties pProperties) { | ||
super(pTier, pBlocks, pProperties); | ||
public KnifeItem(Tier pTier, Properties pProperties) { | ||
super(pTier, pProperties); | ||
} | ||
} |
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,17 @@ | ||
package mczme.lingshi.common.tag; | ||
|
||
import mczme.lingshi.lingshi; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.level.block.Block; | ||
|
||
public class ModTags { | ||
|
||
public static final TagKey<Block> HEAT_SOURCE = modTag(Registries.BLOCK, "heat_source"); | ||
|
||
private static <T> TagKey<T> modTag(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> pRegistry, String name) { | ||
return TagKey.create(pRegistry, ResourceLocation.fromNamespaceAndPath(lingshi.MODID, name)); | ||
} | ||
|
||
} |
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,16 @@ | ||
package mczme.lingshi.common.tag; | ||
|
||
import mczme.lingshi.lingshi; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.item.Item; | ||
|
||
public class NeoforgeTags { | ||
|
||
public static final TagKey<Item> KNIFE = neoforgeTag(Registries.ITEM, "knife"); | ||
|
||
private static <T> TagKey<T> neoforgeTag(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> pRegistry, String name) { | ||
return TagKey.create(pRegistry, ResourceLocation.fromNamespaceAndPath("neoforge", name)); | ||
} | ||
} |