Skip to content

Commit

Permalink
feat: itemquantifiable, allowing for more precise recipe displays
Browse files Browse the repository at this point in the history
chore: updated Minestom version hash

Took 3 hours 11 minutes
  • Loading branch information
Swofty-Developments committed Jul 27, 2024
1 parent a4d2918 commit 98c149b
Show file tree
Hide file tree
Showing 313 changed files with 1,506 additions and 1,508 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion anticheat/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repositories {
}

dependencies {
implementation("com.github.Minestom:Minestom:2be6f9c507") {
implementation("net.minestom:minestom-snapshots:12794d4263") {
exclude(group = "org.jboss.shrinkwrap.resolver", module = "shrinkwrap-resolver-depchain")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class SwoftyPlayer {

private List<PlayerTickInformation> lastTicks = new ArrayList<>();
private PlayerTickInformation currentTick = new PlayerTickInformation(new Pos(0, 0, 0), new Vel(0, 0, 0), false);
private PlayerWorld world = new PlayerWorld();
private final PlayerWorld world = new PlayerWorld();

private final LinkedBlockingDeque<PingRequest> pingRequests = new LinkedBlockingDeque<>();
private long ping;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package net.swofty.anticheat.loader.minestom;

import net.kyori.adventure.text.serializer.json.JSONComponentSerializer;
import net.minestom.server.MinecraftServer;
import net.minestom.server.entity.Player;
import net.minestom.server.event.GlobalEventHandler;
import net.minestom.server.event.player.PlayerPacketEvent;
import net.minestom.server.event.player.PlayerPacketOutEvent;
import net.minestom.server.instance.Instance;
import net.minestom.server.listener.manager.PacketPlayListenerConsumer;
import net.minestom.server.network.packet.client.ClientPacket;
import net.minestom.server.network.packet.client.common.ClientPingRequestPacket;
Expand All @@ -13,6 +15,9 @@
import net.minestom.server.network.packet.server.SendablePacket;
import net.minestom.server.network.packet.server.ServerPacket;
import net.minestom.server.network.packet.server.common.PingPacket;
import net.minestom.server.network.packet.server.play.BlockChangePacket;
import net.minestom.server.network.packet.server.play.ChunkDataPacket;
import net.minestom.server.network.packet.server.play.data.ChunkData;
import net.swofty.anticheat.event.SwoftyEventHandler;
import net.swofty.anticheat.event.events.AnticheatPacketEvent;
import net.swofty.anticheat.event.packet.*;
Expand Down
2 changes: 1 addition & 1 deletion commons/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ java {

dependencies {
implementation(project(":packer"))
implementation("com.github.Minestom:Minestom:2be6f9c507") {
implementation("net.minestom:minestom-snapshots:12794d4263") {
exclude(group = "org.jboss.shrinkwrap.resolver", module = "shrinkwrap-resolver-depchain")
}
}
2 changes: 1 addition & 1 deletion loader/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {
implementation(project(":spark"))
implementation(project(":anticheat"))
implementation("org.slf4j:slf4j-api:2.0.13")
implementation("com.github.Minestom:Minestom:2be6f9c507") {
implementation("net.minestom:minestom-snapshots:12794d4263") {
exclude(group = "org.jboss.shrinkwrap.resolver", module = "shrinkwrap-resolver-depchain")
}
implementation("dev.hollowcube:polar:1.10.0")
Expand Down
2 changes: 1 addition & 1 deletion proxy.api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
dependencies {
implementation(project(":commons"))
implementation("com.github.Swofty-Developments:AtlasRedisAPI:1.1.2")
implementation("com.github.Minestom:Minestom:2be6f9c507") {
implementation("net.minestom:minestom-snapshots:12794d4263") {
exclude(group = "org.jboss.shrinkwrap.resolver", module = "shrinkwrap-resolver-depchain")
}
implementation("net.kyori:adventure-api:4.17.0")
Expand Down
2 changes: 1 addition & 1 deletion spark/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repositories {
}

dependencies {
implementation("com.github.Minestom:Minestom:2be6f9c507") {
implementation("net.minestom:minestom-snapshots:12794d4263") {
exclude(group = "org.jboss.shrinkwrap.resolver", module = "shrinkwrap-resolver-depchain")
}
implementation(files("dependencies/spark-1.10.1.10-minestom.jar"))
Expand Down
2 changes: 1 addition & 1 deletion type.generic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {
implementation(project(":commons"))
implementation(project(":packer"))
implementation(project(":proxy.api"))
implementation("com.github.Minestom:Minestom:2be6f9c507") {
implementation("net.minestom:minestom-snapshots:12794d4263") {
exclude(group = "org.jboss.shrinkwrap.resolver", module = "shrinkwrap-resolver-depchain")
}
implementation("dev.hollowcube:polar:1.10.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import net.swofty.types.generic.collection.CollectionCategory;
import net.swofty.types.generic.collection.CustomCollectionAward;
import net.swofty.types.generic.item.ItemTypeLinker;
import net.swofty.types.generic.item.MaterialQuantifiable;
import net.swofty.types.generic.item.ItemQuantifiable;
import net.swofty.types.generic.item.SkyBlockItem;
import net.swofty.types.generic.item.impl.Minion;
import net.swofty.types.generic.item.impl.SkyBlockRecipe;
Expand Down Expand Up @@ -290,9 +290,9 @@ public int xp() {
}, new UnlockRecipe() {
@Override
public SkyBlockRecipe<?> getRecipe() {
Map<Character, MaterialQuantifiable> ingredientMap = new HashMap<>();
ingredientMap.put('A', new MaterialQuantifiable(ItemType.ENCHANTED_EYE_OF_ENDER, 16));
ingredientMap.put('B', new MaterialQuantifiable(ItemType.ENCHANTED_DIAMOND, 1));
Map<Character, ItemQuantifiable> ingredientMap = new HashMap<>();
ingredientMap.put('A', new ItemQuantifiable(ItemType.ENCHANTED_EYE_OF_ENDER, 16));
ingredientMap.put('B', new ItemQuantifiable(ItemType.ENCHANTED_DIAMOND, 1));
List<String> pattern = List.of(
"A",
"A",
Expand Down Expand Up @@ -505,9 +505,9 @@ public int xp() {
}, new UnlockRecipe() {
@Override
public SkyBlockRecipe getRecipe() {
Map<Character, MaterialQuantifiable> ingredientMap = new HashMap<>();
ingredientMap.put('A', new MaterialQuantifiable(ItemType.ENCHANTED_GHAST_TEAR, 5));
ingredientMap.put(' ', new MaterialQuantifiable(ItemType.AIR, 1));
Map<Character, ItemQuantifiable> ingredientMap = new HashMap<>();
ingredientMap.put('A', new ItemQuantifiable(ItemType.ENCHANTED_GHAST_TEAR, 5));
ingredientMap.put(' ', new ItemQuantifiable(ItemType.AIR, 1));
List<String> pattern = List.of(
" A ",
"AAA",
Expand Down Expand Up @@ -735,9 +735,9 @@ public int xp() {
new ItemCollectionReward(5000, new UnlockRecipe() {
@Override
public SkyBlockRecipe getRecipe() {
Map<Character, MaterialQuantifiable> ingredientMap = new HashMap<>();
ingredientMap.put('A', new MaterialQuantifiable(ItemType.ENCHANTED_ROTTEN_FLESH, 32));
ingredientMap.put(' ', new MaterialQuantifiable(ItemType.AIR, 1));
Map<Character, ItemQuantifiable> ingredientMap = new HashMap<>();
ingredientMap.put('A', new ItemQuantifiable(ItemType.ENCHANTED_ROTTEN_FLESH, 32));
ingredientMap.put(' ', new ItemQuantifiable(ItemType.AIR, 1));
List<String> pattern = List.of(
"AAA",
"A A",
Expand Down
Loading

0 comments on commit 98c149b

Please sign in to comment.