From b39bbf47f57fe817ba65e296d0c45cd16ddf6a13 Mon Sep 17 00:00:00 2001 From: Sn0wStorm Date: Sat, 28 Nov 2020 12:11:59 +0100 Subject: [PATCH] Push Version to 3.0 --- README.md | 6 +++--- pom.xml | 2 +- resources/plugin.yml | 2 +- src/com/dre/brewery/api/BreweryApi.java | 9 ++++++++- .../dre/brewery/api/events/barrel/BarrelAccessEvent.java | 2 ++ 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 541be79..6baa118 100644 --- a/README.md +++ b/README.md @@ -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] com.github.DieReicheErethons Brewery - 2.1.3 + 3.0 provided ``` diff --git a/pom.xml b/pom.xml index 6767bd8..2c4ea6b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.dre Brewery - 2.1.2 + 3.0 Brewery diff --git a/resources/plugin.yml b/resources/plugin.yml index 1066c5f..9d7ff83 100644 --- a/resources/plugin.yml +++ b/resources/plugin.yml @@ -1,5 +1,5 @@ name: Brewery -version: 2.1.2 +version: 3.0 main: com.dre.brewery.P softdepend: [LWC, LogBlock, WorldGuard, GriefPrevention, Vault, ChestShop, Shopkeepers, Towny, BlockLocker] authors: [Milan Albrecht, Frank Baumann, ProgrammerDan, Daniel Saukel] diff --git a/src/com/dre/brewery/api/BreweryApi.java b/src/com/dre/brewery/api/BreweryApi.java index d13b336..bd58178 100644 --- a/src/com/dre/brewery/api/BreweryApi.java +++ b/src/com/dre/brewery/api/BreweryApi.java @@ -32,7 +32,7 @@ public class BreweryApi { *

Higher numbers mean newer API, but it doesn't necessarily mean that something has changed, may be additions only */ 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 * @return The Brew that was created. Can use brew.createItem() to get an ItemStack + * @since v3.0 (Api 3) */ @Nullable 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 quality The Quality of the Brew Item * @return The Brew- ItemStack with Brew information stored on it + * @since v3.0 (Api 3) */ @Nullable 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 quality The Quality of the Brew Item * @return The Brew- ItemStack with Brew information stored on it + * @since v3.0 (Api 3) */ public static ItemStack createBrewItem(BRecipe recipe, int quality) { return recipe.create(quality); @@ -204,6 +207,7 @@ public class BreweryApi { * * @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 + * @since v3.0 (Api 3) */ @Nullable public static String getRecipeName(ItemStack item) { @@ -219,6 +223,7 @@ public class BreweryApi { * * @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 + * @since v3.0 (Api 3) */ @Nullable public static String getRecipeName(Brew brew) { @@ -328,6 +333,8 @@ public class BreweryApi { * Get a BRecipe by _one of_ its names. *

May be any of the quality names, or the optional config id. *

Returns null if recipe with that name does not exist + * + * @since v3.0 (Api 3) */ @Nullable public static BRecipe getRecipeMatch(String name) { diff --git a/src/com/dre/brewery/api/events/barrel/BarrelAccessEvent.java b/src/com/dre/brewery/api/events/barrel/BarrelAccessEvent.java index 2ac4c95..08a578f 100644 --- a/src/com/dre/brewery/api/events/barrel/BarrelAccessEvent.java +++ b/src/com/dre/brewery/api/events/barrel/BarrelAccessEvent.java @@ -41,6 +41,8 @@ public class BarrelAccessEvent extends BarrelEvent implements Cancellable { /** * Get the clicked Block Face when clicking on the Barrel Block + * + * @since v3.0 (Api 3) */ public BlockFace getClickedBlockFace() { return clickedBlockFace;