net.minecraft.server.network

public record Filterable<T>

asz
net.minecraft.server.network.Filterable
net.minecraft.class_9262
net.minecraft.text.RawFilteredPair
net.minecraft.server.network.Filterable

Field summary

Modifier and TypeField
private final T
a
raw
comp_2369
raw
private final Optional<T>
b
filtered
comp_2370
filtered

Constructor summary

ModifierConstructor
public (T arg0, Optional<T> arg1)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<Filterable<T>>
a(com.mojang.serialization.Codec<T> arg0)
codec(com.mojang.serialization.Codec<T> arg0)
method_57135(com.mojang.serialization.Codec<T> arg0)
createCodec(com.mojang.serialization.Codec<T> baseCodec)
public static <B extends io.netty.buffer.ByteBuf, T> StreamCodec<B, Filterable<T>>
a(zt<B, T> arg0)
streamCodec(StreamCodec<B, T> arg0)
method_57139(class_9139<B, T> arg0)
createPacketCodec(PacketCodec<B, T> basePacketCodec)
public static <T> Filterable<T>
a(T arg0)
passThrough(T arg0)
method_57137(T arg0)
of(T raw)
public static Filterable<String>
a(ata arg0)
from(FilteredText arg0)
method_57134(class_5837 arg0)
of(FilteredMessage message)
public T
a(boolean arg0)
get(boolean arg0)
method_57140(boolean arg0)
get(boolean shouldFilter)
public <U> Filterable<U>
a(Function<T, U> arg0)
map(Function<T, U> arg0)
method_57138(Function<T, U> arg0)
map(Function<T, U> mapper)
public <U> Optional<Filterable<U>>
b(Function<T, Optional<U>> arg0)
resolve(Function<T, Optional<U>> arg0)
method_57141(Function<T, Optional<U>> arg0)
resolve(Function<T, Optional<U>> resolver)
public T
a()
raw()
comp_2369()
raw()
public Optional<T>
b()
filtered()
comp_2370()
filtered()