37 lines
887 B
Java
37 lines
887 B
Java
package com.gildedgames.the_aether.items;
|
|
|
|
import com.gildedgames.the_aether.Aether;
|
|
import com.gildedgames.the_aether.registry.creative_tabs.AetherCreativeTabs;
|
|
import net.minecraft.client.resources.I18n;
|
|
import net.minecraft.item.ItemRecord;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public class ItemAetherDisc extends ItemRecord {
|
|
|
|
public String artistName;
|
|
|
|
public String songName;
|
|
|
|
public ResourceLocation songLocation;
|
|
|
|
public ItemAetherDisc(String s, String artist) {
|
|
super(s);
|
|
|
|
this.artistName = artist;
|
|
this.songName = s;
|
|
this.songLocation = Aether.locate("records." + s);
|
|
|
|
this.setCreativeTab(AetherCreativeTabs.misc);
|
|
}
|
|
|
|
@Override
|
|
public String getRecordNameLocal() {
|
|
return this.artistName + " - " + I18n.format("item.tooltip." + this.songName);
|
|
}
|
|
|
|
@Override
|
|
public ResourceLocation getRecordResource(String name) {
|
|
return this.songLocation;
|
|
}
|
|
|
|
} |