本文整理汇总了Java中mcjty.theoneprobe.api.IProbeHitEntityData类的典型用法代码示例。如果您正苦于以下问题:Java IProbeHitEntityData类的具体用法?Java IProbeHitEntityData怎么用?Java IProbeHitEntityData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IProbeHitEntityData类属于mcjty.theoneprobe.api包,在下文中一共展示了IProbeHitEntityData类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addProbeInfo
import mcjty.theoneprobe.api.IProbeHitEntityData; //导入依赖的package包/类
@Override
public void addProbeInfo(ProbeMode mode, IProbeInfo probeInfo, EntityPlayer player, World world, Entity entity, IProbeHitEntityData data) {
if (!isTamed()) {
probeInfo.horizontal().item(new ItemStack(ModItems.FRIENDER_PEARL), new ItemStyle().width(8).height(8)).text(" Right-click with FrienderPearl to tame.");
}
else {
String ownerName = "";
ownerName = PlayerUUIDUtils.getPlayerName(getOwnerId());
if (ownerName == "") {
ownerName = "<Unavailable>";
}
probeInfo.horizontal().text("Owner: " + ownerName);
probeInfo.horizontal().text("Mode: " + (isSitting() ? "Idle" : "Following/Defending"));
if (isHoldingChest() && player == getOwner()) {
probeInfo.horizontal().text("Sneak+Right-Click to take chest");
}
}
}
示例2: getProbeConfig
import mcjty.theoneprobe.api.IProbeHitEntityData; //导入依赖的package包/类
@Override
public void getProbeConfig(IProbeConfig config, EntityPlayer player, World world, Entity entity, IProbeHitEntityData data) {
}
示例3: addProbeInfo
import mcjty.theoneprobe.api.IProbeHitEntityData; //导入依赖的package包/类
void addProbeInfo(ProbeMode mode, IProbeInfo probeInfo, EntityPlayer player, World world, Entity entity, IProbeHitEntityData data);