net.minecraft.world.entity.ai.memory

public class ExpirableValue<T>

cfi
net.minecraft.world.entity.ai.memory.ExpirableValue
net.minecraft.class_4831
net.minecraft.unmapped.C_oudplusw
net.minecraft.entity.ai.brain.Memory
net.minecraft.entity.ai.brain.Memory
net.minecraft.src.C_752_

Field summary

Modifier and TypeField
private final T
a
value
field_22330
f_aivtrwoi
value
value
f_26296_
private long
b
timeToLive
field_22331
f_yywubldf
expiry
expiry
f_26297_

Constructor summary

ModifierConstructor
public (T value, long expiry)

Method summary

Modifier and TypeMethod
public void
a()
tick()
method_24913()
m_nxbbmefd()
tick()
tick()
m_26301_()
public static <T> ExpirableValue<T>
a(T arg0)
of(T arg0)
method_28355(T arg0)
m_cvyngmcu(T arg0)
permanent(T value)
permanent(T value)
m_26309_(T p_26310_)
public static <T> ExpirableValue<T>
a(T arg0, long arg1)
of(T arg0, long arg1)
method_24636(T arg0, long arg1)
m_xjpgfqkl(T arg0, long arg1)
timed(T value, long expiry)
timed(T value, long expiry)
m_26311_(T p_26312_, long p_26313_)
public long
b()
getTimeToLive()
method_35127()
m_ltykacxz()
getExpiry()
getExpiry()
m_148191_()
public T
c()
getValue()
method_24637()
m_ayszpszq()
getValue()
getValue()
m_26319_()
public boolean
d()
hasExpired()
method_24634()
m_cooqifvy()
isExpired()
isExpired()
m_26320_()
public boolean
e()
canExpire()
method_24914()
m_gzsmzkbp()
isTimed()
isTimed()
m_26321_()
public static <T> com.mojang.serialization.Codec<ExpirableValue<T>>
a(com.mojang.serialization.Codec<T> arg0)
codec(com.mojang.serialization.Codec<T> arg0)
method_28353(com.mojang.serialization.Codec<T> arg0)
m_zmnbceqi(com.mojang.serialization.Codec<T> arg0)
createCodec(com.mojang.serialization.Codec<T> codec)
createCodec(com.mojang.serialization.Codec<T> codec)
m_26304_(com.mojang.serialization.Codec<T> p_26305_)