blob: 1c1dcb03c32736393377f191d27c745bae969ccf [file] [log] [blame] [raw]
package com.gildedgames.the_aether.items;
import com.gildedgames.the_aether.Aether;
import com.gildedgames.the_aether.registry.creative_tabs.AetherCreativeTabs;
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, String song) {
super(s);
this.artistName = artist;
this.songName = song;
this.songLocation = Aether.locate("records." + s);
this.setCreativeTab(AetherCreativeTabs.misc);
}
@Override
public String getRecordNameLocal() {
return this.artistName + " - " + this.songName;
}
@Override
public ResourceLocation getRecordResource(String name) {
return this.songLocation;
}
}