Search in sources :

Example 6 with PacketSimple

use of micdoodle8.mods.galacticraft.core.network.PacketSimple in project MorePlanets by SteveKunG.

the class SlotRocketSchematicMP method onSlotChanged.

@Override
public void onSlotChanged() {
    if (this.player instanceof EntityPlayerMP) {
        int dimID = GCCoreUtil.getDimensionID(this.player.world);
        GCCoreUtil.sendToAllAround(new PacketSimple(EnumSimplePacket.C_SPAWN_SPARK_PARTICLES, dimID, new Object[] { this.pos }), this.player.world, dimID, this.pos, 24);
    }
}
Also used : PacketSimple(micdoodle8.mods.galacticraft.core.network.PacketSimple) EntityPlayerMP(net.minecraft.entity.player.EntityPlayerMP)

Aggregations

PacketSimple (micdoodle8.mods.galacticraft.core.network.PacketSimple)6 EntityXPOrb (net.minecraft.entity.item.EntityXPOrb)4 ItemStack (net.minecraft.item.ItemStack)4 TargetPoint (net.minecraftforge.fml.common.network.NetworkRegistry.TargetPoint)4 TileEntity (net.minecraft.tileentity.TileEntity)3 TileEntityTreasureChestMP (stevekung.mods.moreplanets.util.tileentity.TileEntityTreasureChestMP)3 EntityPlayerMP (net.minecraft.entity.player.EntityPlayerMP)2