Updated Via API usage

This commit is contained in:
RaphiMC 2024-10-25 18:39:21 +02:00
parent ef45ab599a
commit d8db18ed0a
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
2 changed files with 7 additions and 1 deletions

View File

@ -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"
}

View File

@ -21,6 +21,7 @@ import com.viaversion.nbt.tag.CompoundTag;
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;
@ -136,6 +137,11 @@ public abstract class LegacyItemRewriter<C extends ClientboundPacketType, S exte
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;