Skip to content

Commit

Permalink
Updated Via API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Oct 25, 2024
1 parent ef45ab5 commit d8db18e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repositories {
}

dependencies {
compileOnly "com.viaversion:viaversion-common:5.0.4"
compileOnly "com.viaversion:viaversion-common:5.1.0"
compileOnly "com.google.guava:guava:33.3.1-jre"
compileOnly "io.netty:netty-handler:4.1.114.Final"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.viaversion.nbt.tag.ListTag;
import com.viaversion.nbt.tag.StringTag;
import com.viaversion.viaversion.api.connection.UserConnection;
import com.viaversion.viaversion.api.minecraft.Particle;
import com.viaversion.viaversion.api.minecraft.item.Item;
import com.viaversion.viaversion.api.protocol.Protocol;
import com.viaversion.viaversion.api.protocol.packet.ClientboundPacketType;
Expand Down Expand Up @@ -136,6 +137,11 @@ public Item handleItemToServer(final UserConnection user, final Item item) {
return item;
}

@Override
public void rewriteParticle(final UserConnection userConnection, final Particle particle) {
// Rewriting particles in the item rewriter? VV moment
}

@Override
public Type<Item> itemType() {
return this.itemType;
Expand Down

0 comments on commit d8db18e

Please sign in to comment.