io.github.tt432.eyelib.network.RemoveParticlePacket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyelib Show documentation
Show all versions of eyelib Show documentation
A render lib for Minecraft
package io.github.tt432.eyelib.network;
import io.github.tt432.eyelib.Eyelib;
import io.github.tt432.eyelib.util.ResourceLocations;
import io.netty.buffer.ByteBuf;
import net.minecraft.network.codec.ByteBufCodecs;
import net.minecraft.network.codec.StreamCodec;
import net.minecraft.network.protocol.common.custom.CustomPacketPayload;
/**
* @author TT432
*/
public record RemoveParticlePacket(
String removeId
) implements CustomPacketPayload {
public static final CustomPacketPayload.Type TYPE =
new CustomPacketPayload.Type<>(ResourceLocations.of(Eyelib.MOD_ID, "remove_particle"));
public static final StreamCodec STREAM_CODEC = StreamCodec.composite(
ByteBufCodecs.STRING_UTF8,
RemoveParticlePacket::removeId,
RemoveParticlePacket::new
);
@Override
public Type extends CustomPacketPayload> type() {
return TYPE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy