1
當我加載服務器時,控制檯給這個插件提供了唯一的錯誤。在範圍內沒有可以訪問類型TObjectHash <T>的封閉實例。 Spigot插件
類型TObjectHash沒有外圍實例是在範圍訪問
然後後存在於套管插件參考
在net.minecraft.server.v1_7_R4.ThreadServerApplication .run(SourceFile:628)[spigot.jar:git-PaperSpigot-a925999]
此TObjectHash來自trove rep ository下面的代碼是這個裏面的文件:
package gnu.trove.impl.hash;
import gnu.trove.impl.hash.TObjectHash;
import gnu.trove.strategy.HashingStrategy;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
public abstract class TCustomObjectHash <T>
extends TObjectHash <T> {
static final long serialVersionUID = 8766048185963756400L;
protected HashingStrategy <? super T > strategy;
public TCustomObjectHash() {}
public TCustomObjectHash(HashingStrategy <? super T > strategy) {
this.strategy = strategy;
}
public TCustomObjectHash(HashingStrategy <? super T > strategy, int initialCapacity) {
super(initialCapacity);
this.strategy = strategy;
}
public TCustomObjectHash(HashingStrategy <? super T > strategy, int initialCapacity, float loadFactor) {
super(initialCapacity, loadFactor);
this.strategy = strategy;
}
@Override
protected int hash(Object obj) {
return this.strategy.computeHashCode(obj);
}
@Override
protected boolean equals(Object one, Object two) {
return two != REMOVED && this.strategy.equals(one, two);
}
@Override
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(0);
TObjectHash.super.writeExternal(out);
out.writeObject(this.strategy);
}
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { in .readByte();
TObjectHash.super.readExternal(in);
this.strategy = (HashingStrategy) in .readObject();
}
}
缺少什麼我在這裏?
ATTE回答了無數次ntion!這不是JavaScript!這是Java。 Java是以Javascript作爲汽車的地毯。 – Kerooker
這是你寫的插件嗎?如果是這樣,你必須提供你的插件的一些代碼。 – Kerooker