-
Notifications
You must be signed in to change notification settings - Fork 11
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
1 parent
934310e
commit 8ef0675
Showing
3 changed files
with
77 additions
and
1 deletion.
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
69 changes: 69 additions & 0 deletions
69
src/main/java/net/zepalesque/redux/data/tags/ReduxTags.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,69 @@ | ||
package net.zepalesque.redux.data.tags; | ||
|
||
import com.aetherteam.aether.api.AetherAdvancementSoundOverrides; | ||
import com.aetherteam.aether.api.registers.AdvancementSoundOverride; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.sounds.SoundEvent; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.damagesource.DamageType; | ||
import net.minecraft.world.entity.EntityType; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.level.biome.Biome; | ||
import net.minecraft.world.level.block.Block; | ||
import net.zepalesque.redux.Redux; | ||
|
||
public class ReduxTags { | ||
|
||
|
||
public static class Blocks { | ||
|
||
public static final TagKey<Block> AETHER_GRASS_NONREPLACING = tag("aether_grass_nonreplacing"); | ||
|
||
public static TagKey<Block> tag(String name) { | ||
return TagKey.create(Registries.BLOCK, Redux.loc(name)); | ||
} | ||
} | ||
|
||
public static class Items { | ||
|
||
public static TagKey<Item> tag(String name) { | ||
return TagKey.create(Registries.ITEM, Redux.loc(name)); | ||
} | ||
} | ||
|
||
public static class Entities { | ||
|
||
private static TagKey<EntityType<?>> tag(String name) { | ||
return TagKey.create(Registries.ENTITY_TYPE, Redux.loc(name)); | ||
} | ||
} | ||
|
||
public static class Biomes { | ||
|
||
private static TagKey<Biome> tag(String name) { | ||
return TagKey.create(Registries.BIOME, Redux.loc(name)); | ||
} | ||
} | ||
|
||
public static class DmgTypes { | ||
|
||
private static TagKey<DamageType> tag(String name) { | ||
return TagKey.create(Registries.DAMAGE_TYPE, Redux.loc(name)); | ||
} | ||
} | ||
|
||
public static class Sounds { | ||
|
||
private static TagKey<SoundEvent> tag(String name) { | ||
return TagKey.create(Registries.SOUND_EVENT, Redux.loc(name)); | ||
} | ||
} | ||
|
||
public static class AdvancementSFX { | ||
|
||
private static TagKey<AdvancementSoundOverride> tag(String name) { | ||
return TagKey.create(AetherAdvancementSoundOverrides.ADVANCEMENT_SOUND_OVERRIDE_REGISTRY_KEY, Redux.loc(name)); | ||
} | ||
} | ||
} |