BloodMagic/src/main/java/WayofTime/bloodmagic/client/IMeshProvider.java

42 lines
1 KiB
Java
Raw Normal View History

package WayofTime.bloodmagic.client;
import net.minecraft.client.renderer.ItemMeshDefinition;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import javax.annotation.Nullable;
import java.util.List;
/**
* Provides a custom {@link ItemMeshDefinition} for automatic registration of
* renders.
*/
2016-03-16 18:41:06 -04:00
public interface IMeshProvider
{
/**
* Gets the custom ItemMeshDefinition to use for the item.
2016-04-05 16:16:17 -04:00
*
* @return - the custom ItemMeshDefinition to use for the item.
*/
@SideOnly(Side.CLIENT)
ItemMeshDefinition getMeshDefinition();
/**
* Gets all possible variants for this item
2016-04-05 16:16:17 -04:00
*
* @return - All possible variants for this item
*/
List<String> getVariants();
/**
* If a custom ResourceLocation is required, return it here.
2016-04-05 16:16:17 -04:00
*
* Can be null if unneeded.
2016-04-05 16:16:17 -04:00
*
* @return - The custom ResourceLocation
*/
@Nullable
ResourceLocation getCustomLocation();
}