Added more javadoc
This commit is contained in:
@@ -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<>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user