本文整理汇总了Java中ethanjones.data.DataGroup.put方法的典型用法代码示例。如果您正苦于以下问题:Java DataGroup.put方法的具体用法?Java DataGroup.put怎么用?Java DataGroup.put使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ethanjones.data.DataGroup
的用法示例。
在下文中一共展示了DataGroup.put方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
dataGroup.put("saveVersion", 0);
dataGroup.put("worldSeed", worldSeed);
dataGroup.put("worldSeedStr", worldSeedString);
dataGroup.put("worldTime", worldTime);
dataGroup.put("worldType", worldType);
dataGroup.put("worldGamemode", worldGamemode.name());
dataGroup.put("idManager", idManager);
dataGroup.put("lastOpenedTime", System.currentTimeMillis());
DataGroup version = dataGroup.getGroup("lastVersion");
version.put("major", Branding.VERSION_MAJOR);
version.put("minor", Branding.VERSION_MINOR);
version.put("point", Branding.VERSION_POINT);
version.put("build", Branding.VERSION_BUILD);
version.put("hash", Branding.VERSION_HASH);
return dataGroup;
}
示例2: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
dataGroup.put("saveVersion", 0);
dataGroup.put("worldSeed", worldSeed);
dataGroup.put("worldSeedStr", worldSeedString);
dataGroup.put("worldTime", worldTime);
dataGroup.put("worldType", worldType);
dataGroup.put("worldGamemode", worldGamemode.name());
dataGroup.put("idManager", idManager);
dataGroup.put("lastOpenedTime", System.currentTimeMillis());
DataGroup version = dataGroup.getGroup("lastVersion");
version.put("major", Branding.VERSION_MAJOR);
version.put("minor", Branding.VERSION_MINOR);
version.put("point", Branding.VERSION_POINT);
version.put("build", Branding.VERSION_BUILD);
version.put("hash", Branding.VERSION_HASH);
return dataGroup;
}
示例3: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
dataGroup.put("id", id);
dataGroup.put("uuid", uuid);
dataGroup.put("pos", VectorUtil.array(position));
dataGroup.put("motion", VectorUtil.array(motion));
dataGroup.put("ang", VectorUtil.array(angle));
return dataGroup;
}
示例4: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup data = super.write();
data.put("health", health);
data.put("maxHealth", maxHealth);
return data;
}
示例5: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
dataGroup.put("idManager", idManager);
dataGroup.put("player", player);
dataGroup.put("worldTime", worldTime);
dataGroup.put("worldGamemode", gamemode.name());
return dataGroup;
}
示例6: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
dataGroup.put("areaX", areaX);
dataGroup.put("areaZ", areaZ);
dataGroup.put("blockX", blockX);
dataGroup.put("blockY", blockY);
dataGroup.put("blockZ", blockZ);
dataGroup.put("data", this.dataGroup);
return dataGroup;
}
示例7: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
dataGroup.put("item", IDManager.toInt(item));
dataGroup.put("count", count);
if (meta != 0) dataGroup.put("meta", meta);
return dataGroup;
}
示例8: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
DataGroup[] groups = new DataGroup[itemStacks.length];
for (int i = 0; i < itemStacks.length; i++) {
if (itemStacks[i] == null) {
groups[i] = new DataGroup();
} else {
groups[i] = itemStacks[i].write();
}
}
dataGroup.put("itemstacks", groups);
return dataGroup;
}
示例9: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
dataGroup.put("id", id);
dataGroup.put("uuid", uuid);
dataGroup.put("pos", VectorUtil.array(position));
dataGroup.put("motion", VectorUtil.array(motion));
dataGroup.put("ang", VectorUtil.array(angle));
return dataGroup;
}
示例10: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
DataGroup[] groups = new DataGroup[itemStacks.length];
for (int i = 0; i < itemStacks.length; i++) {
if (itemStacks[i] == null) {
groups[i] = new DataGroup();
} else {
groups[i] = itemStacks[i].write();
}
}
dataGroup.put("itemstacks", groups);
return dataGroup;
}
示例11: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
dataGroup.put("idManager", idManager);
dataGroup.put("player", player);
dataGroup.put("worldTime", worldTime);
dataGroup.put("worldGamemode", gamemode.name());
return dataGroup;
}
示例12: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
dataGroup.put("uuid", uuid);
dataGroup.put("username", username);
dataGroup.put("renderDistance", renderDistance);
return dataGroup;
}
示例13: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = super.write();
dataGroup.put("selected", hotbarSelected);
return dataGroup;
}
示例14: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
public DataGroup write() {
DataGroup dataGroup = super.write();
dataGroup.put("username", username);
dataGroup.put("inventory", inventory.write());
return dataGroup;
}
示例15: write
import ethanjones.data.DataGroup; //导入方法依赖的package包/类
@Override
public DataGroup write() {
DataGroup dataGroup = new DataGroup();
dataGroup.put("uuid", uuid);
return dataGroup;
}