/
Belyash5
/
Flu
Обзор
Документация
Войти
/
Belyash5
/
Flu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/hbm/util/ParticleUtil.java
47 строк
2 KB
BallOfEnergy
just in case I disappear, here's particle threading and crate backpacks, along with spider crates, though opening a spider crate in the inventory will not spawn spiders yet.
13 янв 2025, 04:21
13 янв 2025, 04:21
9fa148c
Код
Авторство
О чём код?
package com.hbm.util; import com.hbm.handler.threading.PacketThreading; import com.hbm.main.MainRegistry; import com.hbm.packet.toclient.AuxParticlePacketNT; import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; public class ParticleUtil { public static void spawnGasFlame(World world, double x, double y, double z, double mX, double mY, double mZ) { NBTTagCompound data = new NBTTagCompound(); data.setString("type", "gasfire"); data.setDouble("mX", mX); data.setDouble("mY", mY); data.setDouble("mZ", mZ); if(world.isRemote) { data.setDouble("posX", x); data.setDouble("posY", y); data.setDouble("posZ", z); MainRegistry.proxy.effectNT(data); } else { PacketThreading.createAllAroundThreadedPacket(new AuxParticlePacketNT(data, x, y, z), new TargetPoint(world.provider.dimensionId, x, y, z, 150)); } } public static void spawnDroneLine(World world, double x, double y, double z, double x0, double y0, double z0, int color) { NBTTagCompound data = new NBTTagCompound(); data.setString("type", "debugdrone"); data.setDouble("mX", x0); data.setDouble("mY", y0); data.setDouble("mZ", z0); data.setInteger("color", color); if(world.isRemote) { data.setDouble("posX", x); data.setDouble("posY", y); data.setDouble("posZ", z); MainRegistry.proxy.effectNT(data); } else { PacketThreading.createAllAroundThreadedPacket(new AuxParticlePacketNT(data, x, y, z), new TargetPoint(world.provider.dimensionId, x, y, z, 150)); } } }