net.minecraft.world.entity.ai.memory

public class ExpirableValue<T>

bvm
net.minecraft.world.entity.ai.memory.ExpirableValue
net.minecraft.class_4831
net.minecraft.entity.ai.brain.Memory
net.minecraft.src.C_752_
net.minecraft.world.entity.ai.memory.ExpirableMemory

Field summary

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

Constructor summary

ModifierConstructor
public (T value, long expiry)

Method summary

Modifier and TypeMethod
public void
a()
tick()
method_24913()
tick()
m_26301_()
public static <T> ExpirableValue<T>
a(T arg0)
of(T arg0)
method_28355(T arg0)
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)
timed(T value, long expiry)
m_26311_(T p_26312_, long p_26313_)
public long
b()
getTimeToLive()
method_35127()
getExpiry()
m_148191_()
public T
c()
getValue()
method_24637()
getValue()
m_26319_()
public boolean
d()
hasExpired()
method_24634()
isExpired()
m_26320_()
public boolean
e()
canExpire()
method_24914()
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)
createCodec(com.mojang.serialization.Codec<T> codec)
m_26304_(com.mojang.serialization.Codec<T> p_26305_)