Skip to content

Commit

Permalink
[ci skip] spotlessApply with the new settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchej123 committed Jan 29, 2023
1 parent a13186a commit 6083517
Show file tree
Hide file tree
Showing 199 changed files with 3,770 additions and 3,553 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

dependencies {
compileOnly('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-76-GTNH:api')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.40.33:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.41.254:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:NotEnoughItems:2.2.6-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:waila:1.5.18:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:Avaritia:1.30:dev') {transitive=false}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package com.jaquadro.minecraft.storagedrawers;

import java.io.File;

import net.minecraftforge.common.MinecraftForge;

import com.jaquadro.minecraft.storagedrawers.api.StorageDrawersApi;
import com.jaquadro.minecraft.storagedrawers.config.*;
import com.jaquadro.minecraft.storagedrawers.core.*;
Expand All @@ -9,6 +13,7 @@
import com.jaquadro.minecraft.storagedrawers.network.BlockClickMessage;
import com.jaquadro.minecraft.storagedrawers.network.CountUpdateMessage;
import com.jaquadro.minecraft.storagedrawers.security.SecurityRegistry;

import cpw.mods.fml.client.event.ConfigChangedEvent;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
Expand All @@ -20,8 +25,6 @@
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import cpw.mods.fml.relauncher.Side;
import java.io.File;
import net.minecraftforge.common.MinecraftForge;

@Mod(
modid = StorageDrawers.MOD_ID,
Expand All @@ -30,6 +33,7 @@
dependencies = "after:waila;",
guiFactory = StorageDrawers.SOURCE_PATH + "core.ModGuiFactory")
public class StorageDrawers {

public static final String MOD_ID = "StorageDrawers";
public static final String MOD_NAME = "Storage Drawers";
public static final String MOD_VERSION = "GRADLETOKEN_VERSION";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.jaquadro.minecraft.storagedrawers.api.registry.IWailaRegistry;

public interface IStorageDrawersApi {

/**
* Recipe handlers are used to make custom recipes compatible with compacting drawers.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Entry point for the public API.
*/
public class StorageDrawersApi {

private static IStorageDrawersApi instance;

public static final String VERSION = "1.7.10-1.2.0";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.jaquadro.minecraft.storagedrawers.api.config;

public interface IAddonConfig {

/**
* Gets whether the user has configured a preference for addon packs to hide their blocks and items from Vanilla
* creative tabs.
Expand All @@ -13,8 +14,8 @@ public interface IAddonConfig {
boolean showAddonItemsVanilla();

/**
* Gets whether the user has configured a preference for addon packs to provide their blocks and items through
* their own vanilla tab.
* Gets whether the user has configured a preference for addon packs to provide their blocks and items through their
* own vanilla tab.
*/
boolean addonItemsUseSeparateTab();
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.jaquadro.minecraft.storagedrawers.api.pack.BlockConfiguration;

public interface IBlockConfig {

String getBlockConfigName(BlockConfiguration blockConfig);

boolean isBlockEnabled(String blockConfigName);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.jaquadro.minecraft.storagedrawers.api.config;

public interface IIntegrationConfig {

boolean isRefinedRelocationEnabled();

boolean isChiselEnabled();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* The main hub for user-managed mod configuration.
*/
public interface IUserConfig {

/**
* Configuration options related to third party addon packs for Storage Drawers.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import cpw.mods.fml.common.eventhandler.Event;

/**
* This event is called when a drawer has been bound to a new item. This is
* and opportunity for mods to cache extended data with the drawer.
* This event is called when a drawer has been bound to a new item. This is and opportunity for mods to cache extended
* data with the drawer.
*
* This event is also called when the drawer is changed to empty.
*/
public class DrawerPopulatedEvent extends Event {

public final IDrawer drawer;

public DrawerPopulatedEvent(IDrawer drawer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.minecraft.item.ItemStack;

public interface IDrawerInventory extends ISidedInventory {

/**
* Gets a drawer's group slot index from an IInventory slot index.
*
Expand All @@ -15,7 +16,7 @@ public interface IDrawerInventory extends ISidedInventory {
* Gets an IInventory slot index suitable for operations for the given type.
*
* @param drawerSlot The index of the drawer within its group.
* @param type The type of IInventory slot to return an index for.
* @param type The type of IInventory slot to return an index for.
*/
int getInventorySlot(int drawerSlot, SlotType type);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.minecraft.item.ItemStack;

public interface IInventoryAdapter {

ItemStack getInventoryStack(SlotType slotType);

void setInStack(ItemStack stack);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Classifies different IInventory slots according to how they should be used.
*/
public enum SlotType {

/** An inventory slot for input-only operations; stack sizes artificially held low. */
INPUT,

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.jaquadro.minecraft.storagedrawers.api.pack;

public enum BlockConfiguration {

BasicFull1(BlockType.Drawers, 1, false),
BasicFull2(BlockType.Drawers, 2, false),
BasicFull4(BlockType.Drawers, 4, false),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.minecraft.creativetab.CreativeTabs;

public class ExtendedDataResolver extends StandardDataResolver implements IExtendedDataResolver {

private Block[] planks = new Block[16];
private int[] planksMeta = new int[16];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.minecraft.block.Block;

public interface IExtendedDataResolver extends IPackDataResolver {

Block getBlock(BlockConfiguration blockConfig);

Block getPlankBlock(int meta);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.jaquadro.minecraft.storagedrawers.api.pack;

public interface IPackBlock {

IPackDataResolver getDataResolver();
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.minecraft.block.Block;

public interface IPackBlockFactory {

Block createBlock(BlockConfiguration blockConfig, IPackDataResolver dataResolver);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.minecraft.creativetab.CreativeTabs;

public interface IPackDataResolver {

String getPackModID();

String getBlockName(BlockConfiguration blockConfig);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.minecraft.creativetab.CreativeTabs;

public class StandardDataResolver implements IPackDataResolver {

private String modID;
private String[] unlocalizedNames;
private CreativeTabs creativeTab;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
import net.minecraft.item.ItemStack;

/**
* Ingredient handlers are used to get ItemStacks from ingredients in custom IRecipe implementations. If you have
* registered an IRecipeHandler that returns lists of objects that aren't ItemStacks, then you will need to
* implement an ingredient handler for those objects.
* Ingredient handlers are used to get ItemStacks from ingredients in custom IRecipe implementations. If you have
* registered an IRecipeHandler that returns lists of objects that aren't ItemStacks, then you will need to implement an
* ingredient handler for those objects.
*/
public interface IIngredientHandler {

/**
* Gets an ItemStack from an object that represents an ingredient in an IRecipe.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package com.jaquadro.minecraft.storagedrawers.api.registry;

import java.util.List;

import net.minecraft.item.crafting.IRecipe;

/**
* Recipe handlers are used by compacting drawers to find more-compressed forms of blocks and items. If your recipe
* to craft compressed items is a custom IRecipe implementation, you will need to register a handler for it.
* Recipe handlers are used by compacting drawers to find more-compressed forms of blocks and items. If your recipe to
* craft compressed items is a custom IRecipe implementation, you will need to register a handler for it.
*/
public interface IRecipeHandler {

/**
* Get the recipe ingredient list as an array of objects (usually used for shaped recipes).
* If your array does not contain ItemStack objects, you will need to register an {@link IIngredientHandler} to
* get an ItemStack from them.
* Get the recipe ingredient list as an array of objects (usually used for shaped recipes). If your array does not
* contain ItemStack objects, you will need to register an {@link IIngredientHandler} to get an ItemStack from them.
*
* If you would prefer to return a List, return null in this method and implement {@link #getInputAsList}.
*
Expand All @@ -21,9 +22,8 @@ public interface IRecipeHandler {
Object[] getInputAsArray(IRecipe recipe);

/**
* Get the recipe ingredient list as a list of objects (usually used for shapeless recipes).
* If your list does not contain ItemStack objects, you will need to register an {@link IIngredientHandler} to
* get an ItemStack from them.
* Get the recipe ingredient list as a list of objects (usually used for shapeless recipes). If your list does not
* contain ItemStack objects, you will need to register an {@link IIngredientHandler} to get an ItemStack from them.
*
* If you would prefer to return an array, return null in this method and implement {@link #getInputAsArray}.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.jaquadro.minecraft.storagedrawers.api.registry;

public interface IRecipeHandlerRegistry {

void registerRecipeHandler(Class clazz, IRecipeHandler handler);

void registerIngredientHandler(Class clazz, IIngredientHandler handler);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
import com.jaquadro.minecraft.storagedrawers.api.render.IRenderLabel;

public interface IRenderRegistry {

void registerPreLabelRenderHandler(IRenderLabel renderHandler);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.jaquadro.minecraft.storagedrawers.api.registry;

public interface IWailaRegistry {

void registerTooltipHandler(IWailaTooltipHandler handler);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
import com.jaquadro.minecraft.storagedrawers.api.storage.IDrawer;

public interface IWailaTooltipHandler {

String transformItemName(IDrawer drawer, String defaultName);
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.jaquadro.minecraft.storagedrawers.api.render;

import com.jaquadro.minecraft.storagedrawers.api.storage.IDrawerGroup;
import net.minecraft.tileentity.TileEntity;

import com.jaquadro.minecraft.storagedrawers.api.storage.IDrawerGroup;

public interface IRenderLabel {

void render(TileEntity tileEntity, IDrawerGroup drawerGroup, int slot, float brightness, float partialTickTime);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.mojang.authlib.GameProfile;

public interface ISecurityProvider {

String getProviderID();

boolean hasOwnership(GameProfile profile, IProtectable target);
Expand Down
Loading

0 comments on commit 6083517

Please sign in to comment.