net.minecraft.world.entity.ai.memory

public class ExpirableValue<T>

cel
net.minecraft.world.entity.ai.memory.ExpirableValue
net.minecraft.class_4831
net.minecraft.entity.ai.brain.Memory
net.minecraft.world.entity.ai.memory.ExpirableMemory

Field summary

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

Constructor summary

ModifierConstructor
public (T value, long expiry)

Method summary

Modifier and TypeMethod
public void
a()
tick()
method_24913()
tick()
public static <T> ExpirableValue<T>
a(T arg0)
of(T arg0)
method_28355(T arg0)
permanent(T value)
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)
public long
b()
getTimeToLive()
method_35127()
getExpiry()
public T
c()
getValue()
method_24637()
getValue()
public boolean
d()
hasExpired()
method_24634()
isExpired()
public boolean
e()
canExpire()
method_24914()
isTimed()
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)