Skip to content

Commit

Permalink
Removed getName override
Browse files Browse the repository at this point in the history
  • Loading branch information
Edivad99 committed Oct 8, 2023
1 parent f831951 commit 8cfeabd
Show file tree
Hide file tree
Showing 9 changed files with 186 additions and 212 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.20.1 2023-09-29T10:56:55.6776 Railcraft Block Tags
// 1.20.1 2023-10-08T12:32:20.97062 Tags for minecraft:block mod id railcraft
9732f1964281f5d5e6f3d067e648bb4bfc5cbafb data/forge/tags/blocks/enderman_place_on_blacklist.json
e36857f35c1bac4bde5a8450008b92cf82656216 data/forge/tags/blocks/ore_rates/dense.json
8ce5fa4b4f1c2619e124ef387b086d72f9c26f04 data/forge/tags/blocks/ore_rates/singular.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 1.20.1 2023-06-29T09:24:52.476948 Railcraft Sounds
// 1.20.1 2023-10-08T12:32:20.973264 Sound Definitions
02c2282ac2589a1e36bc92448cc1a50772bf1bf1 assets/railcraft/sounds.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.20.1 2023-09-27T10:40:46.635318 Railcraft Item Tags
// 1.20.1 2023-10-08T12:32:20.972503 Tags for minecraft:item mod id railcraft
f0feda62604edc32e6dcc0eb8d52c2defbf8a4d2 data/forge/tags/items/armors/boots.json
e4b5c3cfded4b9b76efeda37728f26dc89261239 data/forge/tags/items/armors/boots/steel.json
32b89e811b184ba832d5a6e71cadeca8e34dff42 data/forge/tags/items/armors/chestplates.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.20.1 2023-06-29T09:24:52.47224 Railcraft Fluid Tags
// 1.20.1 2023-10-08T12:32:20.969217 Tags for minecraft:fluid mod id railcraft
240b7af712a009fc420dd3f8b5c846525bfafc7d data/forge/tags/fluids/creosote.json
529d270700bea5e5de962c4ab7da588a2bbab536 data/forge/tags/fluids/gaseous.json
529d270700bea5e5de962c4ab7da588a2bbab536 data/forge/tags/fluids/steam.json
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,4 @@ protected void addTags(HolderLookup.Provider provider) {
.addTag(RailcraftTags.Blocks.STEEL_TANK_VALVE)
.addTag(RailcraftTags.Blocks.STEEL_TANK_WALL);
}

@Override
public String getName() {
return "Railcraft Block Tags";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@ public RailcraftFluidTagsProvider(PackOutput packOutput,
protected void addTags(HolderLookup.Provider provider) {
this.tag(RailcraftTags.Fluids.STEAM)
.add(RailcraftFluids.STEAM.get());
//https://forge.gemwire.uk/wiki/User:ChampionAsh5357/Sandbox/Fluids_API#Gaseous_Fluids
this.tag(Tags.Fluids.GASEOUS)
.add(RailcraftFluids.STEAM.get());
this.tag(RailcraftTags.Fluids.CREOSOTE)
.add(RailcraftFluids.CREOSOTE.get());
}

@Override
public String getName() {
return "Railcraft Fluid Tags";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,4 @@ protected void addTags(HolderLookup.Provider provider) {
this.tag(Tags.Items.ARMORS_LEGGINGS).addTags(RailcraftTags.Items.ARMORS_LEGGINGS_STEEL);
this.tag(Tags.Items.ARMORS_BOOTS).addTags(RailcraftTags.Items.ARMORS_BOOTS_STEEL);
}

@Override
public String getName() {
return "Railcraft Item Tags";
}
}
34 changes: 12 additions & 22 deletions src/main/java/mods/railcraft/data/RailcraftSoundsProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import mods.railcraft.sounds.RailcraftSoundEvents;
import net.minecraft.data.PackOutput;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.common.data.SoundDefinition;
import net.minecraftforge.common.data.SoundDefinitionsProvider;

public class RailcraftSoundsProvider extends SoundDefinitionsProvider {
Expand All @@ -20,41 +19,32 @@ public void registerSounds() {
this.add(RailcraftSoundEvents.STEAM_WHISTLE.get(),
definition()
.with(
railcraftSound("locomotive/steam/whistle1"),
railcraftSound("locomotive/steam/whistle2"),
railcraftSound("locomotive/steam/whistle3"))
sound(Railcraft.rl("locomotive/steam/whistle1")),
sound(Railcraft.rl("locomotive/steam/whistle2")),
sound(Railcraft.rl("locomotive/steam/whistle3")))
.subtitle(Translations.Subtitle.STEAM_WHISTLE));
this.add(RailcraftSoundEvents.ELECTRIC_WHISTLE.get(),
definition()
.with(
railcraftSound("locomotive/electric/whistle1"),
railcraftSound("locomotive/electric/whistle2"),
railcraftSound("locomotive/electric/whistle3"))
sound(Railcraft.rl("locomotive/electric/whistle1")),
sound(Railcraft.rl("locomotive/electric/whistle2")),
sound(Railcraft.rl("locomotive/electric/whistle3")))
.subtitle(Translations.Subtitle.ELECTRIC_WHISTLE));
this.add(RailcraftSoundEvents.STEAM_BURST.get(),
definition()
.with(railcraftSound("machine/steam_burst"))
.with(sound(Railcraft.rl("machine/steam_burst")))
.subtitle(Translations.Subtitle.STEAM_BURST));
this.add(RailcraftSoundEvents.STEAM_HISS.get(),
definition()
.with(railcraftSound("machine/steam_hiss"))
.with(sound(Railcraft.rl("machine/steam_hiss")))
.subtitle(Translations.Subtitle.STEAM_HISS));
this.add(RailcraftSoundEvents.MACHINE_ZAP.get(),
definition()
.with(
railcraftSound("machine/zap1"),
railcraftSound("machine/zap2"),
railcraftSound("machine/zap3"),
railcraftSound("machine/zap4"))
sound(Railcraft.rl("machine/zap1")),
sound(Railcraft.rl("machine/zap2")),
sound(Railcraft.rl("machine/zap3")),
sound(Railcraft.rl("machine/zap4")))
.subtitle(Translations.Subtitle.MACHINE_ZAP));
}

protected static SoundDefinition.Sound railcraftSound(final String name) {
return sound(Railcraft.rl(name));
}

@Override
public String getName() {
return "Railcraft Sounds";
}
}

0 comments on commit 8cfeabd

Please sign in to comment.