Package net.minecraft.server

Examples of net.minecraft.server.WatchableObject.b()


  public <K> K getWatchedData(int index, Class<K> type, K def) {
    WatchableObject object = (WatchableObject) DataWatcherRef.read.invoke(h().getDataWatcher(), index);
    if (object == null) {
      return def;
    }
    return Conversion.convert(object.b(), type, def);
  }

  @Override
  public int hashCode() {
    return entity == null ? super.hashCode() : entity.hashCode();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.