/* * 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 decorator(RegistryAccess registryAccess) { return buf -> new RegistryFriendlyByteBuf((ByteBuf)buf, registryAccess); } }