Class MemorySlot<T>
java.lang.Object
net.minecraft.world.entity.ai.memory.MemorySlot<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidclear()static <T> MemorySlot<T> create()booleanbooleanhasValue()voidvoidvoidtick()longtoString()@Nullable Tvalue()voidvisit(MemoryModuleType<T> type, Brain.Visitor visitor)
-
Field Details
-
NEVER_EXPIRE
private static final long NEVER_EXPIRE- See Also:
-
value
-
timeToLive
private long timeToLive
-
-
Constructor Details
-
MemorySlot
-
-
Method Details
-
tick
public void tick() -
create
-
set
-
set
-
clear
public void clear() -
hasValue
public boolean hasValue() -
value
-
canExpire
public boolean canExpire() -
hasExpired
public boolean hasExpired() -
timeToLive
public long timeToLive() -
toString
-
visit
-