net.minecraft.server.network

public record Filterable<T>

arl
net.minecraft.server.network.Filterable
net.minecraft.class_9262
net.minecraft.text.RawFilteredPair
net.minecraft.src.C_313766_
net.minecraft.server.network.Filterable

Field summary

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

Constructor summary

ModifierConstructor
public (T filtered, 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)
m_322486_(com.mojang.serialization.Codec<T> p_327990_)
public static <B extends io.netty.buffer.ByteBuf, T> StreamCodec<B, Filterable<T>>
a(yx<B, T> arg0)
streamCodec(StreamCodec<B, T> arg0)
method_57139(class_9139<B, T> arg0)
createPacketCodec(PacketCodec<B, T> basePacketCodec)
m_323964_(C_313866_<B, T> p_328361_)
public static <T> Filterable<T>
a(T arg0)
passThrough(T arg0)
method_57137(T arg0)
of(T raw)
m_323001_(T p_333360_)
public static Filterable<String>
a(arm arg0)
from(FilteredText arg0)
method_57134(class_5837 arg0)
of(FilteredMessage message)
m_320455_(C_212939_ p_332002_)
public T
a(boolean arg0)
get(boolean arg0)
method_57140(boolean arg0)
get(boolean shouldFilter)
m_323302_(boolean arg0)
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)
m_321832_(Function<T, U> arg0)
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)
m_320562_(Function<T, Optional<U>> arg0)
public T
a()
raw()
comp_2369()
raw()
f_315590_()
public Optional<T>
b()
filtered()
comp_2370()
filtered()
f_316433_()