32 lines
854 B
Java
32 lines
854 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* io.netty.buffer.ByteBuf
|
|
*/
|
|
package net.minecraft.network;
|
|
|
|
import io.netty.buffer.ByteBuf;
|
|
import java.util.function.Function;
|
|
import net.minecraft.core.RegistryAccess;
|
|
import net.minecraft.network.FriendlyByteBuf;
|
|
|
|
public class RegistryFriendlyByteBuf
|
|
extends FriendlyByteBuf {
|
|
private final RegistryAccess registryAccess;
|
|
|
|
public RegistryFriendlyByteBuf(ByteBuf source, RegistryAccess registryAccess) {
|
|
super(source);
|
|
this.registryAccess = registryAccess;
|
|
}
|
|
|
|
public RegistryAccess registryAccess() {
|
|
return this.registryAccess;
|
|
}
|
|
|
|
public static Function<ByteBuf, RegistryFriendlyByteBuf> decorator(RegistryAccess registryAccess) {
|
|
return buf -> new RegistryFriendlyByteBuf((ByteBuf)buf, registryAccess);
|
|
}
|
|
}
|
|
|