-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port to 1.18.2, fix wisp only targeting line of sight, some bugs stil…
…l present
- Loading branch information
Showing
20 changed files
with
82 additions
and
155 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
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
20 changes: 10 additions & 10 deletions
20
common/src/main/java/dev/itsmeow/whisperwoods/init/ModTags.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,38 +1,38 @@ | ||
package dev.itsmeow.whisperwoods.init; | ||
|
||
import dev.architectury.hooks.tags.TagHooks; | ||
import dev.itsmeow.whisperwoods.WhisperwoodsMod; | ||
import net.minecraft.core.Registry; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.tags.Tag; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.level.block.Block; | ||
|
||
public class ModTags { | ||
|
||
public static final class Blocks { | ||
public static final Tag.Named<Block> GHOST_LIGHT = tag("ghost_light"); | ||
public static final Tag.Named<Block> WISP_LANTERN = tag("wisp_lantern"); | ||
public static final TagKey<Block> GHOST_LIGHT = tag("ghost_light"); | ||
public static final TagKey<Block> WISP_LANTERN = tag("wisp_lantern"); | ||
|
||
|
||
public static void loadTags() { | ||
// This is a classloading dummy. | ||
} | ||
|
||
private static Tag.Named<Block> tag(String name) { | ||
return TagHooks.optionalBlock(new ResourceLocation(WhisperwoodsMod.MODID, name)); | ||
private static TagKey<Block> tag(String name) { | ||
return TagKey.create(Registry.BLOCK_REGISTRY, new ResourceLocation(WhisperwoodsMod.MODID, name)); | ||
} | ||
} | ||
|
||
public static final class Items { | ||
public static final Tag.Named<Item> GHOST_LIGHT = tag("ghost_light"); | ||
public static final Tag.Named<Item> WISP_LANTERN = tag("wisp_lantern"); | ||
public static final TagKey<Item> GHOST_LIGHT = tag("ghost_light"); | ||
public static final TagKey<Item> WISP_LANTERN = tag("wisp_lantern"); | ||
|
||
public static void loadTags() { | ||
// This is a classloading dummy. | ||
} | ||
|
||
private static Tag.Named<Item> tag(String name) { | ||
return TagHooks.optionalItem(new ResourceLocation(WhisperwoodsMod.MODID, name)); | ||
private static TagKey<Item> tag(String name) { | ||
return TagKey.create(Registry.ITEM_REGISTRY, new ResourceLocation(WhisperwoodsMod.MODID, name)); | ||
} | ||
} | ||
} |
36 changes: 0 additions & 36 deletions
36
common/src/main/java/dev/itsmeow/whisperwoods/mixin/EntityMixin.java
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
common/src/main/java/dev/itsmeow/whisperwoods/mixin/GroundPathNavigationMixin.java
This file was deleted.
Oops, something went wrong.
12 changes: 9 additions & 3 deletions
12
common/src/main/java/dev/itsmeow/whisperwoods/util/IOverrideCollisions.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
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.