mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-09-27 03:52:38 +02:00
Push Version to 3.0
This commit is contained in:
parent
d34dc240dc
commit
b39bbf47f5
@ -1,6 +1,6 @@
|
|||||||
### Brewery is a Minecraft-Plugin for an alternate brewing process, including alcoholic Potions.
|
### Brewery is a Minecraft-Plugin for an alternate brewing process, including alcoholic Potions.
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/DieReicheErethons/Brewery.png?branch=master)](https://travis-ci.org/DieReicheErethons/Brewery)
|
[![Build Status](https://travis-ci.org/DieReicheErethons/Brewery.png?branch=master)](https://travis-ci.org/DieReicheErethons/Brewery)
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ Also see [Wiki](https://github.com/DieReicheErethons/Brewery/wiki) | [Releases]
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.DieReicheErethons</groupId>
|
<groupId>com.github.DieReicheErethons</groupId>
|
||||||
<artifactId>Brewery</artifactId>
|
<artifactId>Brewery</artifactId>
|
||||||
<version>2.1.3</version>
|
<version>3.0</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<groupId>com.dre</groupId>
|
<groupId>com.dre</groupId>
|
||||||
<artifactId>Brewery</artifactId>
|
<artifactId>Brewery</artifactId>
|
||||||
<version>2.1.2</version>
|
<version>3.0</version>
|
||||||
<name>Brewery</name>
|
<name>Brewery</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: Brewery
|
name: Brewery
|
||||||
version: 2.1.2
|
version: 3.0
|
||||||
main: com.dre.brewery.P
|
main: com.dre.brewery.P
|
||||||
softdepend: [LWC, LogBlock, WorldGuard, GriefPrevention, Vault, ChestShop, Shopkeepers, Towny, BlockLocker]
|
softdepend: [LWC, LogBlock, WorldGuard, GriefPrevention, Vault, ChestShop, Shopkeepers, Towny, BlockLocker]
|
||||||
authors: [Milan Albrecht, Frank Baumann, ProgrammerDan, Daniel Saukel]
|
authors: [Milan Albrecht, Frank Baumann, ProgrammerDan, Daniel Saukel]
|
||||||
|
@ -32,7 +32,7 @@ public class BreweryApi {
|
|||||||
* <p>Higher numbers mean newer API, but it doesn't necessarily mean that something has changed, may be additions only
|
* <p>Higher numbers mean newer API, but it doesn't necessarily mean that something has changed, may be additions only
|
||||||
*/
|
*/
|
||||||
public static int getApiVersion() {
|
public static int getApiVersion() {
|
||||||
return 2;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -152,6 +152,7 @@ public class BreweryApi {
|
|||||||
*
|
*
|
||||||
* @param recipeName The Name of the Recipe to create this Brew from
|
* @param recipeName The Name of the Recipe to create this Brew from
|
||||||
* @return The Brew that was created. Can use brew.createItem() to get an ItemStack
|
* @return The Brew that was created. Can use brew.createItem() to get an ItemStack
|
||||||
|
* @since v3.0 (Api 3)
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public static Brew createBrew(String recipeName, int quality) {
|
public static Brew createBrew(String recipeName, int quality) {
|
||||||
@ -178,6 +179,7 @@ public class BreweryApi {
|
|||||||
* @param recipeName The Name of the Recipe to create this Item from
|
* @param recipeName The Name of the Recipe to create this Item from
|
||||||
* @param quality The Quality of the Brew Item
|
* @param quality The Quality of the Brew Item
|
||||||
* @return The Brew- ItemStack with Brew information stored on it
|
* @return The Brew- ItemStack with Brew information stored on it
|
||||||
|
* @since v3.0 (Api 3)
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public static ItemStack createBrewItem(String recipeName, int quality) {
|
public static ItemStack createBrewItem(String recipeName, int quality) {
|
||||||
@ -194,6 +196,7 @@ public class BreweryApi {
|
|||||||
* @param recipe The Recipe to create this Item from
|
* @param recipe The Recipe to create this Item from
|
||||||
* @param quality The Quality of the Brew Item
|
* @param quality The Quality of the Brew Item
|
||||||
* @return The Brew- ItemStack with Brew information stored on it
|
* @return The Brew- ItemStack with Brew information stored on it
|
||||||
|
* @since v3.0 (Api 3)
|
||||||
*/
|
*/
|
||||||
public static ItemStack createBrewItem(BRecipe recipe, int quality) {
|
public static ItemStack createBrewItem(BRecipe recipe, int quality) {
|
||||||
return recipe.create(quality);
|
return recipe.create(quality);
|
||||||
@ -204,6 +207,7 @@ public class BreweryApi {
|
|||||||
*
|
*
|
||||||
* @param item The ItemStack to get the Recipe Name of
|
* @param item The ItemStack to get the Recipe Name of
|
||||||
* @return The middle-quality name of the current Recipe. Null if it is not a brew, or it currently has no Recipe
|
* @return The middle-quality name of the current Recipe. Null if it is not a brew, or it currently has no Recipe
|
||||||
|
* @since v3.0 (Api 3)
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public static String getRecipeName(ItemStack item) {
|
public static String getRecipeName(ItemStack item) {
|
||||||
@ -219,6 +223,7 @@ public class BreweryApi {
|
|||||||
*
|
*
|
||||||
* @param brew The Brew to get the Recipe Name of
|
* @param brew The Brew to get the Recipe Name of
|
||||||
* @return The middle-quality name of the current Brew Recipe. Null if it currently has no Recipe
|
* @return The middle-quality name of the current Brew Recipe. Null if it currently has no Recipe
|
||||||
|
* @since v3.0 (Api 3)
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public static String getRecipeName(Brew brew) {
|
public static String getRecipeName(Brew brew) {
|
||||||
@ -328,6 +333,8 @@ public class BreweryApi {
|
|||||||
* Get a BRecipe by _one of_ its names.
|
* Get a BRecipe by _one of_ its names.
|
||||||
* <p>May be any of the quality names, or the optional config id.
|
* <p>May be any of the quality names, or the optional config id.
|
||||||
* <p>Returns null if recipe with that name does not exist
|
* <p>Returns null if recipe with that name does not exist
|
||||||
|
*
|
||||||
|
* @since v3.0 (Api 3)
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public static BRecipe getRecipeMatch(String name) {
|
public static BRecipe getRecipeMatch(String name) {
|
||||||
|
@ -41,6 +41,8 @@ public class BarrelAccessEvent extends BarrelEvent implements Cancellable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the clicked Block Face when clicking on the Barrel Block
|
* Get the clicked Block Face when clicking on the Barrel Block
|
||||||
|
*
|
||||||
|
* @since v3.0 (Api 3)
|
||||||
*/
|
*/
|
||||||
public BlockFace getClickedBlockFace() {
|
public BlockFace getClickedBlockFace() {
|
||||||
return clickedBlockFace;
|
return clickedBlockFace;
|
||||||
|
Loading…
Reference in New Issue
Block a user