2017-02-08 7 views
1

서버를로드 할 때 콘솔에서 플러그인을 사용하도록 설정하면이 오류 만 발생합니다.범위에서 TObjectHash <T> 유형의 엔클로저 인스턴스에 액세스 할 수 없습니다. Spigot plugin

타입 TObjectHash 아니오 둘러싸 인스턴스 범위 액세스

이어서 플러그인 스피 참조가 후의 것을

net.minecraft.server.v1_7_R4.ThreadServerApplication에서

.run (SourceFile : 628)

이 TObjectHash는 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(); 
 
    } 
 
    }

?

+1

Atte에 걸쳐 여러 번 대답하고있다 네 티온! 이것은 JavaScript가 아닙니다! 그것은 자바입니다. Java는 자동차가 카펫을 쓰는 것처럼 Javascript를 사용합니다. – Kerooker

+0

작성중인 플러그인입니까? 그렇다면 플러그인의 일부 코드를 제공해야합니다. – Kerooker

답변