Add missing Side Only Annotations Fix #2076

This commit is contained in:
Nedelosk committed 2018-04-06 00:45:53 +02:00
1 parent aa45da81ba
commit 6efbd6e158
54 files changed
+211 -5

No files matched your search

@@ -7,6 +7,9 @@ package forestry.api.book;
import javax.annotation.Nullable;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import forestry.api.gui.IElementGroup;
import forestry.api.gui.IGuiElement;
import forestry.api.gui.IGuiElementFactory;
@@ -14,6 +17,7 @@ import forestry.api.gui.IGuiElementFactory;
/**
* The deserialized content data of a book page. It creates a gui element at the moment the entry gets opened.
*/
@SideOnly(Side.CLIENT)
public abstract class BookContent<D> {
public String type;
@@ -5,6 +5,10 @@
******************************************************************************/
package forestry.api.book;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class BookManager {
@SideOnly(Side.CLIENT)
public static IBookLoader loader;
}
@@ -10,6 +10,10 @@ import java.util.Collection;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public interface IBookCategory {
/**
* @return the {@link ItemStack} that represents this category at the front page.
@@ -2,10 +2,14 @@ package forestry.api.book;
import javax.annotation.Nullable;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import forestry.api.gui.IElementGroup;
import forestry.api.gui.IGuiElement;
import forestry.api.gui.IGuiElementFactory;
@SideOnly(Side.CLIENT)
public interface IBookContent {
/**
* Called after the deserialization.
@@ -9,12 +9,16 @@ import javax.annotation.Nullable;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
/**
* A entry in the {@link IForesterBook}.
* <p>
* Forestry crates them with the help of json file, but you can add you own custom ones with
* {@link IBookCategory#addEntry(IBookEntry)}.
*/
@SideOnly(Side.CLIENT)
public interface IBookEntry {
/**
@@ -9,6 +9,10 @@ import javax.annotation.Nullable;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public interface IBookEntryBuilder {
/**
@@ -5,6 +5,10 @@
******************************************************************************/
package forestry.api.book;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public interface IBookLoader {
/**
@@ -7,11 +7,15 @@ package forestry.api.book;
import java.util.Collection;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import forestry.api.gui.IGuiElement;
/**
* A factory that creates book pages for a book entry.
*/
@SideOnly(Side.CLIENT)
public interface IBookPageFactory {
/**
* Usually called at the moment the player opens the given entry.
@@ -8,11 +8,15 @@ package forestry.api.book;
import javax.annotation.Nullable;
import java.util.Collection;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
/**
* IForesterBook is the interface that the forestry guide book class implements.
* <p>
* You can get the current instance of the guide book from {@link IBookLoader#loadBook()}.
*/
@SideOnly(Side.CLIENT)
public interface IForesterBook {
/**