Added more javadoc

This commit is contained in:
Akiranya
2021-09-26 11:44:49 +08:00
parent 9792ee23b5
commit 9e07aedcc3

View File

@@ -6,6 +6,8 @@ import java.util.Map;
import java.util.WeakHashMap;
/**
* Weak metadata to prevent memory leaks.
* <p>
* Author: Akiranya (Nailm)
*/
public class WeakMetadata {
@@ -13,16 +15,16 @@ public class WeakMetadata {
/**
* Summoned entities by the summoning enchantments.
* <p>
* K: summoned entity
* V: the target of the summoned entity
* <p>K: summoned entity
* <p>V: the target of the summoned entity
*/
public final static Map<Entity, Object> SUMMONED_ENTITY_MEMORY = new WeakHashMap<>();
/**
* Victim entities which the summoned entities target at.
* <p>
* K: entity which the summoned entities target at
* V: nothing (passing null is fine)
* <p>K: entity which the summoned entities target at
* <p>V: nothing (passing null is fine)
*/
public final static Map<Entity, Object> SUMMONED_ENTITY_TARGET = new WeakHashMap<>();
}