Refactoring #64
@ -20,6 +20,8 @@
|
||||
package de.steamwar.bausystem.linkage;
|
||||
|
||||
import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.utils.FlatteningWrapper;
|
||||
import de.steamwar.bausystem.utils.NMSWrapper;
|
||||
import lombok.experimental.UtilityClass;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
@ -39,6 +41,12 @@ public class LinkageUtils {
|
||||
private Map<Class<?>, Object> objectMap = new HashMap<>();
|
||||
private Set<Field> fieldsToLink = new HashSet<>();
|
||||
|
||||
{
|
||||
objectMap.put(BauSystem.class, BauSystem.getInstance());
|
||||
objectMap.put(FlatteningWrapper.IFlatteningWrapper.class, FlatteningWrapper.impl);
|
||||
objectMap.put(NMSWrapper.INMSWrapper.class, NMSWrapper.impl);
|
||||
}
|
||||
|
||||
public void link() {
|
||||
internalLinkOrUnlink(false, Linked.class);
|
||||
internalLinkFields();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren