本文整理汇总了Java中me.planetguy.lib.util.Debug.mark方法的典型用法代码示例。如果您正苦于以下问题:Java Debug.mark方法的具体用法?Java Debug.mark怎么用?Java Debug.mark使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类me.planetguy.lib.util.Debug
的用法示例。
在下文中一共展示了Debug.mark方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: serverLoad
import me.planetguy.lib.util.Debug; //导入方法依赖的package包/类
@EventHandler
public void serverLoad(FMLServerStartingEvent evt) {
Debug.mark();
evt.registerServerCommand(new CommandEditBlacklist());
if(FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
SafeDraw.init();
}
}
示例2: onBlockActivated
import me.planetguy.lib.util.Debug; //导入方法依赖的package包/类
public boolean onBlockActivated(World w, int x, int y, int z, EntityPlayer p, int side, float px, float py, float pz){
Debug.mark();
if(w.isRemote)
return true;
if(reset(p))
return false;
ChunkCoordinates bedPosition=new ChunkCoordinates(x,y,z);
ChunkCoordinates oldSpawn=p.getBedLocation(p.dimension);
if(oldSpawn == null || !bedPosition.equals(oldSpawn)) {
List<ChunkCoordinates> a=backSpawnPoints.get(p.getUniqueID());
ChatComponentText msg;
if(a==null){
a=new ArrayList<ChunkCoordinates>();
backSpawnPoints.put(p.getUniqueID(), a);
}
if(a.size()==0){
int metadata=w.getBlockMetadata(x, y, z);
if(metadata > 1) {//are we a waypoint?
p.addChatComponentMessage(new ChatComponentText("You cannot start at a waypoint!"));
return false;
}
}
if(a.size() == 0) {
p.setSpawnChunk(bedPosition, false);
p.addChatComponentMessage(new ChatComponentText("Base claimed: ("+x+", "+y+", "+z+")"));
} else {
p.addChatComponentMessage(new ChatComponentText("Waypoint claimed: ("+x+", "+y+", "+z+")"));
}
a.add(bedPosition);
}
return true;
}
示例3: load
import me.planetguy.lib.util.Debug; //导入方法依赖的package包/类
public void load(Class c, HashMap<String, IPrefabItem> content){
Debug.mark();
if(!shouldLoad(c))
return;
if(ItemBase.class.isAssignableFrom(c)){
loadItem(c, content);
}else if(BlockBase.class.isAssignableFrom(c)){
loadBlock(c, content);
}else if(BlockContainerBase.class.isAssignableFrom(c)){
loadContainer(c, content);
}else{
throw new RuntimeException("Failed to load "+c+": Not a legal class type!");
}
}
示例4: getCommandName
import me.planetguy.lib.util.Debug; //导入方法依赖的package包/类
@Override
public String getCommandName() {
Debug.mark();
return "plBlacklist";
}
示例5: getCommandUsage
import me.planetguy.lib.util.Debug; //导入方法依赖的package包/类
@Override
public String getCommandUsage(ICommandSender p_71518_1_) {
Debug.mark();
return "/plBlacklist (-precise) <blacklistName>\n/plBlacklist list";
}
示例6: onRespawn
import me.planetguy.lib.util.Debug; //导入方法依赖的package包/类
@SubscribeEvent
public void onRespawn(PlayerRespawnEvent e){
Debug.mark();
BlockSpawner.relocatePlayer(e.player);
}