net.minecraft.world.entity.ai.memory

public class ExpirableValue<T>

ayc
net.minecraft.world.entity.ai.memory.ExpirableValue
net.minecraft.class_4831
net.minecraft.entity.ai.brain.Memory
net.minecraft.entity.ai.brain.Memory
net.minecraft.server.v1_16_R3.ExpirableMemory

Field summary

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

Constructor summary

ModifierConstructor
public (T value, long expiry)

Method summary

Modifier and TypeMethod
public void
a()
tick()
method_24913()
tick()
func_234064_a_()
public static <T> ExpirableValue<T>
a(T arg0)
of(T arg0)
method_28355(T arg0)
method_28355(T arg0)
func_234068_a_(T arg0)
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)
func_234069_a_(T arg0, long arg1)
public T
c()
getValue()
method_24637()
getValue()
func_234072_c_()
public boolean
d()
hasExpired()
method_24634()
isExpired()
func_234073_d_()
public boolean
e()
canExpire()
method_24914()
method_24914()
func_234074_e_()
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)
func_234066_a_(com.mojang.serialization.Codec<T> arg0)