publicfunctiononPlayerDeathEvent(PlayerDeathEvent $event){ $event->setKeepInventory(true);$this->debug->onDebug('Keep Inventory from player'); } 开发者ID:100henrik100,项目名称:Minecraft-Pocket-Edition,代码行数:5,代码来源:antipvp.php 注:本文中的pocketmine\event\player\PlayerDeathEvent::setKeepIn...
importnet.minecraftforge.common.config.Property;//导入方法依赖的package包/类@SideOnly(Side.CLIENT)publicbooleanaddToBlacklist(ItemStack stack){if(stack.useItemRightClick(Minecraft.getMinecraft().world,newEntityOtherPlayerMP(Minecraft.getMinecraft().world,newGameProfile(null,"fake")), EnumHand.MAIN_HAND...
本文整理了Java中net.minecraft.item.ItemStack.setCount()方法的一些代码示例,展示了ItemStack.setCount()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ItemStack.setCount()方法的具体详情如下:包路径:net.minecraft...
Inspired by lovecraftian horror themes, it's often thoroughly uncompromising and it has a ridiculous amount of depth in some areas. The soon to release v1.18 update is going through the last release candidates right now and there's absolutely loads new including the first major story ...
Crash report: --- Minecraft Crash Report --- WARNING: coremods are present: Inventory Tweaks Coremod (InventoryTweaks-1.63.jar) ObfuscatePlugin (obfuscate-0.2.6-1.12.2.jar) SSLoadingPlugin (SereneSeasons-1.12.2-1.2.15-universal.jar) Co...
这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EntityLookHelper.setLookPositionWithEntity()方法的具体详情如下:包路径:net.minecraft.entity.ai.EntityLookHelper类名称:EntityLookHelper方法名:setLookPositionWithEntity...
player.getInventory().remove(player.getInventory().getItemInHand()); player.playSound(player.getLocation(), Sound.ITEM_BREAK,10,10); } } arrow.setShooter(player); player.playEffect(player.getLocation(), Effect.BOW_FIRE,null); arrow.setVelocity(player.getEyeLocation().getDirection().multiply(...
inventory.setBoots(boots.get(player)); } } } 开发者ID:dentmaged,项目名称:Cardinal-Plus,代码行数:26,代码来源:ArmorKeep.java 示例3: clearInventory ▲点赞 3▼ importorg.bukkit.inventory.PlayerInventory;//导入方法依赖的package包/类publicvoidclearInventory(Player p){ ...
importnet.minecraftforge.common.config.Property;//导入方法依赖的package包/类/** * Refreshes this mod's configuration */publicvoidrefresh(){ load(); Property prop; prop = get("options","spinspeed",1.0D); prop.setLanguageKey("globalxp.config.spinspeed"); ...