Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Skill Architecture -> Elevator #513

Merged
merged 7 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cleanup and actually implement elevators
  • Loading branch information
CrazyDev05 committed Dec 15, 2024
commit 20bbe6be3af4f1338a6601501040ae406712c7ec
27 changes: 0 additions & 27 deletions .devcontainer/devcontainer.json

This file was deleted.

3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ allprojects {
compileOnly "com.github.TechFortress:GriefPrevention:16.18.1"
implementation 'xyz.xenondevs:particle:1.8.1'
implementation "com.frengor:ultimateadvancementapi-shadeable:2.4.2"
implementation 'com.jeff-media:custom-block-data:2.2.3'
compileOnly 'com.griefdefender:api:2.1.0-SNAPSHOT'
compileOnly 'io.netty:netty-all:4.1.68.Final'

Expand Down Expand Up @@ -171,11 +172,13 @@ shadowJar {
relocate 'Fukkit.extensions', 'com.volmit.adapt.util.extensions'
relocate 'Amulet.extensions', 'com.volmit.adapt.util.extensions'
relocate 'com.fren_gor.ultimateAdvancementAPI', 'com.volmit.adapt.util.advancements'
relocate 'com.jeff_media.customblockdata', 'com.volmit.util.customblocks'
dependencies {
include(dependency('systems.manifold:'))
include(dependency('xyz.xenondevs:'))
include(dependency('com.github.VolmitDev:'))
include(dependency('com.frengor:ultimateadvancementapi-shadeable:'))
include(dependency('com.jeff-media:custom-block-data:'))
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/volmit/adapt/Adapt.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package com.volmit.adapt;

import art.arcane.amulet.io.FolderWatcher;
import com.jeff_media.customblockdata.CustomBlockData;
import com.volmit.adapt.api.advancement.AdvancementManager;
import com.volmit.adapt.api.data.WorldData;
import com.volmit.adapt.api.potion.BrewingManager;
Expand Down Expand Up @@ -116,6 +117,7 @@ public void start() {
sqlManager.establishConnection();
}
startSim();
CustomBlockData.registerListener(this);
registerListener(new BrewingManager());
registerListener(Version.get());
setupMetrics();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/volmit/adapt/api/recipe/AdaptRecipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public ItemStack getResult() {
public void register() {
ShapedRecipe s = new ShapedRecipe(new NamespacedKey(Adapt.instance, getKey()), result);
s.shape(shapes.toArray(new String[0]));
ingredients.forEach(i -> s.setIngredient(i.getCharacter(), i.getMaterial()));
ingredients.forEach(i -> s.setIngredient(i.getCharacter(), i.getChoice()));
Bukkit.getServer().addRecipe(s);
Adapt.verbose("Registered Shaped Crafting Recipe " + s.getKey());
}
Expand Down
20 changes: 19 additions & 1 deletion src/main/java/com/volmit/adapt/api/recipe/MaterialChar.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,28 @@
import lombok.AllArgsConstructor;
import lombok.Data;
import org.bukkit.Material;
import org.bukkit.Tag;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.RecipeChoice;

@AllArgsConstructor
@Data
public class MaterialChar {
private char character;
private Material material;
private RecipeChoice choice;

public MaterialChar(char character, Tag<Material> tag) {
this.character = character;
this.choice = new RecipeChoice.MaterialChoice(tag);
}

public MaterialChar(char character, Material... material) {
this.character = character;
this.choice = new RecipeChoice.MaterialChoice(material);
}

public MaterialChar(char character, ItemStack... itemStack) {
this.character = character;
this.choice = new RecipeChoice.ExactChoice(itemStack);
}
}
Loading