国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

玩轉(zhuǎn)AI寫插件系列2–釣魚竿抓鉤

2023-08-24 22:37 作者:Ask林志QAQ  | 我要投稿

import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraft.util.math.BlockRayTraceResult; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.util.ActionResult; import net.minecraft.util.Hand; import net.minecraft.item.Item.Settings; import net.minecraft.item.ItemGroup; import net.minecraft.network.chat.Component; public class FishingRodItem extends Item { ??public FishingRodItem(Settings settings) { ????super(settings); ??} ??@Override ??public ActionResult use(World world, PlayerEntity player, Hand hand) { ????// 獲取玩家手中的物品 ????ItemStack stack = player.getStackInHand(hand); ????// 生成抓鉤效果 ????generateHookEffect(world, player, stack); ????return ActionResult.resultConsume(stack); ??} ??private void generateHookEffect(World world, PlayerEntity player, ItemStack stack) { ????// 創(chuàng)建一個新的粒子效果實例,表示抓鉤 ????net.minecraft.client.particle.ParticleManager manager = world.getParticleManager(); ????net.minecraft.client.particle.ParticleData particleData = new net.minecraft.client.particle.ParticleData(net.minecraft.client.particle.ParticleType.SWEEP_ARROW, net.minecraft.client.particle.SWEEP_ARROW_PARTICLES); ????net.minecraft.client.particle.Particle swipeArrowParticle = new net.minecraft.client.particle.ParticleSweepArrow(world, player, 0, 0, 0, 0, 0, particleData); ????swipeArrowParticle.setBoundingBox(0, 0, 0); ????manager.addParticle(swipeArrowParticle); ??} }

玩轉(zhuǎn)AI寫插件系列2–釣魚竿抓鉤的評論 (共 條)

分享到微博請遵守國家法律
河池市| 麟游县| 台北市| 苍溪县| 金平| 基隆市| 霞浦县| 齐齐哈尔市| 尼勒克县| 长子县| 吴江市| 河源市| 东方市| 冕宁县| 什邡市| 惠水县| 湄潭县| 井研县| 宜州市| 云梦县| 安义县| 泰顺县| 阜城县| 清水县| 新田县| 南安市| 广平县| 水富县| 新蔡县| 秭归县| 金湖县| 黄大仙区| 衡水市| 财经| 梅州市| 集贤县| 双柏县| 桓台县| 两当县| 宁都县| 子洲县|