blob: 4c864a89fa90a07740063673d88829dc92f1ff30 [file] [log] [blame] [raw]
package com.gildedgames.the_aether.items;
import com.gildedgames.the_aether.Aether;
import com.gildedgames.the_aether.registry.AetherCreativeTabs;
import net.minecraft.item.ItemRecord;
import net.minecraft.util.ResourceLocation;
public class AetherDisc extends ItemRecord {
public String artistName;
public String songName;
public ResourceLocation songLocation;
public AetherDisc(String s, String artist, String song) {
super(s);
this.artistName = artist;
this.songName = song;
this.songLocation = Aether.locate("records." + s);
setCreativeTab(AetherCreativeTabs.misc);
}
@Override
public String getRecordNameLocal() {
return this.artistName + " - " + this.songName;
}
@Override
public ResourceLocation getRecordResource(String name) {
return this.songLocation;
}
}