net.minecraft.entity.ai.brain

public class Memory<T>

net.minecraft.world.entity.ai.memory.MemorySlot
net.minecraft.class_4831
net.minecraft.entity.ai.brain.Memory

Field summary

Modifier and TypeField
private static final long
NEVER_EXPIRE
field_1_1524
UNTIMED
private T
value
field_22330
value
private long
timeToLive
field_22331
expiry

Constructor summary

ModifierConstructor
private (T value, long expiry)

Method summary

Modifier and TypeMethod
public void
tick()
method_24913()
tick()
public static <T> Memory<T>
create()
method_1_1817()
empty()
public void
set(T value, long timeToLive)
method_1_1820(T arg0, long arg1)
set(T value, long expiry)
public void
set(T value)
method_1_1819(T arg0)
set(T value)
public void
clear()
method_1_1816()
reset()
public boolean
hasValue()
method_1_1818()
hasValue()
public T
value()
method_24637()
getValue()
public boolean
canExpire()
method_24914()
isTimed()
public boolean
hasExpired()
method_24634()
isExpired()
public long
timeToLive()
method_35127()
getExpiry()
public void
visit(MemoryModuleType<T> type, Brain$Visitor visitor)
method_1_1821(class_4140<T> arg0, class_4095$class_1_188 arg1)
callMemoryConsumer(MemoryModuleType<T> type, Brain$MemoryConsumer memoryConsumer)