mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Bumped for FC release.
This commit is contained in:
parent
36be4b9a9f
commit
9bc38d2a27
3 changed files with 1 additions and 59 deletions
|
@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
# Actually Additions
|
# Actually Additions
|
||||||
|
|
||||||
mod_version=1.2.0
|
mod_version=1.2.2
|
||||||
|
|
||||||
# Forge
|
# Forge
|
||||||
game_version=1.20.4
|
game_version=1.20.4
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
package invtweaks.api.container;
|
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
|
||||||
import java.lang.annotation.Retention;
|
|
||||||
import java.lang.annotation.RetentionPolicy;
|
|
||||||
import java.lang.annotation.Target;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A marker for containers that have a chest-like persistent storage component. Enables the Inventory Tweaks sorting
|
|
||||||
* buttons for this container.
|
|
||||||
*/
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Target(ElementType.TYPE)
|
|
||||||
public @interface ChestContainer {
|
|
||||||
// Set to true if the Inventory Tweaks sorting buttons should be shown for this container.
|
|
||||||
boolean showButtons() default true;
|
|
||||||
|
|
||||||
// Size of a chest row
|
|
||||||
int rowSize() default 9;
|
|
||||||
|
|
||||||
// Uses 'large chest' mode for sorting buttons
|
|
||||||
// (Renders buttons vertically down the right side of the GUI)
|
|
||||||
boolean isLargeChest() default false;
|
|
||||||
|
|
||||||
// Annotation for method to get size of a chest row if it is not a fixed size for this container class
|
|
||||||
// Signature int func()
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Target(ElementType.METHOD)
|
|
||||||
@interface RowSizeCallback {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Annotation for method to get size of a chest row if it is not a fixed size for this container class
|
|
||||||
// Signature int func()
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Target(ElementType.METHOD)
|
|
||||||
@interface IsLargeCallback {
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,20 +0,0 @@
|
||||||
package invtweaks.api.container;
|
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
|
||||||
import java.lang.annotation.Retention;
|
|
||||||
import java.lang.annotation.RetentionPolicy;
|
|
||||||
import java.lang.annotation.Target;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A marker for containers that need special treatment, such as crafting inputs or alternate player inventory positions,
|
|
||||||
* but do not have a chest-like component.
|
|
||||||
* <p>
|
|
||||||
* Does not enable the Inventory Tweaks sorting buttons for this container.
|
|
||||||
*/
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Target(ElementType.TYPE)
|
|
||||||
public @interface InventoryContainer {
|
|
||||||
// Set to true if the Inventory Tweaks options button should be shown for this container.
|
|
||||||
// (For instance, if you are replacing a vanilla container such as the player's inventory)
|
|
||||||
boolean showOptions() default true;
|
|
||||||
}
|
|
Loading…
Reference in a new issue